Skip to content

Removed the settings portal mount - #29789

Merged
9larsons merged 3 commits into
mainfrom
slars/settings-unportal
Aug 6, 2026
Merged

9larsons merged 3 commits into
mainfrom
slars/settings-unportal

Conversation

@9larsons

@9larsons 9larsons commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Final structural piece of the native-settings work (follows #29762, #29763, #29780).

Settings was the only admin route escaping the React tree via createPortal(document.body) — which is why it re-declared the shade shade-admin scope classes and kept private z-index bookkeeping. The route element now renders a fixed inset-0 overlay inside the shell tree, the same full-screen pattern the automations editor uses (automations/editor.tsx). The admin sidebar is already unmounted via the route's hideAdminSidebar handle, and Radix dialogs/toasts portal themselves to the body, so nothing else needed to move.

Deliberately a tiny standalone PR: if any visual regression shows up, it bisects to stacking — not to the router swap that landed in #29780.

Verification

  • Acceptance: 57 files / 433 tests pass (settings suites + history specs unchanged)
  • Unit: 128 files / 1373 pass; tsc -b + lint clean
  • Worth a quick visual pass on the known portal-sensitive spots pre-merge: Koenig floating toolbars in settings editors, Pintura, sonner toasts over open dialogs, dirty-confirm dialog stacking (none are screenshot-covered by the suite)

- settings was the only admin route escaping the React tree through createPortal(document.body), forcing it to re-declare the shade scope classes and keep private z-index bookkeeping
- the route element now renders a fixed inset-0 overlay inside the shell tree, the same full-screen pattern the automations editor uses; the admin sidebar is already unmounted via the route handle, and Radix dialogs portal themselves to the body
- the shade/shade-admin wrapper re-declaration goes away since the element now renders inside ShadeApp's scope
@coderabbitai

coderabbitai Bot commented Aug 5, 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 Plus

Run ID: 6011ac1d-8cac-4513-838d-5c379bf50618

📥 Commits

Reviewing files that changed from the base of the PR and between 5489b65 and ede0167.

📒 Files selected for processing (1)
  • apps/admin/src/settings/settings.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/admin/src/settings/settings.tsx

Walkthrough

Settings now renders App inside an inline fixed full-viewport wrapper with z-index 50. It removes the createPortal call, document.body target, and shade-admin styling.

Possibly related PRs

  • TryGhost/Ghost#29563: Migrates Settings full-page modal rendering from the legacy design system to Shade.
  • TryGhost/Ghost#29596: Changes Settings full-screen behavior related to the outer admin shell.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing the settings route's portal mount.
Description check ✅ Passed The description directly explains the portal removal, replacement overlay, affected stacking behavior, and verification 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 slars/settings-unportal

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 5, 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 78b27fb

Command Status Duration Result
nx run @tryghost/admin:test:acceptance ✅ Succeeded 6m 37s View ↗
nx run-many -t test:unit -p @tryghost/admin ✅ Succeeded 2m 42s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 21s View ↗
nx run-many -t lint -p @tryghost/admin,ghost-mo... ✅ Succeeded 1m 15s View ↗
nx run @tryghost/admin:build ✅ Succeeded 22s 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-05 19:14:38 UTC

ref #29789

- settings now renders inside the shell, so it must sit above the contributor profile menu's z-20 stacking context
- match the automations full-screen takeover layer
@9larsons
9larsons merged commit fadf960 into main Aug 6, 2026
46 checks passed
@9larsons
9larsons deleted the slars/settings-unportal branch August 6, 2026 16:21
9larsons added a commit that referenced this pull request Aug 10, 2026
no ref

First slice of the settings NiceModal burn-down (follows the router swap
#29780 and un-portal #29789).

`ConfirmationModal` and `LimitModal` were NiceModal-shown from **54 call
sites across 27 files** — the bulk of settings' remaining NiceModal
usage. They now go through a settings-local `ConfirmationProvider`:
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