Skip to content

perf(platform): load the embedding alert without the settings topic #5240

Closed

Description

@tale-code-bot

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 with await globalThis.__taleMessageTopics?.ready([`settings`]).
  • _message-topic_settings-*.js, the English settings topic it imports: 80,179 B raw, 24,486 B gzip.
  • At train a0d7d24336b482af5b91028dcaeb290fb6baeb12, messages/{en,de,fr}/settings.yml are 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

  1. added
    perf
    service: platform
    agent-ready
    on Nov 1, 2026
  2. added a commit that references this issue on Nov 2, 2026
    947f90c
  3. added 2 commits that reference this issue on Nov 2, 2026
    a54eea6
    177db95
  4. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    Done on the feature line: feature train #5297 landed on release/0.6 by rebase at 2026-11-02 09:37:43 UTC. This issue's change is commit 177db95fa930cb334dfb9decbec3767fb7e1af46 (perf(platform): load the embedding alert without the settings topic) on release/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reach main, so the feature-train role closes this one now. Board task: TALE-323.

  5. added 13 commits that reference this issue on Nov 2, 2026
    03ad702
    93cc523
    7820885
    504c83f
    d2ca4f8
    3240ce6
    7dcaa7d
    9b6ee5c
    56a0cb9
    0233a5b
    1c907ec
    9270ba8
    4a4870d
  6. added a commit that references this issue on Nov 15, 2026
    ec3e59d
  7. added a commit that references this issue on Nov 23, 2026
    079e99a
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-readyperfservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions