Skip to content

🎨 Updated settings chooser controls - #29503

Merged
9larsons merged 6 commits into
mainfrom
codex/admin-settings-shade-choosers
Jul 21, 2026
Merged

9larsons merged 6 commits into
mainfrom
codex/admin-settings-shade-choosers

Conversation

@9larsons

@9larsons 9larsons commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • replaced the remaining admin-x-design-system Select, MultiSelect, and SelectWithOther usages in settings with Shade controls
  • added a small generic Shade Combobox compound shell for shared trigger/value/content chrome; settings still own all data, search, grouping, loading, and selection state
  • removed the legacy chooser components, stories, exports, and react-select dependencies
  • preserved searchable, grouped, async, multi-select, custom-value, and modal chooser behavior
  • replaced the offer amount/unit overlay with the Shade InputGroup select addon
  • updated acceptance helpers to target the semantic option roles exposed by Shade

Why

The legacy chooser layer duplicated behavior already available in Shade and allowed focus, accessibility, async loading, and modal layering behavior to diverge.

This intentionally does not add SettingsSelect, SettingsCombobox, SelectField, or ComboboxField wrappers. Ordinary fields compose Shade controls directly. The generic Combobox only centralizes the repeated accessible input-surface trigger, value, chevron, and popover-content chrome across six callsites. MultiSelectCombobox only gained generic grouping support needed by tier, segment, and currency lists.

Review fixes incorporated

Eight independent review passes plus a clean re-review were applied:

  • removed the proposed prop-heavy Shade pattern abstraction
  • replaced six repeated chooser shells with a small slot-based, state-free Shade Combobox component
  • fixed dropdown portal layering inside legacy settings modals
  • prevented non-clearable single searchable fields from clearing on re-selection
  • guarded async results against stale responses, failures, unmounts, and stuck loading states
  • added a retry/error state that prevents transient recipient hydration failures from discarding saved filters
  • kept newly created embed labels visible immediately and suppressed duplicate creation while results load
  • connected invalid state and accessible names to chooser triggers
  • avoided block-level markup inside Radix select text
  • removed unrelated lockfile solver churn
  • restored per-option font previews and the required preview-toolbar ReactNode slot while preserving the previewToolbarURLs API
  • kept hinted selections label-only in closed triggers
  • preserved distinct currency groups with shared visible headings
  • restored saved publication-language and recipient-segment state on Cancel, including stored custom locales
  • restored the history filter's clear-before-chevron order and verified the clear route

Validation

  • admin-x-settings ESLint and TypeScript
  • Shade ESLint, TypeScript, build, Storybook build, and 227/227 unit tests
  • consolidated Admin ESLint and TypeScript
  • admin-x-design-system ESLint and build
  • pre-commit lint-staged, dependency-cruiser, secret scan, and lockfile policy checks
  • focused Admin browser acceptance: 32/32 final affected paths
  • two final deep re-reviews: no significant P0-P2 findings

no ref

The legacy chooser layer duplicated behavior already provided by Shade and let accessibility and modal behavior diverge. Composing existing controls keeps settings on one UI system without introducing another settings-specific wrapper.
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0f397202-0d36-40d4-b6b6-6029c025067c

📥 Commits

Reviewing files that changed from the base of the PR and between fcfc6ad and 78b935f.

📒 Files selected for processing (27)
  • apps/admin-x-settings/src/components/settings/advanced/history-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsx
  • apps/admin-x-settings/src/components/settings/email/default-recipients.tsx
  • apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx
  • apps/admin-x-settings/src/components/settings/general/publication-language.tsx
  • apps/admin-x-settings/src/components/settings/general/time-zone.tsx
  • apps/admin-x-settings/src/components/settings/general/users/role-selector.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-retention-offer-modal.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/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/signup-options.tsx
  • apps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-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/theme/theme-preview.tsx
  • apps/admin/src/settings/advanced/advanced.acceptance.test.tsx
  • apps/admin/src/settings/email/default-recipients.acceptance.test.tsx
  • apps/admin/src/settings/general/publication-language.acceptance.test.tsx
  • apps/admin/src/settings/layout.acceptance.test.tsx
  • apps/shade/src/components/ui/combobox.tsx
  • apps/shade/src/components/ui/multi-select-combobox.tsx
  • apps/shade/src/components/ui/select.tsx
🚧 Files skipped from review as they are similar to previous changes (19)
  • apps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-modal.tsx
  • apps/admin/src/settings/general/publication-language.acceptance.test.tsx
  • apps/admin-x-settings/src/components/settings/site/theme/theme-preview.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/portal-links.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/look-and-feel.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsx
  • apps/admin-x-settings/src/components/settings/membership/portal/signup-options.tsx
  • apps/admin-x-settings/src/components/settings/site/design-and-branding/theme-setting.tsx
  • apps/shade/src/components/ui/combobox.tsx
  • apps/admin-x-settings/src/components/settings/growth/embed-signup/embed-signup-sidebar.tsx
  • apps/shade/src/components/ui/multi-select-combobox.tsx
  • apps/admin-x-settings/src/components/settings/membership/custom-fields/custom-field-modal.tsx
  • apps/admin-x-settings/src/components/settings/general/users/role-selector.tsx
  • apps/admin-x-settings/src/components/settings/growth/explore/testimonials-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/history-modal.tsx
  • apps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsx
  • apps/admin-x-settings/src/components/settings/email/default-recipients.tsx
  • apps/admin-x-settings/src/components/settings/site/design-and-branding/global-settings.tsx
  • apps/admin-x-settings/src/components/settings/general/publication-language.tsx

Walkthrough

The PR removes legacy Select, MultiSelect, and SelectWithOther exports and their react-select dependencies. Admin settings controls migrate to Shade Select, Combobox, and MultiSelectCombobox components, including grouped options, async loading, hydration retry/reset behavior, and custom locale handling. Preview toolbar content and local option types are updated, while acceptance tests and screen helpers adopt role-based option queries.

Possibly related PRs

  • TryGhost/Ghost#29408 — Updates acceptance tests for overlapping default-recipient settings behavior.

Suggested labels: migration

Suggested reviewers: peterzimon

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the PR, but it's too generic to clearly convey the main change. Make the title more specific, e.g. mention the move from admin-x-design-system chooser controls to Shade controls.
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description matches the changeset and summarizes the migration and cleanup work accurately.
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/admin-settings-shade-choosers

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.

9larsons added 3 commits July 21, 2026 14:31
no ref

Fresh review exposed stale async results, incorrect font previews, and lost grouping and toolbar behavior. These fixes preserve legacy behavior while keeping settings composed from existing Shade controls.
no ref

Final review exposed stuck loading states, stale cancel state, and indicator overlap risks. These fixes keep migrated controls resilient while preserving the planned preview API.
no ref

Deep review exposed a transient hydration path that could discard saved recipient filters and repeated trigger chrome that violated the slice shared-composition rule.
@9larsons
9larsons marked this pull request as ready for review July 21, 2026 20:25
ref #29503

Regenerated the pnpm lockfile from the merged workspace manifests so the chooser migration can merge cleanly without stale dependency entries.
@nx-cloud

nx-cloud Bot commented Jul 21, 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 78b935f

Command Status Duration Result
nx run ghost:test:ci:integration ✅ Succeeded 3m 5s View ↗
nx run-many -t test:unit -p @tryghost/admin-x-d... ✅ Succeeded 7m 33s View ↗
nx run @tryghost/admin:test:acceptance ✅ Succeeded 6m 58s View ↗
nx run ghost:test:integration ✅ Succeeded 2m 59s View ↗
nx run ghost:test:legacy ✅ Succeeded 3m 15s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 19s View ↗
nx run-many -t lint -p @tryghost/admin-x-design... ✅ Succeeded 3m 21s View ↗
nx run ghost-admin:test ✅ Succeeded 3m 11s View ↗
Additional runs (8) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-21 21:37:12 UTC

@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: 4

🧹 Nitpick comments (5)
apps/admin-x-settings/src/components/settings/advanced/history-modal.tsx (1)

91-103: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Clear the pending search timer for immediate requests too.

In requestOptions, clearTimeout(searchTimer.current) runs only inside the deferred branch. When an immediate request (e.g. popover open at line 149) fires while a debounced search is still pending, the stale timer still triggers a discarded loadData call. The sibling implementations (default-recipients.tsx and embed-signup-sidebar.tsx) clear the timer unconditionally; aligning here avoids the wasted request and keeps the three loaders consistent.

♻️ Suggested change
     const requestOptions = useCallback((input: string, deferred = false) => {
         requestSequence.current += 1;
         const request = requestSequence.current;
         setStaffLoading(true);
+        if (searchTimer.current) {
+            clearTimeout(searchTimer.current);
+        }
         if (deferred) {
-            if (searchTimer.current) {
-                clearTimeout(searchTimer.current);
-            }
             searchTimer.current = setTimeout(() => void loadOptions(input, request), 500);
         } else {
             void loadOptions(input, request);
         }
     }, [loadOptions]);
🤖 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/history-modal.tsx`
around lines 91 - 103, Update requestOptions to clear any existing searchTimer
unconditionally before branching on deferred, matching the behavior in the
sibling loaders. Preserve the deferred timer scheduling and immediate
loadOptions execution after the timer is cleared.
apps/admin-x-settings/src/components/settings/general/users/role-selector.tsx (1)

62-64: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Redundant/competing anchor styling inside FieldDescription.

FieldDescription already styles direct-child <a> tags ([&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary), but the <a> here re-declares its own text/hover color classes, which duplicates and can conflict with the ancestor's built-in link styling.

♻️ Suggested simplification
-                    This user is the owner of the site. <a className='font-medium text-muted-foreground transition-colors hover:text-foreground' href='https://ghost.org/help/transfer-publication-ownership/' rel='noopener noreferrer' target='_blank'>Transfer ownership</a> first to change their role.
+                    This user is the owner of the site. <a href='https://ghost.org/help/transfer-publication-ownership/' rel='noopener noreferrer' target='_blank'>Transfer ownership</a> first to change their role.
🤖 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/general/users/role-selector.tsx`
around lines 62 - 64, Remove the redundant text and hover color utility classes
from the anchor inside the FieldDescription for the ownership-transfer link,
allowing FieldDescription’s built-in direct-child link styling to control its
appearance while preserving the remaining link classes and behavior.
apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx (1)

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

Hardcoded z-[9999] on SelectContent is repeated across every modal-hosted Select. This migration introduces the same manual className='z-[9999]' override on SelectContent at 11 sites across 8 files, all working around the same root cause: Shade's SelectContent default z-index isn't high enough to escape a Modal's stacking context. Centralizing this (e.g. a higher default z-index in SelectContent, or a modal-aware variant/prop in Shade) would remove the duplication and prevent a future select from being silently hidden behind a modal when someone forgets to add the override.

  • apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx#L451-483: remove the three z-[9999] class overrides on the heading-font, heading-weight, and body-font SelectContents once the shared default/variant is in place.
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsx#L95-95: remove the z-[9999] override on the Event SelectContent.
  • apps/admin-x-settings/src/components/settings/general/users/role-selector.tsx#L58-58: remove the z-[9999] override on the owner-role SelectContent.
  • apps/admin-x-settings/src/components/settings/general/users/role-selector.tsx#L85-85: remove the z-[9999] override on the editable-role SelectContent.
  • apps/admin-x-settings/src/components/settings/growth/explore/testimonials-modal.tsx#L210-210: remove the z-[9999] override on the previous-platform SelectContent.
  • apps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsx#L226-226: remove the z-[9999] override on the tier-cadence SelectContent.
  • apps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsx#L257-257: remove the z-[9999] override on the amount-type SelectContent.
  • apps/admin-x-settings/src/components/settings/growth/offers/add-offer-modal.tsx#L272-272: remove the z-[9999] override on the duration SelectContent.
  • apps/admin-x-settings/src/components/settings/growth/offers/edit-retention-offer-modal.tsx#L320-320: remove the z-[9999] override on the duration SelectContent.
  • apps/admin-x-settings/src/components/settings/membership/custom-fields/custom-field-modal.tsx#L226-226: remove the z-[9999] override on the type SelectContent.
  • apps/admin-x-settings/src/components/settings/membership/portal/look-and-feel.tsx#L86-86: remove the z-[9999] override on the button-style SelectContent.
🤖 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/email/newsletters/newsletter-detail-modal.tsx`
at line 1, Centralize the modal stacking behavior in Shade’s SelectContent by
increasing its shared default z-index or adding a modal-aware variant/prop,
ensuring SelectContent renders above Modal stacking contexts. Then remove the
repeated z-[9999] class overrides from the affected SelectContent usages,
including those in NewsletterDetailModal and the other modal settings
components, while preserving existing Select behavior.
apps/admin-x-settings/src/components/settings/site/design-and-branding/global-settings.tsx (1)

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

FontOption (and FontSelectOption) appear duplicated in newsletter-detail-modal.tsx.

Graph context shows apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx defines an identical FontOption component (same props shape, same JSX/className/data-testid logic) for its own font Select. Consider extracting FontSelectOption/FontOption into a shared local module (e.g. a font-option.tsx helper under settings) so both files import the same implementation instead of maintaining two copies that can drift.

Also applies to: 48-56

🤖 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/site/design-and-branding/global-settings.tsx`
around lines 17 - 31, Extract the duplicated FontSelectOption/FontOption
implementation from global-settings.tsx and newsletter-detail-modal.tsx into a
shared local font-option module. Export and import the shared types and
component in both consumers, preserving their existing props, JSX, className,
and data-testid behavior so the implementations cannot drift.
apps/shade/src/components/ui/combobox.tsx (1)

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

Consider defaulting ComboboxContent to a high z-index.

Every consumer of this new component in this PR (time-zone.tsx, access.tsx, tier-detail-modal.tsx, etc.) manually appends className='z-[9999]' to override the popover's stacking context, presumably because these controls are frequently rendered inside Modals. Since the override is identical everywhere, it'd be more maintainable to bake a suitable z-index into ComboboxContent's base classes (consumers can still override via className when needed) rather than repeating the magic value across every settings file.

♻️ Proposed fix
 const ComboboxContent = React.forwardRef<
     React.ElementRef<typeof PopoverContent>,
     React.ComponentPropsWithoutRef<typeof PopoverContent>
 >(({align = 'start', className, ...props}, ref) => (
     <PopoverContent
         ref={ref}
         align={align}
-        className={cn('w-(--radix-popover-trigger-width) p-0', className)}
+        className={cn('z-[9999] w-(--radix-popover-trigger-width) p-0', className)}
         {...props}
     />
 ));
🤖 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/combobox.tsx` around lines 46 - 57, Update
ComboboxContent’s base className to include the shared high z-index required for
popovers rendered inside modals, using the same value currently repeated by its
consumers. Keep the existing className merge so individual consumers can still
override the default, and remove the redundant z-index classes from the affected
ComboboxContent usages.
🤖 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/admin-x-settings/src/components/settings/advanced/history-modal.tsx`:
- Line 115: Initialize the searchedStaff state in HistoryFilter from the
incoming userId by locating the matching staff option, while preserving
null/empty state when no matching option exists. Ensure the staff combobox
displays the selected user and exposes its clear action for history/view/{id}
filters.

In `@apps/admin-x-settings/src/components/settings/email/default-recipients.tsx`:
- Around line 90-94: Update the selectedSegments merge effect to preserve
metadata.group when combining selected and existing segment options. Avoid
flattening grouped options through flattenSegmentOptions, or reconstruct each
option with its original group metadata, so MultiSelectCombobox continues
rendering section headers after selections change.

In `@apps/admin/src/settings/general/publication-language.acceptance.test.tsx`:
- Around line 82-95: Update the test case “clears validation when cancelling
changes to a stored custom locale” to explicitly assert that the “Invalid locale
format” validation message is no longer visible after clicking Cancel, while
preserving the existing assertions for the restored locale value and helper
text.

In `@apps/shade/src/components/ui/multi-select-combobox.tsx`:
- Around line 363-371: Update the CommandGroup key in the unselectedGroups
rendering to distinguish ungrouped groups from a real group whose key is
"options". Preserve stable uniqueness for grouped sections by using a dedicated
fallback key for groups where group.key is absent.

---

Nitpick comments:
In `@apps/admin-x-settings/src/components/settings/advanced/history-modal.tsx`:
- Around line 91-103: Update requestOptions to clear any existing searchTimer
unconditionally before branching on deferred, matching the behavior in the
sibling loaders. Preserve the deferred timer scheduling and immediate
loadOptions execution after the timer is cleared.

In
`@apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx`:
- Line 1: Centralize the modal stacking behavior in Shade’s SelectContent by
increasing its shared default z-index or adding a modal-aware variant/prop,
ensuring SelectContent renders above Modal stacking contexts. Then remove the
repeated z-[9999] class overrides from the affected SelectContent usages,
including those in NewsletterDetailModal and the other modal settings
components, while preserving existing Select behavior.

In
`@apps/admin-x-settings/src/components/settings/general/users/role-selector.tsx`:
- Around line 62-64: Remove the redundant text and hover color utility classes
from the anchor inside the FieldDescription for the ownership-transfer link,
allowing FieldDescription’s built-in direct-child link styling to control its
appearance while preserving the remaining link classes and behavior.

In
`@apps/admin-x-settings/src/components/settings/site/design-and-branding/global-settings.tsx`:
- Around line 17-31: Extract the duplicated FontSelectOption/FontOption
implementation from global-settings.tsx and newsletter-detail-modal.tsx into a
shared local font-option module. Export and import the shared types and
component in both consumers, preserving their existing props, JSX, className,
and data-testid behavior so the implementations cannot drift.

In `@apps/shade/src/components/ui/combobox.tsx`:
- Around line 46-57: Update ComboboxContent’s base className to include the
shared high z-index required for popovers rendered inside modals, using the same
value currently repeated by its consumers. Keep the existing className merge so
individual consumers can still override the default, and remove the redundant
z-index classes from the affected ComboboxContent usages.
🪄 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

Run ID: 38e7d7d2-2edf-417b-bebb-7b17c0b0bb1c

📥 Commits

Reviewing files that changed from the base of the PR and between f136c08 and 1087126.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (51)
  • apps/admin-x-design-system/package.json
  • apps/admin-x-design-system/src/global/chrome/desktop-chrome-header.stories.tsx
  • apps/admin-x-design-system/src/global/form/multi-select.stories.tsx
  • apps/admin-x-design-system/src/global/form/multi-select.tsx
  • apps/admin-x-design-system/src/global/form/select-with-other.stories.tsx
  • apps/admin-x-design-system/src/global/form/select-with-other.tsx
  • apps/admin-x-design-system/src/global/form/select.stories.tsx
  • apps/admin-x-design-system/src/global/form/select.tsx
  • apps/admin-x-design-system/src/global/form/text-field.stories.tsx
  • apps/admin-x-design-system/src/global/modal/preview-modal.tsx
  • apps/admin-x-design-system/src/index.ts
  • apps/admin-x-settings/package.json
  • apps/admin-x-settings/src/components/settings/advanced/history-modal.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-event-options.tsx
  • apps/admin-x-settings/src/components/settings/advanced/integrations/webhook-modal.tsx
  • apps/admin-x-settings/src/components/settings/email/default-recipients.tsx
  • apps/admin-x-settings/src/components/settings/email/mailgun.tsx
  • apps/admin-x-settings/src/components/settings/email/newsletters/newsletter-detail-modal.tsx
  • apps/admin-x-settings/src/components/settings/email/use-default-recipients-options.tsx
  • apps/admin-x-settings/src/components/settings/general/publication-language.tsx
  • apps/admin-x-settings/src/components/settings/general/time-zone.tsx
  • apps/admin-x-settings/src/components/settings/general/users/role-selector.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-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-retention-offer-modal.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/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/signup-options.tsx
  • apps/admin-x-settings/src/components/settings/membership/tiers/tier-detail-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/theme/theme-preview.tsx
  • apps/admin-x-settings/src/utils/currency.ts
  • apps/admin-x-settings/src/utils/get-tiers-cadences.ts
  • apps/admin/src/settings/advanced/advanced.acceptance.test.tsx
  • apps/admin/src/settings/email/default-recipients.acceptance.test.tsx
  • apps/admin/src/settings/general/publication-language.acceptance.test.tsx
  • apps/admin/src/settings/membership/access.acceptance.test.tsx
  • apps/admin/src/settings/membership/custom-fields.acceptance.test.tsx
  • apps/admin/src/settings/offers.screen.ts
  • apps/admin/src/settings/settings.screen.ts
  • apps/shade/src/components.ts
  • apps/shade/src/components/ui/combobox.stories.tsx
  • apps/shade/src/components/ui/combobox.tsx
  • apps/shade/src/components/ui/multi-select-combobox.tsx
  • e2e/helpers/pages/admin/settings/sections/access-section.ts
💤 Files with no reviewable changes (8)
  • apps/admin-x-settings/package.json
  • apps/admin-x-design-system/src/global/form/select.tsx
  • apps/admin-x-design-system/src/global/form/select.stories.tsx
  • apps/admin-x-design-system/src/global/form/multi-select.stories.tsx
  • apps/admin-x-design-system/src/global/form/multi-select.tsx
  • apps/admin-x-design-system/src/global/form/select-with-other.stories.tsx
  • apps/admin-x-design-system/src/global/form/select-with-other.tsx
  • apps/admin-x-design-system/src/index.ts

@codecov

codecov Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.57%. Comparing base (5457154) to head (78b935f).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #29503      +/-   ##
==========================================
+ Coverage   74.52%   74.57%   +0.04%     
==========================================
  Files        1609     1609              
  Lines      141329   141338       +9     
  Branches    17240    17263      +23     
==========================================
+ Hits       105320   105397      +77     
+ Misses      34948    34909      -39     
+ Partials     1061     1032      -29     
Flag Coverage Δ
admin-tests 55.44% <ø> (-0.03%) ⬇️
e2e-tests 76.64% <ø> (+0.05%) ⬆️

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.

ref #29503
The chooser migration exposed Escape to legacy modal listeners and left several selection states inconsistent with their active routes.
@9larsons

Copy link
Copy Markdown
Contributor Author

Addressed the review-summary items in 78b935f:

  • History staff search now clears a pending debounce before both immediate and deferred requests.
  • Modal-safe stacking is centralized in Shade SelectContent and ComboboxContent, and the repeated Settings z-index overrides were removed.
  • Shade Select now owns Escape while open, so Escape closes the dropdown without closing the containing legacy modal. The Portal acceptance test covers this interaction.
  • The ownership-transfer link now uses FieldDescription link styling.
  • I did not extract FontOption: the two sites are not duplicate implementations on this branch. Global Settings has the rich Aa preview component and hint layout; Newsletter Detail only has a small local option type and renders a plain styled label. A shared renderer would either change the newsletter UI or add an abstraction with only one consumer.

Validation completed locally: 35 affected Admin acceptance tests, 206 Settings unit tests, 227 Shade unit tests, package type checks and lint, Shade build, and Storybook build.

@9larsons
9larsons merged commit 3090cae into main Jul 21, 2026
53 checks passed
@9larsons
9larsons deleted the codex/admin-settings-shade-choosers branch July 21, 2026 21:49
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