mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +00:00
## Problem OAuth mixes abbreviated access levels with permission names whose meaning is hard to infer. ## Solution Use **Read and write** and **Read only** consistently, and add keyboard-accessible definitions for Database management and Environment. Reuse the dotted underline from Pipelines and document above-label placement. | Before | After | | --- | --- | | <img width="926" height="1936" alt="CleanShot 2026-11-20 at 12 20 42@2x" src="https://github.com/user-attachments/assets/053b4afa-f428-4c0d-8f3b-dbc3f3dd5cf8" /> | <img width="886" height="1902" alt="CleanShot 2026-11-20 at 12 21 20@2x" src="https://github.com/user-attachments/assets/8277064b-1e73-43ff-b7b5-4d4af7d6c68f" /> | | _No tooltips, old “READ-WRITE”._ | _Tooltips for ambiguous permissions, “READ AND WRITE” for clarity and to match setup terminology._ | ## Review instructions 1. **Before:** Open the [Scoped OAuth tester](https://api.supabase.green/v1/oauth/authorize?response_type=code&client_id=a3999bfe-cfc7-4584-9c5a-ab6828d35aa3&redirect_uri=http%3A%2F%2Flocalhost%3A8765%2Foauth%2Fcallback) and leave consent open. 2. **After:** Open the [deploy preview consent screen](https://studio-staging-git-dnywh-oauth-permission-labels-supabase.vercel.app/dashboard/authorize?auth_id=606dbb8e-60ea-4155-bb36-70a7d31378dd). **What to check** 1. Open consent for a test app that requests database read/write, environment read, and projects read access. 2. Check the small **Read and write** and **Read only** headings. Hover or Tab to Database management and Environment. Each definition should appear above its dotted-underlined label. 3. Optionally open an existing Pipeline and hover over an annotated status label to check the shared underline.
3 lines
194 B
TypeScript
3 lines
194 B
TypeScript
export const TOOLTIP_UNDERLINE_CLASS_NAME =
|
|
'cursor-help underline decoration-dotted decoration-foreground-muted/50 hover:decoration-foreground-muted transition-colors underline-offset-[3px]'
|