Repository navigation
Updated settings text fields to Shade - #29513
Conversation
no ref The remaining legacy fields blocked removal of their design-system exports, while repeated copy rows needed one generic owner for consistent focus and feedback behavior.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughThe design system removes legacy Hint, TextArea, CurrencyField, and URLTextField exports and replaces their usage with Shade field primitives. New 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 | 6m 40s | View ↗ |
nx run-many -t test:unit -p @tryghost/admin-x-d... |
✅ Succeeded | 5m 6s | View ↗ |
nx run ghost-admin:test |
✅ Succeeded | 3m 16s | View ↗ |
nx run ghost-monorepo:lint:boundaries |
✅ Succeeded | 20s | View ↗ |
nx run-many -t lint -p @tryghost/admin-x-design... |
✅ Succeeded | 2m 6s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 1m 59s | View ↗ |
nx run @tryghost/activitypub:test:acceptance |
✅ Succeeded | 47s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | <1s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-22 13:20:11 UTC
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29513 +/- ##
==========================================
- Coverage 74.57% 74.57% -0.01%
==========================================
Files 1609 1609
Lines 141363 141363
Branches 17258 17258
==========================================
- Hits 105423 105419 -4
- Misses 34909 34911 +2
- Partials 1031 1033 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
no ref The Shade migration should preserve the established visual hierarchy while the broader filled-control treatment is reviewed with design.
no ref Navigation URL inputs should retain visual parity with their label inputs during the Shade migration.
no ref Shade replacements should preserve the established filled input treatment and stable row alignment throughout this migration.
no ref The public Hint API can remain retired while the few surviving legacy consumers share semantic styling instead of duplicating the removed component CSS.
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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/growth/recommendations/recommendation-description-form.tsx`:
- Around line 109-124: Add a FieldError component within the description Field
in the recommendation description form, using errors.description as its
displayed message so invalid submissions show the validation reason while
preserving the existing textarea and FieldDescription behavior.
In `@apps/admin-x-settings/src/components/settings/membership/access.tsx`:
- Around line 213-246: Update the InputGroupButton for “Regenerate access code”
so it is disabled when isPrivateLocked as well as while isRegenerating. Preserve
handleRegenerateAccessCode and the existing enabled behavior when the access
code is editable.
In `@apps/admin-x-settings/src/hooks/use-currency-input.ts`:
- Around line 5-7: Update forceCurrencyValue to preserve leading-decimal inputs
such as .5 and .99 by cleaning the input with the existing numeric sanitization
approach and passing the resulting string to parseFloat before converting to
cents; retain the current zero fallback for empty or invalid input. Add focused
useCurrencyInput tests covering leading decimals and the hook’s related edge
cases, including multiple decimal points and external reset synchronization.
🪄 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: a3c1f841-2f5a-49c9-af6c-bae2f1ba65c2
📒 Files selected for processing (50)
apps/admin-x-design-system/src/global/form/code-editor-view.tsxapps/admin-x-design-system/src/global/form/currency-field.stories.tsxapps/admin-x-design-system/src/global/form/currency-field.tsxapps/admin-x-design-system/src/global/form/html-field.tsxapps/admin-x-design-system/src/global/form/text-area.stories.tsxapps/admin-x-design-system/src/global/form/text-area.tsxapps/admin-x-design-system/src/global/form/text-field.tsxapps/admin-x-design-system/src/global/form/url-text-field.stories.tsxapps/admin-x-design-system/src/global/form/url-text-field.tsxapps/admin-x-design-system/src/global/hint.stories.tsxapps/admin-x-design-system/src/global/hint.tsxapps/admin-x-design-system/src/global/layout/page.stories.tsxapps/admin-x-design-system/src/global/list.tsxapps/admin-x-design-system/src/global/sortable-list.tsxapps/admin-x-design-system/src/global/table.tsxapps/admin-x-design-system/src/global/table/dynamic-table.stories.tsxapps/admin-x-design-system/src/index.tsapps/admin-x-settings/src/components/settings/advanced/integrations/api-keys.tsxapps/admin-x-settings/src/components/settings/advanced/spam-filters.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/users/profile-tab.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/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/gift-subscriptions.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/member-emails/welcome-email-preview-frame.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/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/navigation/navigation-edit-form.tsxapps/admin-x-settings/src/components/settings/site/navigation/navigation-item-editor.tsxapps/admin-x-settings/src/components/sidebar.tsxapps/admin-x-settings/src/hooks/use-currency-input.tsapps/admin-x-settings/src/hooks/use-url-input.tsapps/admin/src/settings/advanced/integrations.acceptance.test.tsxapps/admin/src/settings/growth/tips-and-donations.acceptance.test.tsxapps/shade/src/components.tsapps/shade/src/components/ui/copy-field.stories.tsxapps/shade/src/components/ui/copy-field.tsxapps/shade/src/components/ui/input-group.tsxapps/shade/src/docs/adoption-data.json
💤 Files with no reviewable changes (9)
- apps/admin-x-design-system/src/global/form/url-text-field.tsx
- apps/admin-x-design-system/src/global/form/text-area.stories.tsx
- apps/admin-x-design-system/src/global/form/url-text-field.stories.tsx
- apps/admin-x-design-system/src/global/form/text-area.tsx
- apps/admin-x-design-system/src/global/hint.stories.tsx
- apps/admin-x-design-system/src/global/form/currency-field.tsx
- apps/admin-x-design-system/src/global/form/currency-field.stories.tsx
- apps/admin-x-design-system/src/global/hint.tsx
- apps/admin-x-design-system/src/index.ts

What changed
TextArea,URLTextField,CurrencyField, andHintconsumers with Shade fields, inputs, textareas, and input groupsCopyFieldand used it for API keys, gift subscriptions, and tips & donationsWhy CopyField exists
The three copy rows had independently implemented the same value layout, hover/focus action reveal, clipboard state, timeout cleanup, and copied feedback.
CopyFieldowns only that generic interaction contract and exposes compound slots for labels, values, and caller-supplied actions. It has no Ghost settings, routing, query, or modal knowledge, so it belongs in Shade rather than another settings wrapper.Ordinary text, URL, and currency fields still compose existing Shade primitives directly; there is no new settings-level field component.
Validation
Manual validation
/focus shortcut, and Escape blur