• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase / 41857283487
87%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2026 03:31PM UTC
Jobs 1
Files 187
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 03:23PM UTC coverage: 86.839% (+0.04%) from 86.803%
41857283487

push

github

web-flow
refactor(studio): align OAuth role validation failure types with the API (#52532)

## Problem

The scoped OAuth consent screen is still mock-backed, and its types for
`role_validation_failed` responses don't match what the platform API
will return. The API reports only the role level (`owner`,
`administrator`, `developer`, `read-only` or `no-access`) in each
failure, not the full role object, and project failures carry no `name`.

## Solution

- `OAuthScopeValidationResult` uses `{ name: 'owner' | 'administrator' |
'developer' | 'read-only' | 'no-access' }` for `role` in all three
`scope_target` variants, and project failures drop `name`.
- The mock approval and preflight responses build that shape from the
mock org roles.
- `types.test.ts` fixtures follow the new shape.

The consent screen only reads `ref` from project failures, so there is
no UI change.

The types are hand-written until the API change that introduces this
shape lands and `api-types` is regenerated.

Verification: `vitest run data/oauth-apps
components/interfaces/Organization/OAuthApps` (115 passed). `tsc
--noEmit` reports one error in `packages/ui-patterns`, which also occurs
without this change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

1991 of 2360 branches covered (84.36%)

Branch coverage included in aggregate %.

2806 of 3164 relevant lines covered (88.69%)

197.15 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 studio-tests 41857283487.1 04 Nov 2026 03:31PM UTC 748
37.8
GitHub Action Run
Source Files on build 41857283487
  • Tree
  • List 187
  • Changed 154
  • Source Changed 0
  • Coverage Changed 154
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41857283487
  • 676ea140 on github
  • Prev Build on master (#41855320578)
  • Next Build on master (#41859383906)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc