Repository navigation
Scoped PAT: refactor new scoped PAT form - #47979
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
🎭 Playwright Test Results (next)Details
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › pending changes persist when switching between tables Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
pamelachia
left a comment
There was a problem hiding this comment.
approved from a telemetry standpoint
|
wait why is this allowed to merge without frontend approval?? 👀 |
Probably because the base branch isn't |
First stacked PR for scoped PAT extracted from the prototype #47783 to ease reviewing. Next stacked PR is #47979 This PR: - merge the two existing token lists (classic and scoped) into one - add an admonition about the scoped PAT migration (missing the docs URL) ## Notes It's not possible to create classic tokens anymore with the `scopedPAT` flag enabled. ## How to test ### With the `scopedPAT` enabled (default on staging) Go to https://studio-staging-git-scopedpat-merge-token-lists-supabase.vercel.app/dashboard/account/tokens. - You shouldn't see two tabs anymore - If you had classic tokens, they should have the _classic_ badge - You can create scoped tokens - You have a way to copy newly created tokens above the list upon form submission ### With the `scopedPAT` disabled (use the devtool to override) - You shouldn't see two tabs anymore - If you had classic tokens, they should **not** have the _classic_ badge - You can create classic tokens - You have a way to copy newly created tokens above the list upon form submission ## Screenshots Before: <img width="775" height="515" alt="image" src="https://github.com/user-attachments/assets/35733e7f-6e3e-40f9-ac5b-cfd7caf5d830" /> After: <img width="767" height="671" alt="image" src="https://github.com/user-attachments/assets/2fd86e6e-6dc6-46c8-9c89-cbfc553e4eb9" />
|
I made a mess with my commits but the code is cleaned up |
Third stacked PR for scoped PAT extracted from the prototype #47783 to ease reviewing. Previous stacked PR is #47979 Next stacked PR is #47999 This PR add a way to view the tokens permissions <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a “View permissions” option for scoped access tokens. * Scoped token permissions now open in a dedicated viewing panel. * Scoped token support is enabled by default. * **Bug Fixes** * Improved token deletion confirmation to clearly identify the selected token. * Deletion dialogs now close correctly after successful removal. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Second stacked PR for scoped PAT extracted from the prototype #47783 to ease reviewing.
Previous stacked PR is #47886
Next stacked PR is #48003
This PR:
How to test
Go to https://studio-staging-git-scopedpat-scoped-token-creat-80c55b-supabase.vercel.app/dashboard/account/tokens
Click the Generate new token button
Try submitting immediately. It should display errors correctly
Configure everything except permissions and try submitting. It should display a warning about missing permissions
Configure the permissions and submit. It should display the review step
Try going back, modify anything and submit
Create the token. It should display the token value with a button to copy it and a checkbox to confirm the copy. You cannot close the sheet at this step until you check the box and click Done.