mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +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.
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
import type { ReactNode } from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
/**
|
|
* The muted line that sits under a primary value: a destination's dataset, a region's AWS code, a
|
|
* pipeline's id and type. One place so the treatment stays identical across the list and the
|
|
* pipeline page.
|
|
*/
|
|
export const DetailSubtext = ({
|
|
children,
|
|
className,
|
|
}: {
|
|
children: ReactNode
|
|
className?: string
|
|
}) => <p className={cn('text-xs text-foreground-lighter text-balance', className)}>{children}</p>
|