Skip to content

Cleaned up the admin-x naming left in the settings shell - #30117

Merged
9larsons merged 1 commit into
mainfrom
slars/settings-id-cleanup
Aug 19, 2026
Merged

9larsons merged 1 commit into
mainfrom
slars/settings-id-cleanup

Conversation

@9larsons

Copy link
Copy Markdown
Contributor

no ref

Tail of the settings integration:

  • admin-x-settings-{content,sidebar,sidebar-scroller,scroller} element ids → settings-*; the admin-x-base admin-x-settings wrapper class → settings-app (and the heading line-height rule in index.css follows). Nothing outside apps/admin/src/settings referenced any of them (checked Ember, e2e, shade, test-utils); no id collisions with Ember's DOM.
  • SettingsAppProvider typed every context field as an optional prop but overwrote sortingState/setSortingState/offersShowArchived/setOffersShowArchived after spreading them (the CodeRabbit note on Moved shared settings code out of the settings quarantine #30113 — pre-existing). It now takes only upgradeStatus, the one prop its caller passes.

Verification

  • pnpm test:acceptance layout, navigation-history, routing, search, permissions, design, offers — 29/29
  • admin unit 1594/1594; tsc -b + eslint clean

@coderabbitai

coderabbitai Bot commented Aug 19, 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: QUIET

Plan: Pro Plus

Run ID: 441394b8-7d06-4b9c-9356-24e643ec8311

📥 Commits

Reviewing files that changed from the base of the PR and between 6fdbb81 and 83dfa1a.

📒 Files selected for processing (1)
  • apps/admin/src/index.css

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (9)
  • GitHub Check: App Playwright Acceptance Tests (@tryghost/admin)
  • GitHub Check: Lint
  • GitHub Check: Build Admin
  • GitHub Check: Check app version bump
  • GitHub Check: Build E2E Public App Assets
  • GitHub Check: Unit tests (Node 22.23.1)
  • GitHub Check: Check migration integrity
  • GitHub Check: Build Docker Images
  • GitHub Check: Analyze (javascript-typescript)
🧰 Additional context used
📓 Path-based instructions (2)
**/*

📄 CodeRabbit inference engine (AGENTS.md)

Always use pnpm, never npm or Yarn.

Files:

  • apps/admin/src/index.css

⚙️ CodeRabbit configuration file

**/*: Prioritise concrete correctness, security, data-integrity, compatibility,
and regression risks. Explain the failure mode and point to the affected
code. Do not report formatting, naming, import ordering, type errors, or
other findings already owned by configured static tools or failing GitHub
checks. Do not request speculative abstractions, broad refactors, generic
documentation, or tests unrelated to changed behaviour. Treat nearby
AGENTS.md files and mapped codebase documentation as authoritative; do not
enforce proposals, plans, or historical guidance as current policy.

Files:

  • apps/admin/src/index.css
**/*.{css,scss}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{css,scss}: do not import @tryghost/shade/styles.css from an
embedded app.

Files:

  • apps/admin/src/index.css
🔇 Additional comments (1)
apps/admin/src/index.css (1)

23-31: LGTM!


Walkthrough

The settings app now uses settings-app and settings-* identifiers across its layout, scrolling, sidebar, portal, and heading styles. SettingsAppProvider accepts only upgradeStatus and children, then explicitly provides themes, templates, and upgrade status in its context value.

Possibly related PRs

Suggested reviewers: peterzimon

Merge Risk: ⚪ Minimal · up to 83dfa

This PR only cleans up settings-shell naming and simplifies provider props, with no actionable merge-blocking risk remaining after the reported checks pass.

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing legacy admin-x naming from the settings shell.
Description check ✅ Passed The description directly explains the renamed settings identifiers, the simplified provider props, and the 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.
Type-Safe Boundaries ✅ Passed The diff only renames CSS/DOM selectors and narrows an internal provider prop; added lines contain no any, unchecked as, or ts bypass, and no new boundary read or schema duplication.
New Files Are Typescript ✅ Passed The PR changes seven existing files, all marked M; the diff adds no files and no new .js/.jsx/.cjs/.mjs source file.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch slars/settings-id-cleanup

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 19, 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 6fdbb81

Command Status Duration Result
nx run @tryghost/admin:test:acceptance ✅ Succeeded 6m 41s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 23s View ↗
nx run-many -t lint -p @tryghost/admin,ghost-mo... ✅ Succeeded 1m 29s View ↗
nx run-many -t test:unit -p @tryghost/admin ✅ Succeeded 1m 41s View ↗
nx run @tryghost/admin:build ✅ Succeeded 21s 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-19 12:55:26 UTC

no ref

The settings shell still carried admin-x-settings-* element ids and an
admin-x-base/admin-x-settings wrapper class from the admin-x-settings
package. Settings is native to Admin now, so these become settings-*
ids and a single settings-app class, with the heading line-height rule
in index.css following. Nothing outside settings referenced them.

SettingsAppProvider also stops accepting context overrides it silently
discarded: it typed every context field as an optional prop but then
overwrote sorting and offers state after spreading them. It now takes
only upgradeStatus, which is the one prop its caller passes.
@9larsons
9larsons force-pushed the slars/settings-id-cleanup branch from 6fdbb81 to 83dfa1a Compare August 19, 2026 12:41
@9larsons
9larsons enabled auto-merge (squash) August 19, 2026 12:52
@9larsons
9larsons merged commit 9b57105 into main Aug 19, 2026
49 checks passed
@9larsons
9larsons deleted the slars/settings-id-cleanup branch August 19, 2026 12:57
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