Repository navigation
Description
Split off #5235 (part 2 of #4435) by its task on the Development board, TALE-319, which works the rest of #5235. This part is a performance change for the feature line; #5235 is a fix for the stable line.
What happens
EmbeddingSetupAlert (services/platform/app/features/settings/data-residency/components/embedding-setup-alert.tsx) shows three keys, dataResidency.orgEmbedding.banner.{title,body,link}, which it reads with useT('settings'). EmbeddingSetupBanner loads it lazily, "with the settings words it quotes", only for an organization that needs it: one with provider credentials and no embedding model. The alert then shows above every dashboard page.
The messageTopics plugin gives a module every topic it names. So the alert's chunk imports the whole English settings topic. In a de, fr or de-CH session, the chunk also waits for the whole localized settings topic before it renders.
Measured in a production build of 5f8428269b66c8bde1e9f94f4bebf581659d9cbd (2026-10-31):
embedding-setup-alert-*.js: 851 B raw, 521 B gzip. It ends withawait globalThis.__taleMessageTopics?.ready([`settings`])._message-topic_settings-*.js, the Englishsettingstopic it imports: 80,179 B raw, 24,486 B gzip.- At
traina0d7d24336b482af5b91028dcaeb290fb6baeb12,messages/{en,de,fr}/settings.ymlare 85,036 B, 95,887 B and 99,488 B raw.
So three strings cost about 24 KB gzip of English on a page that may never open settings, and a de or fr session also waits for about 100 KB of German or French.
Done means
- The alert's chunk brings the words it shows and no more, in English and in the session's language. The settings pages keep their own words.
- The keys keep their translations in every shipped locale, and the i18n checks stay green.
- A check keeps the alert from growing back to the whole topic unseen. For example: a lazy budget in
services/platform/scripts/check-entry-budget.ts, or a test of the topics its chunk waits for.
How to get there is open, for instance a small topic of its own, or a topic the dashboard shell already loads.
Activity
fix(platform): bound i18n topic loading and test its wiring
fix(platform): bound i18n topic loading and test its wiring
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
tale-code-bot commentedon Nov 2, 2026
Done on the feature line: feature train #5297 landed on
release/0.6by rebase at 2026-11-02 09:37:43 UTC. This issue's change is commit177db95fa930cb334dfb9decbec3767fb7e1af46(perf(platform): load the embedding alert without the settings topic) onrelease/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reachmain, so the feature-train role closes this one now. Board task: TALE-323.perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic
perf(platform): load the embedding alert without the settings topic