Skip to content

docs: say where focus goes on close and tell locale chunks apart - #5466

Merged
yannickmonney merged 2 commits into
trainfrom
docs/clarify-close-focus-and-locale-chunks
Nov 14, 2026
Merged

yannickmonney merged 2 commits into
trainfrom
docs/clarify-close-focus-and-locale-chunks

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What and why

Two doc corrections from the post-merge review of #4435 (part 4).

  • onCloseAutoFocus (ui-docs dialog page): the row said the callback runs "after focus returns to its opener". The close handler (dialog.tsx) runs restoreFocus first; when the opener and its fallbacks are gone (for example a confirmed delete removed the row), restoreFocus dispatches the restore-lost event and focus goes to the surviving part of the page. The callback still runs after that handler, so the ordering sentence was right, but the use-case clause ("after focus returns to its opener") was not. The row now says where focus goes in both cases.
  • PERF-P15 (platform manual suite): the judgment named de-<topic>-*.js without saying how to tell those from the library's dayjs locale chunks. The judgment now states that a topic chunk is de-<file>-<hash>.js with <file> a topic file in messages/de/, while de-at-*.js and de-ch-*.js carry a region code that names no topic. The box ID and action are unchanged.

How it was tested

  • Read dialog.tsx (close handler order) and packages/ui/src/hooks/use-restore-focus.ts (candidates, then lost event) to confirm the wording.
  • bun run lint:manual (2100 boxes, all layers ok)
  • bun run lint:links (every link lands)
  • bun run lint:conflicts
  • bun services/platform/tests/manual/scripts/check-guide.ts services/platform/tests/manual/suites/performance.md (OK)
  • bun --bun node_modules/.bin/vitest --run tests/content.test.ts tests/links.test.ts tests/published.test.ts tests/redirects.test.ts in services/ui-docs (4 files, 32 tests passed)
  • Commit hooks (conflict markers, oxfmt) passed on both commits.

Fixes #5237

@yannickmonney
yannickmonney force-pushed the docs/clarify-close-focus-and-locale-chunks branch from b76dc0a to 91ab37e Compare November 14, 2026 21:28
@yannickmonney
yannickmonney changed the base branch from main to train November 14, 2026 21:28
@yannickmonney
yannickmonney merged commit 8904f56 into train Nov 14, 2026
10 checks passed
@yannickmonney
yannickmonney deleted the docs/clarify-close-focus-and-locale-chunks branch November 14, 2026 21:35
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.

docs: say when onCloseAutoFocus runs and tell locale chunks apart

1 participant