Skip to content

Comments

chore: remove "Root CMS" in meta title with minimalBranding#919

Merged
stevenle merged 1 commit intomainfrom
codex/update-html-title-for-minimalbranding
Feb 20, 2026
Merged

chore: remove "Root CMS" in meta title with minimalBranding#919
stevenle merged 1 commit intomainfrom
codex/update-html-title-for-minimalbranding

Conversation

@stevenle
Copy link
Member

Motivation

  • Improve readability and address inline feedback by moving the nested inline conditional that builds the page <title> into a small, explicit helper.

Description

  • Add getCmsTitle(projectName: string, minimalBranding?: boolean) to packages/root-cms/core/app.tsx and replace the inline nested ternary in renderApp() with getCmsTitle(projectName, cmsConfig.minimalBranding), preserving the prior behavior where the title is 'Root CMS' when no project name is present, the project name alone when minimalBranding is true, and <projectName> – Root CMS otherwise.

Testing

  • No automated tests were run for this change.

Codex Task

@stevenle stevenle changed the title refactor: extract CMS title logic into helper for readability chore: remove "Root CMS" in meta title with minimalBranding Feb 20, 2026
@stevenle stevenle merged commit adb0984 into main Feb 20, 2026
1 check passed
@stevenle stevenle deleted the codex/update-html-title-for-minimalbranding branch February 20, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant