diff --git a/apps/design-system/content/docs/components/alert copy.mdx b/apps/design-system/content/docs/components/alert copy.mdx deleted file mode 100644 index 1ada949fd9c..00000000000 --- a/apps/design-system/content/docs/components/alert copy.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Alert -description: Displays a callout for user attention. -component: true ---- - - - -## Installation - - - - - CLI - Manual - - - -```bash -npx shadcn-ui@latest add alert -``` - - - - - - - -Copy and paste the following code into your project. - - - -Update the import paths to match your project setup. - - - - - - - -## Usage - -```tsx -import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' -``` - -```tsx - - - Heads up! - - You can add components and dependencies to your app using the cli. - - -``` - -## Examples - -### Default - - - -### Destructive - - diff --git a/apps/design-system/content/docs/fragments/admonition.mdx b/apps/design-system/content/docs/fragments/admonition.mdx index 5df52e91ceb..ac4921783e2 100644 --- a/apps/design-system/content/docs/fragments/admonition.mdx +++ b/apps/design-system/content/docs/fragments/admonition.mdx @@ -2,9 +2,6 @@ title: Admonition description: Displays a callout for user attention. fragment: true -links: - doc: https://www.radix-ui.com/docs/primitives/components/alert - api: https://www.radix-ui.com/docs/primitives/components/alert#api-reference --- + ### Warning + e.preventDefault()} // Just for demo + > + OAuth Server Settings + + + } /> ) } diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx index 7ee3f465b1f..8e77b34ab23 100644 --- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx +++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx @@ -20,7 +20,6 @@ import { Badge, Button, Card, - CardContent, DropdownMenu, DropdownMenuContent, DropdownMenuItem, @@ -33,6 +32,7 @@ import { TableHeader, TableRow, } from 'ui' +import { Admonition } from 'ui-patterns/admonition' import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' import { TimestampInfo } from 'ui-patterns/TimestampInfo' import { CreateOrUpdateOAuthAppSheet } from './CreateOrUpdateOAuthAppSheet' @@ -136,34 +136,28 @@ export const OAuthAppsList = () => { return ( <> -
+
{newOAuthApp?.client_secret && ( setNewOAuthApp(undefined)} /> )} {!isOAuthServerEnabled && ( -
- - -
-

OAuth Server is disabled

-

- Enable the OAuth Server to make your project act as an identity provider for - third-party applications. -

-
- -
-
-
+ + OAuth Server Settings + + } + /> )}
} value={filterString} diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx index 09dc1b0b337..c16b449d212 100644 --- a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx +++ b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx @@ -22,7 +22,7 @@ export const OverviewLearnMore = () => { const { ref } = useParams() const aiSnap = useAiAssistantStateSnapshot() const { openSidebar } = useSidebarManagerSnapshot() - const { theme, resolvedTheme } = useTheme() + const { resolvedTheme } = useTheme() useEffect(() => { setIsMounted(true) diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx index 7ed664f48df..4a117094690 100644 --- a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx +++ b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx @@ -1,13 +1,14 @@ import { useQuery } from '@tanstack/react-query' +import dayjs from 'dayjs' +import { ChevronRight, ExternalLink, HelpCircle, Telescope } from 'lucide-react' +import Link from 'next/link' +import { useRouter } from 'next/router' + import { useParams } from 'common' import { getStatusLevel } from 'components/interfaces/UnifiedLogs/UnifiedLogs.utils' import AlertError from 'components/ui/AlertError' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import { DataTableColumnStatusCode } from 'components/ui/DataTable/DataTableColumn/DataTableColumnStatusCode' -import dayjs from 'dayjs' -import { ChevronRight, ExternalLink, HelpCircle, Telescope } from 'lucide-react' -import Link from 'next/link' -import { useRouter } from 'next/router' import { Card, CardContent, diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx index c5d25266166..988b684e1d8 100644 --- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx +++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx @@ -23,7 +23,8 @@ import { useAsyncCheckPermissions } from 'hooks/misc/useCheckPermissions' import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { MANAGED_BY } from 'lib/constants/infrastructure' import { getURL } from 'lib/helpers' -import { Alert, Button } from 'ui' +import { Button } from 'ui' +import { Admonition } from 'ui-patterns/admonition' import ChangePaymentMethodModal from './ChangePaymentMethodModal' import CreditCard from './CreditCard' import DeletePaymentMethodModal from './DeletePaymentMethodModal' @@ -93,14 +94,16 @@ const PaymentMethods = () => { {isSuccess && ( <> {subscription?.payment_method_type === 'invoice' && ( - + description="You get a monthly invoice and payment link via email. To change your payment + method, please contact us via our support form." + actions={ + , - ]} - > - You get a monthly invoice and payment link via email. To change your payment - method, please contact us via our support form. - + + } + /> )} { {isFreePlan && ( - snap.setPanelKey('subscriptionPlan')}> View available plans } - > - Upgrade your plan to disable the spend cap - + /> )}
@@ -239,23 +239,19 @@ const SpendCapSidePanel = () => {
{selectedOption === 'on' ? ( - - Exceeding the included quota allowance with spend cap enabled can cause your projects - to become unresponsive or enter read only mode. - + description="Exceeding the included quota allowance with spend cap enabled can cause your projects + to become unresponsive or enter read only mode." + /> ) : ( - - Your projects will always remain responsive and active, and charges only apply when - exceeding the included quota limit. - + description="Your projects will always remain responsive and active, and charges only apply when + exceeding the included quota limit." + /> )} {hasChanges && ( diff --git a/apps/studio/components/ui/AlphaNotice.tsx b/apps/studio/components/ui/AlphaNotice.tsx index 8ff5ea372f7..24fa14fc1f0 100644 --- a/apps/studio/components/ui/AlphaNotice.tsx +++ b/apps/studio/components/ui/AlphaNotice.tsx @@ -12,7 +12,7 @@ interface AlphaNoticeProps { export const AlphaNotice = ({ entity, feedbackUrl }: AlphaNoticeProps) => { return ( - +