Repository navigation
Moved settings preview modals out of the legacy design system - #29569
Conversation
no ref The preview-and-sidebar shell is specific to the existing settings NiceModal flows, so keeping it local removes the legacy dependency without promoting a transitional prop-heavy API into Shade.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (7)
WalkthroughThe settings app now provides Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 6s | View ↗ |
nx run-many -t test:unit -p @tryghost/admin-x-d... |
✅ Succeeded | 2m 12s | View ↗ |
nx run ghost-monorepo:lint:boundaries |
✅ Succeeded | 24s | View ↗ |
nx run-many -t lint -p @tryghost/admin-x-design... |
✅ Succeeded | 1m 10s | View ↗ |
nx run @tryghost/activitypub:test:acceptance |
✅ Succeeded | 42s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 5s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | <1s | View ↗ |
nx run ghost-admin:test |
✅ 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-23 23:40:00 UTC
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29569 +/- ##
=======================================
Coverage 74.82% 74.82%
=======================================
Files 1609 1609
Lines 141734 141734
Branches 17325 17325
=======================================
Hits 106057 106057
Misses 34604 34604
Partials 1073 1073
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
no ref The Settings-local source alias resolves against Admin during the consolidated production build, so package-relative imports keep the shared build unambiguous.

What changed
PreviewModalContentcompatibility shell fromadmin-x-design-systemintoadmin-x-settingsSettingsModalwhile preserving the existing NiceModal contractdark:utilitiesWhy
This shell is shared only by Settings and exposes a transitional, prop-heavy API tied to its current NiceModal flows. Keeping it local removes the legacy dependency without promoting that compatibility API into Shade. The local shell still consumes Shade primitives and patterns, so the final consumer-by-consumer modal cleanup can happen without another public design-system abstraction.
Validation
pnpm --filter @tryghost/admin-x-settings lintpnpm --filter @tryghost/admin-x-settings test:unitpnpm --filter @tryghost/admin-x-design-system lintpnpm --filter @tryghost/admin-x-design-system test:typespnpm --filter @tryghost/admin-x-design-system buildpnpm --filter @tryghost/shade lintpnpm --filter @tryghost/shade test:typespnpm --filter @tryghost/shade buildpnpm --filter @tryghost/admin exec vitest run -c vitest.acceptance.config.ts src/settings(38 files, 302 tests)pnpm --filter @tryghost/shade adoption:extract