Skip to content

🎨 Refined Settings UI with Shade - #29720

Merged
peterzimon merged 43 commits into
mainfrom
codex/settings-refinement
Aug 4, 2026
Merged

peterzimon merged 43 commits into
mainfrom
codex/settings-refinement

Conversation

@peterzimon

Copy link
Copy Markdown
Contributor

What changed

This PR completes the visual refinement pass after moving Settings from admin-x-design-system to Shade.

  • standardizes modal, form-control, selection-control, tab, copy-field, field-spacing, and nested-overlay behavior in Shade
  • migrates Settings surfaces onto those shared defaults and removes obsolete local styling
  • polishes design, membership, Portal, newsletters, offers, integrations, imports, and responsive preview layouts
  • preserves existing settings values, routes, APIs, and backend behavior

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

  • DES-1441 — Installed-theme grid; deferred and left open
  • DES-1436 — Analytics rhythm was completed separately, so this branch contains no issue commit for it

Validation

Every issue was visually reviewed and approved before its focused commit.

  • Shade lint and type checks
  • Shade unit tests: 257 passed
  • Shade Storybook production build
  • Settings lint and type checks
  • Settings unit tests: 221 passed
  • Integrated Admin production build
  • Integrations acceptance tests: 16 passed
  • Settings acceptance tests: 301 passed; one Portal synchronization test remains blocked by an unchanged preview-loader overlay intercepting test clicks

The branch was merged with the latest main before opening this PR.

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-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-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.
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This 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 CopyField behavior, shared disabled and readonly control surfaces, and expanded Storybook and unit-test coverage.

Possibly related PRs

Suggested reviewers: 9larsons

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: refining the Settings UI using Shade.
Description check ✅ Passed The description directly explains the Shade standardization, Settings UI refinements, preserved behavior, and validation results.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/settings-refinement

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 7c80330

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

@peterzimon
peterzimon marked this pull request as ready for review August 3, 2026 15:14
@codecov

codecov Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.42%. Comparing base (70fd437) to head (7c80330).
⚠️ Report is 9 commits behind head on main.

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           
Flag Coverage Δ
admin-tests 55.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 win

Keep 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: Restore FieldLegend and its import, or add aria-labelledby to the FieldSet.
  • apps/admin-x-settings/src/components/settings/advanced/integrations/transistor-modal.tsx#L110-L131: Restore FieldLegend and its import, or add aria-labelledby to the FieldSet.
🤖 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 win

Use the @/ alias for this Shade import.

This file is under apps/shade/src. Change ./tabs to @/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 win

Handle Escape in a stacked overlay order.

Multiple useOverlayEscape overlays register capture-phase keydown listeners on document, and stopPropagation() 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

📥 Commits

Reviewing files that changed from the base of the PR and between 70fd437 and 5c9f111.

📒 Files selected for processing (111)
  • apps/admin-x-settings/src/components/confirmation-modal.tsx
  • apps/admin-x-settings/src/components/html-field.tsx
  • apps/admin-x-settings/src/components/settings/advanced/code/code-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/add-integration-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/api-keys.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/custom-integration-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/first-promoter-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/slack-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/transistor-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhooks-table.tsx
  • apps/admin-x-settings/src/components/settings/advanced/labs/yaml-file-editor-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/migration-tools/universal-import-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/spam-filters.tsx
  • apps/admin-x-settings/src/components/settings/email-design/email-design-modal.tsx
  • apps/admin-x-settings/src/components/settings/email-design/header-image-field.tsx
  • apps/admin-x-settings/src/components/settings/email/mailgun.tsx
  • apps/admin-x-settings/src/components/settings/email/newsletters/add-newsletter-modal.tsx
  • apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx
  • apps/admin-x-settings/src/components/settings/general/invite-user-modal.tsx
  • apps/admin-x-settings/src/components/settings/general/publication-language.tsx
  • apps/admin-x-settings/src/components/settings/general/seo-meta.tsx
  • apps/admin-x-settings/src/components/settings/general/social-accounts.tsx
  • apps/admin-x-settings/src/components/settings/general/title-and-description.tsx
  • apps/admin-x-settings/src/components/settings/general/users/profile-tab.tsx
  • apps/admin-x-settings/src/components/settings/general/users/social-links-tab.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-form-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-preview.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-sidebar.tsx
  • apps/admin-x-settings/src/components/settings/growth/explore/testimonials-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/edit-offer-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/edit-retention-offer-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/offer-success.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/offers-index.tsx
  • apps/admin-x-settings/src/components/settings/growth/recommendations/add-recommendation-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/recommendations/incoming-recommendation-list.tsx
  • apps/admin-x-settings/src/components/settings/growth/recommendations/recommendation-description-form.tsx
  • apps/admin-x-settings/src/components/settings/growth/tips-and-donations.tsx
  • apps/admin-x-settings/src/components/settings/membership/access.tsx
  • apps/admin-x-settings/src/components/settings/membership/custom-fields/custom-field-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/member-emails/test-email-dropdown.tsx
  • apps/admin-x-settings/src/components/settings/membership/member-emails/welcome-email-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/account-page.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/look-and-feel.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/portal-links.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/portal-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/transistor-settings.tsx
  • apps/admin-x-settings/src/components/settings/membership/stripe/stripe-connect-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-preview.tsx
  • apps/admin-x-settings/src/components/settings/preview-modal.tsx
  • apps/admin-x-settings/src/components/settings/settings-breadcrumbs.tsx
  • apps/admin-x-settings/src/components/settings/site/announcement-bar-modal.tsx
  • apps/admin-x-settings/src/components/settings/site/design-and-branding/global-settings.tsx
  • apps/admin-x-settings/src/components/settings/site/design-and-branding/theme-setting.tsx
  • apps/admin-x-settings/src/components/settings/site/design-modal.tsx
  • apps/admin-x-settings/src/components/settings/site/navigation/navigation-item-editor.tsx
  • apps/admin-x-settings/src/components/settings/site/theme-modal.tsx
  • apps/admin-x-settings/src/components/settings/site/theme/theme-editor-input-modal.tsx
  • apps/admin-x-settings/src/components/sidebar.tsx
  • apps/admin-x-settings/src/utils/generate-embed-code.ts
  • apps/admin-x-settings/test/unit/components/confirmation-modal.test.tsx
  • apps/admin-x-settings/test/unit/components/settings/settings-breadcrumbs.test.tsx
  • apps/admin-x-settings/test/unit/components/settings/webhooks-table.test.tsx
  • apps/admin-x-settings/test/unit/growth/embed-signup-preview.test.tsx
  • apps/admin-x-settings/test/unit/utils/generate-embed-code.test.ts
  • apps/shade/src/components/patterns/settings-modal.tsx
  • apps/shade/src/components/ui/alert-dialog.stories.tsx
  • apps/shade/src/components/ui/alert-dialog.tsx
  • apps/shade/src/components/ui/checkbox.stories.tsx
  • apps/shade/src/components/ui/checkbox.tsx
  • apps/shade/src/components/ui/combobox.tsx
  • apps/shade/src/components/ui/command.stories.tsx
  • apps/shade/src/components/ui/command.tsx
  • apps/shade/src/components/ui/copy-field.stories.tsx
  • apps/shade/src/components/ui/copy-field.tsx
  • apps/shade/src/components/ui/dialog.stories.tsx
  • apps/shade/src/components/ui/dropdown-menu.tsx
  • apps/shade/src/components/ui/field.stories.tsx
  • apps/shade/src/components/ui/field.tsx
  • apps/shade/src/components/ui/input-group.stories.tsx
  • apps/shade/src/components/ui/input-group.tsx
  • apps/shade/src/components/ui/input-surface.stories.tsx
  • apps/shade/src/components/ui/input-surface.ts
  • apps/shade/src/components/ui/input.stories.tsx
  • apps/shade/src/components/ui/input.tsx
  • apps/shade/src/components/ui/loading-indicator.stories.tsx
  • apps/shade/src/components/ui/loading-indicator.tsx
  • apps/shade/src/components/ui/multi-select-combobox.tsx
  • apps/shade/src/components/ui/popover.tsx
  • apps/shade/src/components/ui/radio-group.tsx
  • apps/shade/src/components/ui/select.tsx
  • apps/shade/src/components/ui/tabs.stories.tsx
  • apps/shade/src/components/ui/tabs.tsx
  • apps/shade/src/components/ui/textarea.tsx
  • apps/shade/src/docs/tokens/colors.stories.tsx
  • apps/shade/src/hooks/use-overlay-escape.ts
  • apps/shade/tailwind.theme.css
  • apps/shade/test/unit/components/patterns/settings-modal.test.tsx
  • apps/shade/test/unit/components/ui/alert-dialog.test.tsx
  • apps/shade/test/unit/components/ui/checkbox.test.tsx
  • apps/shade/test/unit/components/ui/command.test.tsx
  • apps/shade/test/unit/components/ui/copy-field.test.tsx
  • apps/shade/test/unit/components/ui/field.test.tsx
  • apps/shade/test/unit/components/ui/input-group.test.tsx
  • apps/shade/test/unit/components/ui/input.test.tsx
  • apps/shade/test/unit/components/ui/overlay-escape.test.tsx
  • apps/shade/test/unit/components/ui/radio-group.test.tsx
  • apps/shade/test/unit/components/ui/tabs.test.tsx
  • apps/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

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

E2E Tests Failed

To 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.
@peterzimon
peterzimon requested a review from 9larsons as a code owner August 3, 2026 16:05

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 win

Restore the clipboard mock after the test.

This test replaces the shared navigator.clipboard property and leaves the replacement installed. A later test in the same worker can observe the writeText mock and become order-dependent. Restore the original property in afterEach.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 5c9f111 and ba05161.

📒 Files selected for processing (21)
  • apps/admin-x-settings/src/components/settings/advanced/integrations/custom-integration-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhooks-table.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-form-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-preview.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-sidebar.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/portal-frame.tsx
  • apps/admin-x-settings/src/components/settings/preview-modal.tsx
  • apps/admin-x-settings/src/utils/generate-embed-code.ts
  • apps/admin-x-settings/test/unit/components/settings/webhooks-table.test.tsx
  • apps/admin-x-settings/test/unit/growth/embed-signup-preview.test.tsx
  • apps/admin-x-settings/test/unit/utils/generate-embed-code.test.ts
  • apps/admin/src/settings/membership/tiers.acceptance.test.tsx
  • apps/shade/src/components/patterns/settings-modal.tsx
  • apps/shade/src/components/ui/copy-field.tsx
  • apps/shade/src/components/ui/dropdown-menu.tsx
  • apps/shade/src/components/ui/popover.tsx
  • apps/shade/src/components/ui/select.tsx
  • apps/shade/test/unit/components/ui/copy-field.test.tsx
  • apps/shade/test/unit/components/ui/overlay-escape.test.tsx
  • e2e/helpers/pages/admin/settings/sections/portal-section.ts
  • e2e/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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
apps/shade/src/components/ui/dropdown-menu.tsx (1)

50-50: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove 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

📥 Commits

Reviewing files that changed from the base of the PR and between ba05161 and 7c80330.

📒 Files selected for processing (11)
  • apps/admin/src/settings/email/email-settings.acceptance.test.tsx
  • apps/admin/src/settings/general/time-zone.acceptance.test.tsx
  • apps/admin/src/settings/growth/tips-and-donations.acceptance.test.tsx
  • apps/admin/src/settings/membership/access.acceptance.test.tsx
  • apps/admin/src/settings/site/theme.acceptance.test.tsx
  • apps/shade/src/components/patterns/settings-modal.tsx
  • apps/shade/src/components/ui/dropdown-menu.tsx
  • apps/shade/src/components/ui/popover.tsx
  • apps/shade/src/components/ui/select.tsx
  • apps/shade/src/lib/overlay-escape.ts
  • apps/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

@peterzimon
peterzimon merged commit 88ddc0e into main Aug 4, 2026
48 checks passed
@peterzimon
peterzimon deleted the codex/settings-refinement branch August 4, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant