From b3b7de52bc01c0e1a75f4af285a011e4273096d3 Mon Sep 17 00:00:00 2001 From: Arjun Mahanti Date: Wed, 9 Sep 2026 11:46:28 -0700 Subject: [PATCH] fix(design-system): simplify catalog links and nest component navigation Signed-off-by: Arjun Mahanti --- desktop-next/README.md | 9 ++-- .../design-system/ui/AppearanceControls.tsx | 2 +- .../design-system/ui/ComponentsPage.tsx | 32 ++++---------- .../design-system/ui/DesignSystemLayout.tsx | 13 ++++-- desktop-next/tests/component-pages.spec.ts | 44 +++++++++++++++---- desktop-next/tests/layout-refinements.spec.ts | 13 +++--- 6 files changed, 67 insertions(+), 46 deletions(-) diff --git a/desktop-next/README.md b/desktop-next/README.md index 0fe5e34c4c..216df79a4a 100644 --- a/desktop-next/README.md +++ b/desktop-next/README.md @@ -15,14 +15,17 @@ Open `http://localhost:1430/design`. Use another port when needed: ## Focused component pages -Click a component heading or **Explore states** in the catalog to open +Click a section’s eyebrow link (the category followed by →) in the catalog to open `/design/components/` (for example, `/design/components/input`). Every catalog entry has a dedicated URL with an isolated live playground, component-specific -state guidance, and its example module. Fields, checkboxes, switches, tabs, +state guidance, and its example module. Source is shown only on these focused pages. Fields, checkboxes, switches, tabs, progress, and meters also include side-by-side state samples using the production components. Reset example restores both the playground and its state samples. -Use the component picker or Previous / Next links to move through the catalog. +Every component is also indented beneath All components in the navigation, like +Token table beneath Color. The navigation list scrolls independently so theme and +density controls remain available. Use these links, the component picker, or +Previous / Next links to move through the catalog. All components returns to that component's original catalog anchor. Direct links and refreshes work with the same SPA fallback as the rest of the site; unknown component IDs have a recovery link. Theme and density preferences are shared. diff --git a/desktop-next/src/features/design-system/ui/AppearanceControls.tsx b/desktop-next/src/features/design-system/ui/AppearanceControls.tsx index b5000a29a3..dbb8ea61e5 100644 --- a/desktop-next/src/features/design-system/ui/AppearanceControls.tsx +++ b/desktop-next/src/features/design-system/ui/AppearanceControls.tsx @@ -8,7 +8,7 @@ export function AppearanceControls() { const { density, setDensity, saveError } = useDensity(); return ( -
+