Repository navigation
Removed legacy TabView from Admin settings - #29530
Conversation
no ref Shade already provides the shared tab primitives and variants, so keeping a settings-specific data wrapper duplicated that API and blocked removal of the legacy design-system component.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (44)
💤 Files with no reviewable changes (6)
WalkthroughThe PR removes the design-system Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)apps/shade/src/docs/adoption-data.jsonTraceback (most recent call last): Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin:test:acceptance |
✅ Succeeded | 6m 42s | View ↗ |
nx run-many -t test:unit -p @tryghost/admin-x-d... |
✅ Succeeded | 4m 41s | View ↗ |
nx run ghost-admin:test |
✅ Succeeded | 2m 53s | View ↗ |
nx run ghost-monorepo:lint:boundaries |
✅ Succeeded | 23s | View ↗ |
nx run-many -t lint -p @tryghost/admin-x-design... |
✅ Succeeded | 2m 9s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 2m 3s | View ↗ |
nx run @tryghost/activitypub:test:acceptance |
✅ Succeeded | 41s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | <1s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-22 15:06:00 UTC
no ref The embedded settings app inherits legacy Ember element styles, so Shade needs to own the complete legend and checkbox surface styling.
497699d to
15d6f48
Compare
no ref Staff role radios need a local zero offset, while asymmetric shadows and stroked SVG indicators made centered controls appear displaced.
15d6f48 to
3fb5ab5
Compare

What changed
TabView/Tabuse with direct ShadeTabs,TabsList,TabsTrigger, andTabsContentcomposition.PreviewModalContent,Page, andViewContainerasReactNodecontent instead of rendering legacy tab chrome internally.TabViewcomponent, stories, and exports.Why no replacement TabView wrapper
Shade already owns the reusable abstraction: its tab primitives and visual variants. Recreating the old data-driven prop bag in Shade or settings would preserve the legacy coupling between tab data, state, panels, counters, preview chrome, and device controls. Direct composition keeps state and content with each consumer while the shared
underlineandbutton-smrecipes keep the styling centralized.Validation
pnpm --dir apps/admin-x-settings lintpnpm --dir apps/admin-x-settings test:unit --run(206 tests)pnpm --dir apps/admin-x-design-system lintpnpm --dir apps/admin-x-design-system test:unit --run(23 tests)pnpm --dir apps/admin-x-design-system buildpnpm --dir apps/shade lintpnpm --dir apps/shade test:unit --run(228 tests)pnpm --dir apps/shade buildpnpm --dir apps/admin test:acceptance src/settings --reporter=dot(298 tests)pnpm lint:boundariesHow to validate manually