From 40f7abc2cd29db7700fc25fccd8e49d4b595adbd Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Tue, 11 Nov 2025 14:13:06 +1100 Subject: [PATCH] docs(design-system): design system improvements (#40196) * font smoothing * remove sidebar * fix typo * data grid empty state * basic data grid * remove figma * empty state docs --- apps/design-system/README.md | 2 +- apps/design-system/__registry__/index.tsx | 30 ++++++- apps/design-system/config/docs.ts | 10 --- apps/design-system/content/docs/changelog.mdx | 84 ------------------- apps/design-system/content/docs/figma.mdx | 28 ------- .../content/docs/ui-patterns/empty-states.mdx | 47 ++++++++--- apps/design-system/package.json | 1 + ...mpty-state-initial-state-informational.tsx | 31 +++++++ ...ty-state-initial-state-presentational.tsx} | 6 +- .../example/empty-state-missing-route.tsx | 11 ++- .../empty-state-zero-items-data-grid.tsx | 47 +++++++++++ .../example/empty-state-zero-items-table.tsx | 8 +- apps/design-system/registry/examples.ts | 14 +++- apps/design-system/styles/globals.css | 2 + pnpm-lock.yaml | 3 + 15 files changed, 176 insertions(+), 148 deletions(-) delete mode 100644 apps/design-system/content/docs/changelog.mdx delete mode 100644 apps/design-system/content/docs/figma.mdx create mode 100644 apps/design-system/registry/default/example/empty-state-initial-state-informational.tsx rename apps/design-system/registry/default/example/{empty-state-initial-state.tsx => empty-state-initial-state-presentational.tsx} (92%) create mode 100644 apps/design-system/registry/default/example/empty-state-zero-items-data-grid.tsx diff --git a/apps/design-system/README.md b/apps/design-system/README.md index 959e3631802..f7d0347f0b5 100644 --- a/apps/design-system/README.md +++ b/apps/design-system/README.md @@ -64,7 +64,7 @@ With that out of the way, there are several parts of this design system that nee - `registry/charts.ts`: chart components - `registry/fragments.ts`: fragment components -You may need to rebuild the design system’s registry. You can do that via: +You will probably need to rebuild the design system’s registry after making new additions. You can do that via: ```bash cd apps/design-system diff --git a/apps/design-system/__registry__/index.tsx b/apps/design-system/__registry__/index.tsx index cead6b766f8..32ff2204d4f 100644 --- a/apps/design-system/__registry__/index.tsx +++ b/apps/design-system/__registry__/index.tsx @@ -2315,13 +2315,35 @@ export const Index: Record = { subcategory: "undefined", chunks: [] }, - "empty-state-initial-state": { - name: "empty-state-initial-state", + "empty-state-initial-state-presentational": { + name: "empty-state-initial-state-presentational", type: "components:example", registryDependencies: undefined, - component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state")), + component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state-presentational")), source: "", - files: ["registry/default/example/empty-state-initial-state.tsx"], + files: ["registry/default/example/empty-state-initial-state-presentational.tsx"], + category: "undefined", + subcategory: "undefined", + chunks: [] + }, + "empty-state-initial-state-informational": { + name: "empty-state-initial-state-informational", + type: "components:example", + registryDependencies: undefined, + component: React.lazy(() => import("@/registry/default/example/empty-state-initial-state-informational")), + source: "", + files: ["registry/default/example/empty-state-initial-state-informational.tsx"], + category: "undefined", + subcategory: "undefined", + chunks: [] + }, + "empty-state-zero-items-data-grid": { + name: "empty-state-zero-items-data-grid", + type: "components:example", + registryDependencies: undefined, + component: React.lazy(() => import("@/registry/default/example/empty-state-zero-items-data-grid")), + source: "", + files: ["registry/default/example/empty-state-zero-items-data-grid.tsx"], category: "undefined", subcategory: "undefined", chunks: [] diff --git a/apps/design-system/config/docs.ts b/apps/design-system/config/docs.ts index ec78bcd99ca..7e9e2b628b1 100644 --- a/apps/design-system/config/docs.ts +++ b/apps/design-system/config/docs.ts @@ -35,16 +35,6 @@ export const docsConfig: DocsConfig = { href: '/docs/icons', items: [], }, - { - title: 'Figma', - href: '/docs/figma', - items: [], - }, - { - title: 'Changelog', - href: '/docs/changelog', - items: [], - }, ], }, { diff --git a/apps/design-system/content/docs/changelog.mdx b/apps/design-system/content/docs/changelog.mdx deleted file mode 100644 index a96a3e675f1..00000000000 --- a/apps/design-system/content/docs/changelog.mdx +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: Changelog -description: Latest updates and announcements. -toc: false ---- - -## 2nd Oct 2025 - Update button styles - -- UI Patterns section added for higher-level guidance -- [`Navigation`](/design-system/docs/ui-patterns/navigation) UI pattern added -- [`NavMenu`](/design-system/docs/components/nav-menu) component added - -[PR](https://github.com/supabase/supabase/pull/39188) - -## 1st Sep 2025 - Update button styles - -- [`Color usage`](/design-system/docs/color-usage) page updated -- Color tokens improved for accessibility - -[PR](https://github.com/supabase/supabase/pull/38343) - -## 18th Oct 2024 - Update multi-select - -Improved Multi Select with combobox, badge limit, and more examples. - -- [Multi Select](/design-system/components/multi-select) - -[PR](https://github.com/supabase/supabase/pull/29695) - -## 12th June 2024 - Button styles updated - -- [` + + + + + Table name + Date created + + + + + + +

No tables yet

+

Create a table to get started

+
+
+
+
+
+ + ) +} diff --git a/apps/design-system/registry/default/example/empty-state-initial-state.tsx b/apps/design-system/registry/default/example/empty-state-initial-state-presentational.tsx similarity index 92% rename from apps/design-system/registry/default/example/empty-state-initial-state.tsx rename to apps/design-system/registry/default/example/empty-state-initial-state-presentational.tsx index 0c0db657166..81ace8d4713 100644 --- a/apps/design-system/registry/default/example/empty-state-initial-state.tsx +++ b/apps/design-system/registry/default/example/empty-state-initial-state-presentational.tsx @@ -1,8 +1,8 @@ -import { Button } from 'ui' -import { Plus } from 'lucide-react' import { BucketAdd } from 'icons' +import { Plus } from 'lucide-react' +import { Button } from 'ui' -export default function EmptyStateInitialState() { +export default function EmptyStateInitialStatePresentational() { return (