Repository navigation
docs: say where focus goes on close and tell locale chunks apart - #5466
Merged
Merged
Conversation
yannickmonney
force-pushed
the
docs/clarify-close-focus-and-locale-chunks
branch
from
November 14, 2026 21:28
b76dc0a to
91ab37e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) runsrestoreFocusfirst; when the opener and its fallbacks are gone (for example a confirmed delete removed the row),restoreFocusdispatches 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 namedde-<topic>-*.jswithout saying how to tell those from the library's dayjs locale chunks. The judgment now states that a topic chunk isde-<file>-<hash>.jswith<file>a topic file inmessages/de/, whilede-at-*.jsandde-ch-*.jscarry a region code that names no topic. The box ID and action are unchanged.How it was tested
dialog.tsx(close handler order) andpackages/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:conflictsbun 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.tsinservices/ui-docs(4 files, 32 tests passed)Fixes #5237