Skip to content

fix(platform): compose doc title suffix from org name (#2373) - #2465

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2373-doc-title-org-name-6542
Jul 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2373-doc-title-org-name-6542

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Fixes #2373. seo() composed "<title> - <suffix>" with a static i18n "Tale", and branding-provider.tsx post-patched document.title via a MutationObserver after branding loaded — so the tab title flashed "- Tale" for ~2s on reload and stayed wrong mid-session before data landed.

Now the suffix is composed at head time: a synchronous localStorage-backed cache (app/lib/title-suffix.ts, seeded at module load) feeds seo() (getTitleSuffix() ?? t('suffix')), so reloads render the org name immediately. The MutationObserver is removed; branding-provider publishes the name to the cache and calls router.invalidate() once only when the name is newly learned/changed. Sign-out clears the cache so logged-out routes keep "Tale". Meets all three acceptance criteria.

Checklist

  • bun run check — type-aware lint (0/0), typecheck clean, new seo.test.ts (2) + idle-watchdog/not-found/layout/branding suites (52) passing.
  • lint:sast — N/A (Opengrep not cached).
  • Translations — N/A (org name is data; "Tale" fallback unchanged).

Test plan

Log in as an org with a name, hard-reload a route → the tab title shows the org name with no "- Tale" flash; sign out → titles revert to "Tale".

Open in Web Open in Cursor 

@cursor
cursor Bot marked this pull request as ready for review July 4, 2026 10:51
@cursor
cursor Bot merged commit 8688f27 into main Jul 4, 2026
24 checks passed
@cursor
cursor Bot deleted the cursor/fix-2373-doc-title-org-name-6542 branch July 4, 2026 10:52
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.

Bug: Document titles show "Tale" instead of the organization name (late client-side patch)

2 participants