mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
## Screenshots ### Row editor Before: <img width="683" height="74" alt="image" src="https://github.com/user-attachments/assets/0416859b-e471-4f11-be28-33e1e0e03415" /> After: <img width="675" height="65" alt="image" src="https://github.com/user-attachments/assets/57ff796e-a67d-42f5-9fe0-f7be831aabc6" /> ### Studio lite Before: <img width="673" height="400" alt="image" src="https://github.com/user-attachments/assets/51ff1cd3-3cc5-4aa2-befb-4f345a933186" /> After: <img width="644" height="402" alt="image" src="https://github.com/user-attachments/assets/4605ad0b-656f-4da2-86d7-8ec32dc54855" /> ### Database function Before: <img width="745" height="949" alt="image" src="https://github.com/user-attachments/assets/49fba21d-0d28-4037-beb7-9ecb13f12fe7" /> After: <img width="746" height="949" alt="image" src="https://github.com/user-attachments/assets/d6755b04-df97-4195-b473-98a0269923d9" /> ### Privacy settings (`www`) Before: <img width="1122" height="808" alt="image" src="https://github.com/user-attachments/assets/02f82691-f045-4d59-b5a4-1ce635e3d9af" /> After: <img width="1110" height="768" alt="image" src="https://github.com/user-attachments/assets/ef2ee049-4cbe-4209-851a-2f024ab0063b" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Replaced legacy toggle controls across the app with a unified Switch component for consistent interaction. * Improved labels, sizes, spacing and aria relationships for clearer UI, better accessibility, and more predictable behavior (settings, filters, editors, realtime controls, privacy modal). * Removed the old Toggle implementation, styles, and top-level exports from the UI package to standardize controls. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import { Switch } from 'ui'
|
|
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
|
|
|
|
export interface ExtensionCardSkeletonProps {
|
|
index?: number
|
|
}
|
|
|
|
const ExtensionCardSkeleton = ({ index = 0 }: ExtensionCardSkeletonProps) => {
|
|
return (
|
|
<div className="flex border-overlay flex-col overflow-hidden rounded border shadow-sm">
|
|
<div className="border-overlay bg-surface-100 flex justify-between w-full border-b py-3 px-4">
|
|
<div className="flex items-center gap-1 max-w-[85%]">
|
|
<div className="flex items-center space-x-2 truncate">
|
|
<ShimmeringLoader className="h-5 w-32 m-0 text-foreground" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
|
|
<Switch checked={false} disabled={true} />
|
|
</div>
|
|
<div className="bg-panel-header-light bg-panel-secondary-light flex h-full flex-col justify-between">
|
|
<div className="py-3 px-4">
|
|
<ShimmeringLoader className="h-4 w-48" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ExtensionCardSkeleton
|