Repository navigation
🎨 Refined Settings UI with Shade - #29720
Conversation
ref https://linear.app/ghost/issue/DES-1433/refine-modal-border-radius Settings modals now share the standard Shade dialog radius across compact and fullscreen layouts, while edge-to-edge drawers retain their intended square geometry.
ref https://linear.app/ghost/issue/DES-1434/use-outline-button-in-all-modal-footers - made secondary modal actions visually distinct from primary actions - kept short primary actions content-sized instead of enforcing an 80px width - aligned footer and large-modal header actions across Settings
ref https://linear.app/ghost/issue/DES-1465/tidy-up-confirmation-modal - aligned Settings confirmations with Shade's standard dialog rhythm and typography - made async confirmation states clear, accessible, and safe from duplicate actions - standardized content-sized alert actions and foreground-aware loading indicators
ref https://linear.app/ghost/issue/DES-1454/fix-dropdown-and-input-field-height-mismatch Inputs and input groups now follow the shared control-height token so mixed form controls align consistently across Settings and other Shade consumers.
ref https://linear.app/ghost/issue/DES-1431/search-timezones-font-is-too-small Search queries and result options now share Shade's control typography so searchable menus remain readable and visually consistent.
ref https://linear.app/ghost/issue/DES-1443/bumpstandardize-checkbox-border-contrast Unchecked checkboxes and radio controls now remain easy to identify across light and dark surfaces while selected, focused, invalid, and disabled states stay distinct.
ref https://linear.app/ghost/issue/DES-1455/decrease-a-bit-spacing-between-title-and-description Field titles and supporting descriptions now read as a tighter unit across Settings and other Shade consumers.
ref https://linear.app/ghost/issue/DES-1451/replace-the-link-input-to-a-regular-input-style Copy-only values now read as non-editable controls while their actions remain clear, consistent, and protected from overlapping content.
ref https://linear.app/ghost/issue/DES-1432/tab-count-should-have-a-background Tab counts now remain easy to distinguish across selection states, tab variants, and color schemes.
ref https://linear.app/ghost/issue/DES-1439/esc-should-close-the-dropdown-before-closing-the-modal Dropdown menus, selects, and popovers now consume the first Escape consistently so people can dismiss the focused control without losing the work in its parent modal.
ref https://linear.app/ghost/issue/DES-1430/update-all-input-fields Settings fields now inherit Shade's shared control surface, sizing, focus, invalid, and disabled states instead of presenting a separate filled-field style. Specialized compact and nested controls retain intentional local layouts.
ref https://linear.app/ghost/issue/DES-1448/ - aligns Settings navigation labels, icons, hover, and active states with the main Admin sidebar using its semantic color contract
ref https://linear.app/ghost/issue/DES-1435/ - protects Shade textareas from the legacy Admin width cap so staff profile fields align consistently with surrounding controls
ref https://linear.app/ghost/issue/DES-1466/ - gives disabled Shade fields a distinct semantic surface and readable muted values while preserving the existing Checkbox and Radio treatment
ref https://linear.app/ghost/issue/DES-1437/refine-view-options-in-design-settings - keeps device switching consistent across Settings previews - makes the external site action clearer and keyboard-visible - uses Shade spacing and separators instead of bespoke toolbar offsets
ref https://linear.app/ghost/issue/DES-1438/fix-alignment-of-typography-dropdown - aligns selected font details with their dropdown rows - vertically centers each font detail block beside its preview - gives font previews subtle depth with semantic borders and shadows
ref https://linear.app/ghost/issue/DES-1440/bump-view-tab-font-size-to-standard - uses the standard Shade tab size across Theme, Design, Announcement Bar, and Portal - keeps the shared fullscreen navigation pattern visually consistent - leaves genuinely compact tab groups unchanged
no ref - incorporates the latest upstream changes without rewriting the approved issue commits - keeps the long-running refinement branch ready for the remaining Settings work
ref https://linear.app/ghost/issue/DES-1442/ Removed the legacy negative margin that pulled the Cancel action over the upload dropzone, restoring the standard confirmation-dialog rhythm.
ref https://linear.app/ghost/issue/DES-1444/ Kept the signup link from becoming an orphaned final line while preserving the existing copy and connection flow.
ref https://linear.app/ghost/issue/DES-1445/ Aligned the form and preview section headings on the standard FieldLegend typography so the modal reads as one consistent hierarchy.
ref https://linear.app/ghost/issue/DES-1446/ Scrolled the tier modal by each newly added row so the benefit editor remains anchored and focused during repeated entry.
ref https://linear.app/ghost/issue/DES-1447/ - presents icon choices as one consistent segmented control - keeps uploaded and built-in icons equal in size while preserving existing values and behavior
ref https://linear.app/ghost/issue/DES-1449/ - aligns Koenig-backed fields with the standard Settings field rhythm - applies the correction through the shared local wrapper so every use stays consistent
ref https://linear.app/ghost/issue/DES-1450 Portal link values now use the standard Shade copy experience so read-only fields, feedback, and format selection stay consistent across Settings.
ref https://linear.app/ghost/issue/DES-1452 Newsletter sections now use a consistent visual hierarchy and Shade field rhythm so section headings are distinguishable without crowding their fields.
ref https://linear.app/ghost/issue/DES-1453 Newsletter and welcome-email header images now share a responsive 2:1 composition so their upload and preview states match the recommended image dimensions.
ref https://linear.app/ghost/issue/DES-1456 Incoming recommendation metrics could overlap the contextual action, so they now yield space whenever the action is exposed by pointer or keyboard focus.
ref https://linear.app/ghost/issue/DES-1457 The minimal preview needed reliable centering and safe edge spacing, while its code action and mobile modal height needed to stay connected to the content they control.
ref https://linear.app/ghost/issue/DES-1458 The custom full-row click targets removed Shade table padding, so the first and last columns now restore a consistent outer inset.
ref https://linear.app/ghost/issue/DES-1459 Desktop breadcrumbs already provide semantic back navigation, so the standalone arrow now remains only where the breadcrumb is hidden on mobile.
ref https://linear.app/ghost/issue/DES-1460/replace-checkbox-style-radio-button-to-standard-in-offer-details Offer type choices should use the standard radio affordance so their single-choice behavior is immediately clear and consistent with the rest of Settings.
ref https://linear.app/ghost/issue/DES-1461/custom-integration-modal-needs-a-lot-of-love Custom integrations needed clearer form hierarchy, consistent read-only fields, and a useful empty webhook state without introducing another shared component.
ref https://linear.app/ghost/issue/DES-1462/ The integration name and description already provide the necessary context, so the redundant configuration heading added visual noise and excessive spacing before the settings.
ref https://linear.app/ghost/issue/DES-1463/ The integration header already explains the Transistor configuration, so the repeated heading added unnecessary hierarchy and spacing before the settings.
ref https://linear.app/ghost/issue/DES-1464/ The generic Learn more label and external-link icon align import guidance with the established navigation convention while keeping the destination explicit.
WalkthroughThis PR updates Admin Settings and Shade components with new layout primitives, control styling, modal actions, loading states, upload callbacks, overlay handling, and responsive preview behavior. It adds typed embed layout markers, webhook empty states, tier-benefit focus and scrolling behavior, accessible Possibly related PRs
Suggested reviewers: 🚥 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 | 7m 40s | View ↗ |
nx run-many -t test:unit -p @tryghost/admin-x-s... |
✅ Succeeded | 5m 13s | View ↗ |
nx run ghost-admin:test |
✅ Succeeded | 2m 52s | View ↗ |
nx run ghost-monorepo:lint:boundaries |
✅ Succeeded | 22s | View ↗ |
nx run-many -t lint -p @tryghost/admin-x-settin... |
✅ Succeeded | 1m 59s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 1m 56s | View ↗ |
nx run @tryghost/activitypub:test:acceptance |
✅ Succeeded | 39s | 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-08-04 06:53:18 UTC
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29720 +/- ##
=======================================
Coverage 75.42% 75.42%
=======================================
Files 1610 1610
Lines 141883 141883
Branches 17547 17547
=======================================
Hits 107011 107011
Misses 33800 33800
Partials 1072 1072
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:
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsx (1)
83-107: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winKeep the configuration fieldsets accessible.
Both changes remove the only group name from a native
FieldSet. Restore the legend or add an equivalent accessible name.
apps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsx#L83-L107: RestoreFieldLegendand its import, or addaria-labelledbyto theFieldSet.apps/admin-x-settings/src/components/settings/advanced/integrations/transistor-modal.tsx#L110-L131: RestoreFieldLegendand its import, or addaria-labelledbyto theFieldSet.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsx` around lines 83 - 107, Restore an accessible group name for the native FieldSet in first-promoter-modal.tsx at lines 83-107 by reinstating FieldLegend and its import, or by adding an equivalent aria-labelledby association. Apply the same accessible-name fix to the FieldSet in transistor-modal.tsx at lines 110-131, restoring FieldLegend and its import or adding aria-labelledby.
🧹 Nitpick comments (2)
apps/shade/src/components/ui/tabs.stories.tsx (1)
2-2: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the
@/alias for this Shade import.This file is under
apps/shade/src. Change./tabsto@/components/ui/tabs.Suggested fix
-import {Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCount} from './tabs'; +import {Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCount} from '`@/components/ui/tabs`';As per coding guidelines, “Inside Shade, use the
@/alias for cross-file imports.”🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/shade/src/components/ui/tabs.stories.tsx` at line 2, Update the Tabs-related import in tabs.stories.tsx to use the Shade `@/` alias, changing the local ./tabs reference to `@/components/ui/tabs` while preserving the imported symbols.Source: Coding guidelines
apps/shade/src/components/ui/select.tsx (1)
23-32: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winHandle Escape in a stacked overlay order.
Multiple
useOverlayEscapeoverlays register capture-phasekeydownlisteners ondocument, andstopPropagation()only prevents propagation outside the current listener. If a parent and child Select/Popover/Dropdown are open, Escape can close both overlays in listener registration order. Use a shared registry stack so Escape always closes the topmost open overlay first.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/shade/src/components/ui/select.tsx` around lines 23 - 32, Update useOverlayEscape usage in the Select component to participate in a shared overlay registry stack, ensuring Escape is handled only by the topmost open Select/Popover/Dropdown overlay before closing it. Coordinate registration, ordering, and cleanup through the existing overlay utility rather than relying solely on stopPropagation(), while preserving the current controlledOpen, defaultOpen, and onOpenChange behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/shade/src/hooks/use-overlay-escape.ts`:
- Around line 39-51: Update handleEscape in use-overlay-escape.ts to call
event.stopImmediatePropagation() after preventing the default action, replacing
stopPropagation(). Preserve the existing Escape-key filtering and
handleOpenChangeRef.current(false) behavior so only the first document-level
overlay listener closes.
---
Outside diff comments:
In
`@apps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsx`:
- Around line 83-107: Restore an accessible group name for the native FieldSet
in first-promoter-modal.tsx at lines 83-107 by reinstating FieldLegend and its
import, or by adding an equivalent aria-labelledby association. Apply the same
accessible-name fix to the FieldSet in transistor-modal.tsx at lines 110-131,
restoring FieldLegend and its import or adding aria-labelledby.
---
Nitpick comments:
In `@apps/shade/src/components/ui/select.tsx`:
- Around line 23-32: Update useOverlayEscape usage in the Select component to
participate in a shared overlay registry stack, ensuring Escape is handled only
by the topmost open Select/Popover/Dropdown overlay before closing it.
Coordinate registration, ordering, and cleanup through the existing overlay
utility rather than relying solely on stopPropagation(), while preserving the
current controlledOpen, defaultOpen, and onOpenChange behavior.
In `@apps/shade/src/components/ui/tabs.stories.tsx`:
- Line 2: Update the Tabs-related import in tabs.stories.tsx to use the Shade `@/`
alias, changing the local ./tabs reference to `@/components/ui/tabs` while
preserving the imported symbols.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 6fdd4d81-d04c-4349-8b12-e27e024ca5df
📒 Files selected for processing (111)
apps/admin-x-settings/src/components/confirmation-modal.tsxapps/admin-x-settings/src/components/html-field.tsxapps/admin-x-settings/src/components/settings/advanced/code/code-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/add-integration-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/api-keys.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/custom-integration-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/slack-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/transistor-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/webhooks-table.tsxapps/admin-x-settings/src/components/settings/advanced/labs/yaml-file-editor-modal.tsxapps/admin-x-settings/src/components/settings/advanced/migration-tools/universal-import-modal.tsxapps/admin-x-settings/src/components/settings/advanced/spam-filters.tsxapps/admin-x-settings/src/components/settings/email-design/email-design-modal.tsxapps/admin-x-settings/src/components/settings/email-design/header-image-field.tsxapps/admin-x-settings/src/components/settings/email/mailgun.tsxapps/admin-x-settings/src/components/settings/email/newsletters/add-newsletter-modal.tsxapps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsxapps/admin-x-settings/src/components/settings/general/invite-user-modal.tsxapps/admin-x-settings/src/components/settings/general/publication-language.tsxapps/admin-x-settings/src/components/settings/general/seo-meta.tsxapps/admin-x-settings/src/components/settings/general/social-accounts.tsxapps/admin-x-settings/src/components/settings/general/title-and-description.tsxapps/admin-x-settings/src/components/settings/general/users/profile-tab.tsxapps/admin-x-settings/src/components/settings/general/users/social-links-tab.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-form-modal.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-preview.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-sidebar.tsxapps/admin-x-settings/src/components/settings/growth/explore/testimonials-modal.tsxapps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsxapps/admin-x-settings/src/components/settings/growth/offers/edit-offer-modal.tsxapps/admin-x-settings/src/components/settings/growth/offers/edit-retention-offer-modal.tsxapps/admin-x-settings/src/components/settings/growth/offers/offer-success.tsxapps/admin-x-settings/src/components/settings/growth/offers/offers-index.tsxapps/admin-x-settings/src/components/settings/growth/recommendations/add-recommendation-modal.tsxapps/admin-x-settings/src/components/settings/growth/recommendations/incoming-recommendation-list.tsxapps/admin-x-settings/src/components/settings/growth/recommendations/recommendation-description-form.tsxapps/admin-x-settings/src/components/settings/growth/tips-and-donations.tsxapps/admin-x-settings/src/components/settings/membership/access.tsxapps/admin-x-settings/src/components/settings/membership/custom-fields/custom-field-modal.tsxapps/admin-x-settings/src/components/settings/membership/member-emails/test-email-dropdown.tsxapps/admin-x-settings/src/components/settings/membership/member-emails/welcome-email-modal.tsxapps/admin-x-settings/src/components/settings/membership/portal/account-page.tsxapps/admin-x-settings/src/components/settings/membership/portal/look-and-feel.tsxapps/admin-x-settings/src/components/settings/membership/portal/portal-links.tsxapps/admin-x-settings/src/components/settings/membership/portal/portal-modal.tsxapps/admin-x-settings/src/components/settings/membership/portal/transistor-settings.tsxapps/admin-x-settings/src/components/settings/membership/stripe/stripe-connect-modal.tsxapps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-modal.tsxapps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-preview.tsxapps/admin-x-settings/src/components/settings/preview-modal.tsxapps/admin-x-settings/src/components/settings/settings-breadcrumbs.tsxapps/admin-x-settings/src/components/settings/site/announcement-bar-modal.tsxapps/admin-x-settings/src/components/settings/site/design-and-branding/global-settings.tsxapps/admin-x-settings/src/components/settings/site/design-and-branding/theme-setting.tsxapps/admin-x-settings/src/components/settings/site/design-modal.tsxapps/admin-x-settings/src/components/settings/site/navigation/navigation-item-editor.tsxapps/admin-x-settings/src/components/settings/site/theme-modal.tsxapps/admin-x-settings/src/components/settings/site/theme/theme-editor-input-modal.tsxapps/admin-x-settings/src/components/sidebar.tsxapps/admin-x-settings/src/utils/generate-embed-code.tsapps/admin-x-settings/test/unit/components/confirmation-modal.test.tsxapps/admin-x-settings/test/unit/components/settings/settings-breadcrumbs.test.tsxapps/admin-x-settings/test/unit/components/settings/webhooks-table.test.tsxapps/admin-x-settings/test/unit/growth/embed-signup-preview.test.tsxapps/admin-x-settings/test/unit/utils/generate-embed-code.test.tsapps/shade/src/components/patterns/settings-modal.tsxapps/shade/src/components/ui/alert-dialog.stories.tsxapps/shade/src/components/ui/alert-dialog.tsxapps/shade/src/components/ui/checkbox.stories.tsxapps/shade/src/components/ui/checkbox.tsxapps/shade/src/components/ui/combobox.tsxapps/shade/src/components/ui/command.stories.tsxapps/shade/src/components/ui/command.tsxapps/shade/src/components/ui/copy-field.stories.tsxapps/shade/src/components/ui/copy-field.tsxapps/shade/src/components/ui/dialog.stories.tsxapps/shade/src/components/ui/dropdown-menu.tsxapps/shade/src/components/ui/field.stories.tsxapps/shade/src/components/ui/field.tsxapps/shade/src/components/ui/input-group.stories.tsxapps/shade/src/components/ui/input-group.tsxapps/shade/src/components/ui/input-surface.stories.tsxapps/shade/src/components/ui/input-surface.tsapps/shade/src/components/ui/input.stories.tsxapps/shade/src/components/ui/input.tsxapps/shade/src/components/ui/loading-indicator.stories.tsxapps/shade/src/components/ui/loading-indicator.tsxapps/shade/src/components/ui/multi-select-combobox.tsxapps/shade/src/components/ui/popover.tsxapps/shade/src/components/ui/radio-group.tsxapps/shade/src/components/ui/select.tsxapps/shade/src/components/ui/tabs.stories.tsxapps/shade/src/components/ui/tabs.tsxapps/shade/src/components/ui/textarea.tsxapps/shade/src/docs/tokens/colors.stories.tsxapps/shade/src/hooks/use-overlay-escape.tsapps/shade/tailwind.theme.cssapps/shade/test/unit/components/patterns/settings-modal.test.tsxapps/shade/test/unit/components/ui/alert-dialog.test.tsxapps/shade/test/unit/components/ui/checkbox.test.tsxapps/shade/test/unit/components/ui/command.test.tsxapps/shade/test/unit/components/ui/copy-field.test.tsxapps/shade/test/unit/components/ui/field.test.tsxapps/shade/test/unit/components/ui/input-group.test.tsxapps/shade/test/unit/components/ui/input.test.tsxapps/shade/test/unit/components/ui/overlay-escape.test.tsxapps/shade/test/unit/components/ui/radio-group.test.tsxapps/shade/test/unit/components/ui/tabs.test.tsxapps/shade/theme-variables.css
💤 Files with no reviewable changes (4)
- apps/admin-x-settings/src/components/settings/growth/explore/testimonials-modal.tsx
- apps/admin-x-settings/src/components/settings/general/publication-language.tsx
- apps/admin-x-settings/src/components/settings/general/invite-user-modal.tsx
- apps/admin-x-settings/src/components/settings/membership/member-emails/test-email-dropdown.tsx
E2E Tests FailedTo view the Playwright test report locally, run: REPORT_DIR=$(mktemp -d) && gh run download 30826393307 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR" |
ref https://linear.app/ghost/issue/DES-1439/esc-should-close-the-dropdown-before-closing-the-modal Radix now owns overlay stacking again, while SettingsModal respects events already handled by its active child so each Escape dismisses only one layer.
ref https://linear.app/ghost/issue/DES-1450 CopyField values now retain their approved visual design while exposing stable label and read-only textbox semantics. Portal loading indicators are constrained to preview content so tabs stay interactive, and the end-to-end helpers now target the Shade controls users interact with.
ref https://linear.app/ghost/issue/DES-1457 Embed layout values now use one internal union and preview marker helper from generation through detection. Both layouts and stale markup are covered without changing the generated public embed code.
ref https://linear.app/ghost/issue/DES-1461/custom-integration-modal-needs-a-lot-of-love Modal-specific spacing now belongs to the custom integration composition. The empty table keeps its approved upper divider while the sticky footer provides the lower boundary, removing the high z-index workaround.
ref https://linear.app/ghost/issue/DES-1446/ Acceptance coverage now exercises both the Add button and Enter key, focus retention, modal-only scrolling, reduced-motion behavior, visibility, and the empty-value no-op without changing the approved interaction.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/shade/test/unit/components/ui/copy-field.test.tsx (1)
103-106: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick winRestore the clipboard mock after the test.
This test replaces the shared
navigator.clipboardproperty and leaves the replacement installed. A later test in the same worker can observe thewriteTextmock and become order-dependent. Restore the original property inafterEach.Suggested cleanup
-import {describe, it, vi} from 'vitest'; +import {afterEach, describe, it, vi} from 'vitest'; + +const originalClipboardDescriptor = Object.getOwnPropertyDescriptor(navigator, 'clipboard'); + +afterEach(() => { + if (originalClipboardDescriptor) { + Object.defineProperty(navigator, 'clipboard', originalClipboardDescriptor); + } else { + delete (navigator as {clipboard?: unknown}).clipboard; + } +});🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/shade/test/unit/components/ui/copy-field.test.tsx` around lines 103 - 106, Update the test setup around the navigator.clipboard mock to capture the original clipboard property before replacement and restore it in an afterEach cleanup hook. Ensure each test leaves navigator.clipboard in its pre-test state, including when the original property is absent.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@apps/shade/test/unit/components/ui/copy-field.test.tsx`:
- Around line 103-106: Update the test setup around the navigator.clipboard mock
to capture the original clipboard property before replacement and restore it in
an afterEach cleanup hook. Ensure each test leaves navigator.clipboard in its
pre-test state, including when the original property is absent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: d14b224c-35d5-4a85-a499-7bd447b476eb
📒 Files selected for processing (21)
apps/admin-x-settings/src/components/settings/advanced/integrations/custom-integration-modal.tsxapps/admin-x-settings/src/components/settings/advanced/integrations/webhooks-table.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-form-modal.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-preview.tsxapps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-sidebar.tsxapps/admin-x-settings/src/components/settings/membership/portal/portal-frame.tsxapps/admin-x-settings/src/components/settings/preview-modal.tsxapps/admin-x-settings/src/utils/generate-embed-code.tsapps/admin-x-settings/test/unit/components/settings/webhooks-table.test.tsxapps/admin-x-settings/test/unit/growth/embed-signup-preview.test.tsxapps/admin-x-settings/test/unit/utils/generate-embed-code.test.tsapps/admin/src/settings/membership/tiers.acceptance.test.tsxapps/shade/src/components/patterns/settings-modal.tsxapps/shade/src/components/ui/copy-field.tsxapps/shade/src/components/ui/dropdown-menu.tsxapps/shade/src/components/ui/popover.tsxapps/shade/src/components/ui/select.tsxapps/shade/test/unit/components/ui/copy-field.test.tsxapps/shade/test/unit/components/ui/overlay-escape.test.tsxe2e/helpers/pages/admin/settings/sections/portal-section.tse2e/tests/admin/settings/portal-settings.test.ts
🚧 Files skipped from review as they are similar to previous changes (8)
- apps/shade/src/components/patterns/settings-modal.tsx
- apps/admin-x-settings/src/components/settings/preview-modal.tsx
- apps/admin-x-settings/src/components/settings/advanced/integrations/webhooks-table.tsx
- apps/admin-x-settings/test/unit/components/settings/webhooks-table.test.tsx
- apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-preview.tsx
- apps/admin-x-settings/test/unit/utils/generate-embed-code.test.ts
- apps/admin-x-settings/src/components/settings/advanced/integrations/custom-integration-modal.tsx
- apps/shade/src/components/ui/copy-field.tsx
ref https://linear.app/ghost/issue/DES-1439/esc-should-close-the-dropdown-before-closing-the-modal Shade overlays now consume their dismissal Escape before the legacy Settings shell can act on the same event, preserving the expected nested keyboard sequence across menus, selects, popovers, and comboboxes.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/shade/src/components/ui/dropdown-menu.tsx (1)
50-50: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRemove the
dark:color variant.Line 50 uses
dark:border-border/30. Use a semantic border token that provides the required contrast in both color modes.As per coding guidelines, Shade UI chrome must use semantic tokens and must not use
dark:color variants.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/shade/src/components/ui/dropdown-menu.tsx` at line 50, Update the DropdownMenu content class in the affected component to remove the dark:border-border/30 variant and use the existing semantic border token instead, preserving consistent contrast across both color modes.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@apps/shade/src/components/ui/dropdown-menu.tsx`:
- Line 50: Update the DropdownMenu content class in the affected component to
remove the dark:border-border/30 variant and use the existing semantic border
token instead, preserving consistent contrast across both color modes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 297481bd-e2d8-451c-861e-0e25ad5f1366
📒 Files selected for processing (11)
apps/admin/src/settings/email/email-settings.acceptance.test.tsxapps/admin/src/settings/general/time-zone.acceptance.test.tsxapps/admin/src/settings/growth/tips-and-donations.acceptance.test.tsxapps/admin/src/settings/membership/access.acceptance.test.tsxapps/admin/src/settings/site/theme.acceptance.test.tsxapps/shade/src/components/patterns/settings-modal.tsxapps/shade/src/components/ui/dropdown-menu.tsxapps/shade/src/components/ui/popover.tsxapps/shade/src/components/ui/select.tsxapps/shade/src/lib/overlay-escape.tsapps/shade/test/unit/components/ui/overlay-escape.test.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- apps/shade/src/components/patterns/settings-modal.tsx

What changed
This PR completes the visual refinement pass after moving Settings from
admin-x-design-systemto Shade.Why
The Settings port was functionally complete, but the resulting UI still mixed legacy conventions with Shade defaults. That created inconsistent control heights, hierarchy, spacing, contrast, modal actions, and interaction behavior. Shared corrections live in Shade where they apply broadly; product-specific composition remains local to Settings.
Implemented issues
Shared Shade foundations
Settings refinements
Intentionally excluded
Validation
Every issue was visually reviewed and approved before its focused commit.
The branch was merged with the latest
mainbefore opening this PR.