Skip to content

chore(studio): remove scoped pat orphaned form - #48803

Merged
kemaldotearth merged 2 commits into
masterfrom
scopedpat/remove-orphaned-form
Aug 6, 2026
Merged

kemaldotearth merged 2 commits into
masterfrom
scopedpat/remove-orphaned-form

Conversation

@kemaldotearth

@kemaldotearth kemaldotearth commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

First step in breaking down #48635

Summary by CodeRabbit

  • Refactor

    • Removed the scoped access-token form, including token details, expiration settings, resource access, and permission configuration.
    • Removed resource and permission selection controls from the access-token workflow.
  • Tests

    • Removed automated coverage for access-token validation, permission handling, expiration logic, and resource selection.

w3b6x9 and others added 2 commits August 6, 2026 15:32
Scoped/Form/Permissions/, Scoped/Form/ResourceAccess/, and
AccessToken.schemas.ts (+ test) belonged to the superseded scoped-form
design and had no live importers; the schemas file also still encoded the
removed non-expiring token semantics. PERMISSION_LIST /
ACCESS_TOKEN_RESOURCES stay: AccessTokenNewBanner still consumes them via
useGroupedPermissions.
BasicInfo.tsx belonged to the same superseded scoped-form design and was
the last remaining importer of the deleted AccessToken.schemas. It has no
importers of its own, and still rendered the removed non-expiring token
warning via NON_EXPIRING_TOKEN_VALUE.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@kemaldotearth
kemaldotearth requested a review from a team as a code owner August 6, 2026 14:48
@vercel

vercel Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 6, 2026 2:52pm
studio-staging Ready Ready Preview Aug 6, 2026 2:52pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 6, 2026 2:52pm
design-system Skipped Skipped Aug 6, 2026 2:52pm
docs Skipped Skipped v0 Aug 6, 2026 2:52pm
ui-library Skipped Skipped Aug 6, 2026 2:52pm
zone-www-dot-com Skipped Skipped v0 Aug 6, 2026 2:52pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change removes the scoped access-token form implementation. It deletes validation schemas, basic information fields, permission and resource-access controls, supporting types and utilities, and their tests.

Changes

Cohort / File(s) Summary
Validation and form foundations
apps/studio/components/interfaces/Account/AccessTokens/AccessToken.schemas.ts, apps/studio/components/interfaces/Account/AccessTokens/AccessToken.schemas.test.ts, apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/BasicInfo.tsx
Removes token validation, inferred form types, token name and expiry fields, date handling, and related tests.
Permission controls
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/*
Removes permission-row management, resource selection, action ordering, toggle utilities, supporting types, and utility tests.
Resource access controls
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccess/*
Removes resource-access rendering, organization and project selectors, multi-select controls, option components, supporting types, and reset behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description confirms the contributing guide review but omits the change type, current behavior, new behavior, and additional context. Add the missing template sections and describe the removed form, prior behavior, resulting behavior, and issue context.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies removal of the orphaned scoped personal access token form.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch scopedpat/remove-orphaned-form

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kemaldotearth kemaldotearth changed the title feat(studio): remove scoped pat orphaned form chore(studio): remove scoped pat orphaned form Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  240 passed
flaky  3 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  7 minutes, 3 seconds
commit  df568f5

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables
Features › realtime-inspector.spec.ts › Realtime Inspector › Broadcast Messages › clicking broadcast message shows detail panel
Features › table-editor.spec.ts › table editor › should show rls accordingly

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@kemaldotearth
kemaldotearth merged commit 33008a3 into master Aug 6, 2026
40 checks passed
@kemaldotearth
kemaldotearth deleted the scopedpat/remove-orphaned-form branch August 6, 2026 16:20
w3b6x9 added a commit that referenced this pull request Aug 6, 2026
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

First step in breaking down #48635


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Removed the scoped access-token form, including token details,
expiration settings, resource access, and permission configuration.
* Removed resource and permission selection controls from the
access-token workflow.

* **Tests**
* Removed automated coverage for access-token validation, permission
handling, expiration logic, and resource selection.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Wen Bo Xie <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants