[GH-ISSUE #266] Align Long-Term Memory buttons and icons with localization scope #133

Closed
opened 2026-10-20 17:24:42 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Aug 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/266

Originally assigned to: @Promansis on GitHub.

Problem

The Long-Term Memory client has an explicit localization contract, but a deep audit found several button/icon and adjacent control surfaces that do not fully follow it.

The localized scope is:

packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/

The package already provides LtmLocalizationProvider, localization.tsx, and locales/en.json. The issue is not to introduce a new i18n framework or add untranslated locale files.

Findings

  • Icon-only Back and responsive Add memories controls have localized aria-label values but no matching tooltip/title.
  • Memory Vault pill-remove, clear-search, and remove-section icon controls have the same title gap.
  • Mobile source actions lose the source-specific context already present on desktop.
  • Several text-labelled Sources controls expose decorative Lucide icons to assistive technology instead of marking them aria-hidden.
  • Known finite statuses, phases, note types, importance levels, modes, relations, mutation kinds, risks, debug values, import statuses, and transfer classifications still bypass the catalog through humanizeLabel or raw machine values.
  • Shared display-label fallbacks expose English strings such as Untitled memory, Chat, Character, Branch group, Persona, and Lorebook without localization context.
  • Some grammar and punctuation is assembled outside catalog messages, including relationship arrows, mutation summaries, risk/confidence text, maintenance results, and active-template labels.

Runtime/user/model data such as note titles, source names, chat names, character names, prompt content, evidence, snippets, and uncontrolled server prose must remain data and must not be translated.

World Maps and other package UIs are out of scope because they have no localization provider, locale catalog, or localized-UI contract.

Implementation

  • Make display-labels.ts accept localized fallbacks while retaining readable humanizeLabel fallback behavior for unknown values.
  • Add small catalog-backed maps for current finite enum values and replace controlled humanizeLabel rendering in Activity, Vault, Review Queue, and Sources.
  • Move corrected phrase structure, punctuation, and interpolation into locales/en.json messages.
  • Add localized title values to icon-only controls using their existing accessible labels.
  • Add source-title context to mobile re-extract and review actions.
  • Mark decorative icons in text-labelled controls aria-hidden="true".
  • Extend the existing Long-Term Memory lifecycle regression with representative accessible-name, tooltip, enum-label, fallback, and unknown-value assertions.
  • Rebuild Long-Term Memory through node scripts/build-feature-packages.mjs long-term-memory; do not hand-edit generated bundles, artifacts, hashes, or catalogs.

Acceptance criteria

  • Every icon-only Long-Term Memory control has a localized accessible name and, where appropriate, a matching localized title/tooltip.
  • Decorative icons in text-labelled controls are hidden from assistive technology.
  • Desktop and mobile controls expose equivalent localized meaning and subject context.
  • Current finite enum values render catalog-backed labels; unknown future values remain readable.
  • Corrected phrases do not assemble English-only grammar around translated fragments.
  • Dynamic runtime/user content remains unchanged.
  • Existing behavior, loading states, focus behavior, responsive layouts, and destructive confirmations are preserved.
  • The focused Long-Term Memory regression and repository catalog validation pass.

Validation

MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine \
  node scripts/build-feature-packages.mjs long-term-memory
node scripts/test-catalog-lanes.mjs
node scripts/validate-catalog.mjs

Also run the Long-Term Memory lifecycle regression through the neighboring Marinara Engine checkout and manually inspect desktop/mobile accessible names, titles/tooltips, keyboard focus, and unknown-value fallbacks.

Reference plan: scratch/long-term-memory-button-icon-localization-alignment-plan.md

Originally created by @Promansis on GitHub (Aug 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/266 Originally assigned to: @Promansis on GitHub. ## Problem The Long-Term Memory client has an explicit localization contract, but a deep audit found several button/icon and adjacent control surfaces that do not fully follow it. The localized scope is: `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/` The package already provides `LtmLocalizationProvider`, `localization.tsx`, and `locales/en.json`. The issue is not to introduce a new i18n framework or add untranslated locale files. ## Findings - Icon-only Back and responsive Add memories controls have localized `aria-label` values but no matching tooltip/title. - Memory Vault pill-remove, clear-search, and remove-section icon controls have the same title gap. - Mobile source actions lose the source-specific context already present on desktop. - Several text-labelled Sources controls expose decorative Lucide icons to assistive technology instead of marking them `aria-hidden`. - Known finite statuses, phases, note types, importance levels, modes, relations, mutation kinds, risks, debug values, import statuses, and transfer classifications still bypass the catalog through `humanizeLabel` or raw machine values. - Shared display-label fallbacks expose English strings such as `Untitled memory`, `Chat`, `Character`, `Branch group`, `Persona`, and `Lorebook` without localization context. - Some grammar and punctuation is assembled outside catalog messages, including relationship arrows, mutation summaries, risk/confidence text, maintenance results, and active-template labels. Runtime/user/model data such as note titles, source names, chat names, character names, prompt content, evidence, snippets, and uncontrolled server prose must remain data and must not be translated. World Maps and other package UIs are out of scope because they have no localization provider, locale catalog, or localized-UI contract. ## Implementation - Make `display-labels.ts` accept localized fallbacks while retaining readable `humanizeLabel` fallback behavior for unknown values. - Add small catalog-backed maps for current finite enum values and replace controlled `humanizeLabel` rendering in Activity, Vault, Review Queue, and Sources. - Move corrected phrase structure, punctuation, and interpolation into `locales/en.json` messages. - Add localized `title` values to icon-only controls using their existing accessible labels. - Add source-title context to mobile re-extract and review actions. - Mark decorative icons in text-labelled controls `aria-hidden="true"`. - Extend the existing Long-Term Memory lifecycle regression with representative accessible-name, tooltip, enum-label, fallback, and unknown-value assertions. - Rebuild Long-Term Memory through `node scripts/build-feature-packages.mjs long-term-memory`; do not hand-edit generated bundles, artifacts, hashes, or catalogs. ## Acceptance criteria - Every icon-only Long-Term Memory control has a localized accessible name and, where appropriate, a matching localized title/tooltip. - Decorative icons in text-labelled controls are hidden from assistive technology. - Desktop and mobile controls expose equivalent localized meaning and subject context. - Current finite enum values render catalog-backed labels; unknown future values remain readable. - Corrected phrases do not assemble English-only grammar around translated fragments. - Dynamic runtime/user content remains unchanged. - Existing behavior, loading states, focus behavior, responsive layouts, and destructive confirmations are preserved. - The focused Long-Term Memory regression and repository catalog validation pass. ## Validation ```bash MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine \ node scripts/build-feature-packages.mjs long-term-memory node scripts/test-catalog-lanes.mjs node scripts/validate-catalog.mjs ``` Also run the Long-Term Memory lifecycle regression through the neighboring Marinara Engine checkout and manually inspect desktop/mobile accessible names, titles/tooltips, keyboard focus, and unknown-value fallbacks. Reference plan: `scratch/long-term-memory-button-icon-localization-alignment-plan.md`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#133
No description provided.