Files
supabase/apps/studio/components/interfaces/Integrations/DataApi/DataApiDisabledState.tsx
Danny WhiteandJoshen Lim 1d46515edb chore(studio): misc design polish (#42966)
## What kind of change does this PR introduce?

UI polish

## What is the current behavior?

Various UI rough edges that are tiny but add up.

## What is the new behavior?

- Empty state for Data API: Replaced `Link` that had overly-specific
styles with `InlineLink`
- Copywriting improvements on Account

| Before | After |
| --- | --- |
| <img width="1024" height="560" alt="Integrations
Supabase-CDDA8DBC-57D8-4D43-A1BD-0D935D9F2442"
src="https://github.com/user-attachments/assets/1af9abb0-166b-490d-a07d-e4eb7144b558"
/> | <img width="1024" height="560" alt="Integrations
Supabase-E8CE34C7-D2AB-4842-93AB-04BD42D94CAC"
src="https://github.com/user-attachments/assets/f0d911ea-72c2-4e1e-8d16-7effb9847196"
/> |
| <img width="1024" height="560" alt="Account Settings Supabase"
src="https://github.com/user-attachments/assets/f12c76c7-5912-4bc3-8cbb-df27588add51"
/> | <img width="1024" height="560" alt="Account Settings Supabase"
src="https://github.com/user-attachments/assets/4c926313-9ff1-4e13-9546-c407dca4e7bf"
/> |

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-02-24 16:54:14 +08:00

29 lines
959 B
TypeScript

import { useParams } from 'common'
import { InlineLink } from 'components/ui/InlineLink'
import { AlertCircle } from 'lucide-react'
import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_ } from 'ui'
interface DataApiDisabledStateProps {
description: string
}
export const DataApiDisabledState = ({ description }: DataApiDisabledStateProps) => {
const { ref: projectRef } = useParams()
return (
<div className="flex w-full flex-1 items-center justify-center p-10">
<Alert_Shadcn_ className="max-w-md">
<AlertCircle size={16} />
<AlertTitle_Shadcn_>Data API is disabled</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
Enable the Data API in the{' '}
<InlineLink href={`/project/${projectRef}/integrations/data_api/overview`}>
Overview
</InlineLink>{' '}
tab to {description}.
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
</div>
)
}