Skip to content

chore: LOW follow-ups from the post-merge review of main after v0.5.74 (topic loading, windowing, ICU checks) #4435

Closed

Description

@yannickmonney

Summary

These are the LOW-severity follow-ups from the post-merge review of the eight commits pushed directly to main after v0.5.74 (890de625..dac9bf2fcf). None of them blocks a release.

Tests and guards

  • The namespace guard checks less than the plugin trusts. services/platform/lib/i18n/topic-references.test.ts:21-24 (with packages/ui/src/vite/message-topics.ts) only flags useT/useTranslation argument 0, getFixedT argument 1, and a property named exactly ns. The plugin also treats …Namespace(s) properties and 'topic:key' literals as naming a topic.
    • Each of these passes both the plugin and the test, and English then shows raw keys: a computed entityNamespace: x, <Trans ns={x}>, or t(`${ns}:key`). Every current entityNamespace is a literal, so nothing is missed today.
    • Nothing asserts that the scan finds any files at all.
  • The symlink fix has no test. services/platform/scripts/messages-topics.test.ts:181 runs realpathSync on its temp root, so the symlink case fixed in f66f5e2e23 is never exercised. The old code passes too.
  • Wiring with no test.
    • sessionLocaleReady() (services/platform/lib/i18n/i18n.ts:56-70): switches the language once and never rejects.
    • ensureTopic in useT (packages/ui/src/i18n/client.tsx:119).
    • attachTopics in initServiceI18n (packages/ui/src/i18n/init-service.ts:176).
    • The 4 s default wait; the tests use waitMs: 50.
    • Removing any one of these passes every test.
  • The windowing tests prove less than their titles.
    • The bounded-DOM assertions count [data-index] rows (packages/ui/src/components/data-table/data-table-virtual.browser.test.tsx, services/platform/app/features/tasks/components/task-log-window.browser.test.tsx). The parent commit never rendered data-index, so these pass vacuously there.
    • No test uses variable row heights or the shouldAdjustScrollPositionOnItemSizeChange override (packages/ui/src/hooks/use-virtual-list.ts:214-243).
    • The DataTable edit test never types into the editor.
  • The ICU plural test asserts only one branch. packages/ui/src/i18n/tests/checks/icu-checks.test.ts:72-85 asserts only icu-plural-missing. The missing-categories branch, which produces 124 of the 125 live findings, is never asserted, and extra findings are never rejected.
  • The entry-budget check can pass without checking. services/platform/scripts/check-entry-budget.ts skips a chunk that has no .map, and relies on the .yml paths appearing in the map's sources. The documents and projects entries added in 39a2a0e2c6 have no test.

UI, accessibility and performance

  • The picker collapses while it closes. packages/ui/src/components/forms/searchable-select.tsx:407: count: isOpen ? filteredOptions.length : 0 empties the list during Radix's exit animation, in every SearchableSelect. Popovers placed above their trigger visibly jump.
  • Focus moves re-render whole tables. The focus handlers at packages/ui/src/hooks/use-virtual-list.ts:290-324 set state even when the list is not windowed. So every Tab between rows re-renders the whole table in the DataTable fallbacks that render every row (data-table.tsx:634: page scroll, expanding rows, short viewport).
  • aria-rowcount undercounts. packages/ui/src/components/data-table/data-table.tsx:862 counts only the loaded rows while infiniteScroll.hasMore is true. ARIA calls for -1 when the total is unknown.
  • The first load has no timeout. The root loader waits on TopicRegistry.load() (packages/ui/src/i18n/topics.ts:152-160, via services/platform/lib/i18n/i18n.ts:56-69) with no time limit. Chunks give up after 4 s.
    • Failure: in a de, fr or de-CH cold load, one topic request that stalls without failing keeps the boot shell up.
  • One failed topic fails the whole language. topics.ts:155-159 and sync.tsx:54-63: one failed topic out of about 44 makes the whole switch fail, and the page stays in English. Related to bug(platform): the Language menu marks a language selected while its catalog is still loading or failed, and re-picking it never retries #4421.
  • Offscreen comments leave the DOM. Above 100 loaded comments or activity rows, offscreen rows are removed, so find-in-page, print and screen-reader browse mode can't reach them. services/platform/tests/manual/suites/performance.md documents this only for Home; PERF-P13 doesn't mention it.
  • The embedding alert's chunk is oversized. It pulls in the whole English settings topic for three strings, and a de or fr session waits for the whole localized settings topic.

ICU checks (made live by e52863821d)

  • Nobody sees the report-mode findings.
    • The report-mode checks print to stdout, and CI runs turbo with --output-logs=errors-only (.github/workflows/checks.yml:347, :396), so nothing reaches the CI log. There is no baseline or ratchet.
    • Most of what the plural check reports is noise. It doesn't count =1 as one, and it requires French many, which only applies to multiples of 1,000,000 and otherwise falls back to other. 100 of the 125 live findings are French many.
  • Existing plural mistakes the checks surface (all predate this range).
  • de-CH overrides are skipped. icu-plural-rules.ts and icu-placeholder-parity.ts don't check de-CH overrides. None has a plural or a mismatch today.

Docs and process

  • onCloseAutoFocus runs earlier than documented. services/ui-docs/content/components/dialog.md:79 says it runs after focus returns to the opener. When restoreFocus finds no connected target, it runs first.
  • One commit without the Swagger tests. a16e588f35 deleted services/platform/app/routes/docs.test.tsx, and 39a2a0e2c6 brought it back as app/features/api-docs/api-docs-page.test.tsx. For that one commit the Swagger guards had no test. This only matters for bisecting.
  • Library locale chunks look like topic chunks. de-at-*.js, de-ch-*.js and de-*.js share the de-… prefix that PERF-P15 now reads off the network panel for topic chunks (3cda06fee5).
  • A platform fix sits in a CLI commit. 9bd1e2015d ("fix(cli): allow additive managed runtime volumes") carries the platform Knip fix for dac9bf2fcf. The commit scope doesn't match its content.

Found in the TALE-965 post-merge review of 890de625..dac9bf2fcf (main after v0.5.74, slice 1).

Activity

  1. added
    priority: low
    improvement
    service: platform
    on Oct 6, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    Split by the triage of board task TALE-79 into four parts:

    1. The ICU checks and the plural mistakes (the six conversations.yml bulk summaries, =1 as one, French many, the de-CH overrides, icu-checks.test.ts, the report-mode findings nobody sees): worked on TALE-79. Its commit ends with Closes #4435, so this issue closes when that commit reaches main.
    2. i18n topic loading and its tests: fix(platform): bound i18n topic loading and test its wiring #5235.
    3. Windowing, SearchableSelect and accessibility: fix(ui): keep the picker list while it closes, and prove the windowing #5236.
    4. Docs (onCloseAutoFocus, PERF-P15's de-… prefix): docs: say when onCloseAutoFocus runs and tell locale chunks apart #5237.

    The two history items (a16e588f35 committed without the Swagger tests, and the platform fix in the CLI-scoped 9bd1e2015d) were accepted without change: both are history on main, which is never rewritten, and the Swagger tests exist again.

  4. added a commit that references this issue on Nov 1, 2026
    a0d7d24
  5. added a commit that references this issue on Nov 1, 2026
    0d61926
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions