Commit graph

8 commits

Author SHA1 Message Date
NaeemDosh
6ea23b97e7 i18n: remove notification filter (admin=full), fix selected-tool + agent-filter labels, translate projects/agent-viewer/chat-header
Client feedback round:
- Notifications: removed the sanitize/suppress filter entirely. sanitize=false +
  empty suppressTypes => apply-branding.mjs now SKIPS patching useNotifications, so
  the (admin-only) notification centre renders pure upstream, unfiltered.
- Selected tool lost its translation: AppInputBar rendered tool.display_name for the
  selected pill; now getLocalizedToolLabel(tool, t) (matches the dropdown). Same fix
  applied to the agent 'More Agents' actions filter (AgentsFilters).
- Chat top-right: Share, Export As…, Move to Project, Plaintext/Markdown, Fit/Full width.
- Projects: CreateProjectModal (title/desc/name/placeholder/Cancel/Create) + project
  view (Recent Chats, Last message).
- Agent summary (AgentViewerModal): Featured, Knowledge, No Knowledge, Actions & Tools,
  No Actions, More Info, Instructions, Overwrite System Prompts.
- Agent editor: conversation-starter example placeholders (indexed keys).

Patch 64 files, applies clean to v4.5.2; apply green; full missing-hook + duplicate-hook
scan CLEAN; no conflict markers. Build verification in progress.
2026-08-19 16:56:40 +05:00
NaeemDosh
f11db110d4 i18n: fix type error — add useTranslation hook to MCPServerCard
Build failed type-check: AgentEditorPage.tsx MCPServerCard used t() without the
useTranslation() hook (Cannot find name 't'). Added the hook. Scanned every
function the patch touches for the same class; MCPServerCard was the only real one.
2026-08-19 08:52:37 +05:00
NaeemDosh
33c549bfca i18n: fix tool names, hide notifications for non-admins, full agent-creation German
Client feedback round:
- TOOLS bug: getLocalizedToolLabel calls t("tools.<x>") with no fallback and the
  tools.* keys were missing, so the UI showed raw keys (tools.web_search). Added
  tools.* to de/en (Websuche, Interne Suche, Bildgenerierung, ...).
- NOTIFICATIONS: hidden for non-admin end users (bell + panel) via AccountPopover
  canSeeNotifications gate (admin/curator/global_curator still see it, English).
  Client doesn't use it for users. Documented in branding.config.json.
- CREATE AGENT: wrapped the remaining strings across AgentEditorPage, AgentKnowledgePane,
  KnowledgeMainContent, InputDatePicker (Select Date), BackButton (Back). ~30 labels/
  descriptions/placeholders: Knowledge, Use Knowledge, instructions/starters/reminders
  descriptions, Share, Feature/private/unlisted notes, labels, Create/Edit Agent, Cancel.
  Added agent_editor.* + general.back/select_date German keys.

Patch regenerated (61 files, git add -A), applies cleanly to pristine v4.5.2; apply green;
only de/en; all keys resolve; no conflict markers. Image build verification in progress.
2026-08-19 01:14:56 +05:00
NaeemDosh
468cd93ea7 i18n: wrap sidebar, chat-search modal, and agent editor (v4.5.2 coverage)
Client-flagged English areas now translated (keys already in de.json, so German shows
immediately):
- Sidebar (AppSidebar): New Session, Search Chats, Recents, Agents, More Agents/Explore
  Agents, Projects, New Project.
- Chat-search command menu (ChatSearchCommandMenu): placeholder, Recent/Recent Sessions,
  Sessions/Projects filter chips, New Session, New Project, footer Select/Open/Show all.
  Added sidebar.search.* keys to de/en.
- Agent editor (AgentEditorPage, /app/agents/create): 13 section labels — Instructions,
  Conversation Starters, Agent Avatar, Advanced Options, Reminders, Share/Feature/Delete,
  Knowledge Cutoff, Overwrite System Prompt, User Files. Added agent_editor.* keys.

Patch regenerated with git add -A (prior manual regen had dropped untracked new files —
fixed). Applies cleanly to pristine v4.5.2; apply green; only de/en; all keys resolve;
no conflict markers. Image build verification in progress.
2026-08-18 08:03:44 +05:00
NaeemDosh
372c4827ab i18n: expand German coverage — wrap onboarding + app-shell components (v4.5.2)
Extends the v4.5.2 i18n patch to translate 8 more user components the initial re-sync
had left English (onboarding NameStep/LLMStep/NonAdminStep, AppChrome, AppPage, settings
layout, MultiModelSelector, opal sidebar). ~24 additional strings, using PR #12558's own
keys (already in de.json), so German resolves immediately.

Method: extracted the PR's exact string->key wrapping and re-applied it onto v4.5.2's
versions, injecting each useTranslation hook at the PR's own anchor (verified every t()
call is inside its hook's function scope). Patch applies clean to pristine v4.5.2 (55
files). Un-wrapped strings fall back to English, so no breakage.

Remaining un-wrapped (documented): components v4.5.2 restructured heavily (chat greeting
is a logic refactor, some sidebar/modal/model-selector text) — bespoke per-component work,
added incrementally.

Note: final image build to be run on a stable connection (local Docker build network-
blocked this session); patch + hook scoping verified statically.
2026-08-14 18:42:30 +05:00
NaeemDosh
ea2c56f9e0 i18n: client-editable German dictionary + limit UI languages to de/en
Two client requests on the v4.5.2 German build:

1. Editable/persistent translations. German dictionaries now live at
   branding/i18n/locales/{de,en}.json (the client edits these). apply-branding.mjs
   overlays them onto web/public/locales/<lang>/common.json AFTER the patch, so edits
   survive make setup (previously the dict was inside the patch and got overwritten).
   Added MISSING-de.md (the ~12 non-admin keys still English; dict is ~98% complete).

2. Limit the selector to German + English. New config i18n.languages=["de","en"];
   apply strips every other bundled language (es/fr/pt) from i18n.ts (imports +
   resources), the Settings selector, and public/locales. Config-driven + idempotent.

Note for coverage: dictionary edits only reach strings that are t()-wrapped. Components
kept at v4.5.2 during the re-sync (never-break-UI) render English regardless — those need
a component-wrapping pass (separate dev work), documented in README.

Verified in a built image: compiles (4.8min); de+en dictionaries served (200),
es/fr/pt removed (404); homepage 200.
2026-08-11 05:44:59 +05:00
NaeemDosh
01b9adfcd9 i18n: re-sync German UI overlay onto Onyx v4.5.2 + lock to release tag
Client is moving to release v4.5.2 (from the ~v4.3 the overlay was built on) and wants
the pin on a release NUMBER, not a raw commit.

- Re-synced end-user-i18n.patch: cherry-picked PR #12558 onto v4.5.2 and resolved the
  ~25 conflicts from upstream's own refactors. Strategy = never break the UI: kept
  v4.5.2's version for tangled components (they stay English) and hand-merged only the
  two that matter — AppProvider (i18n init + I18nextProvider) and SettingsPage (language
  selector). New i18n infra + all 5 locale dicts merged cleanly. 4 files upstream
  relocated were dropped (no dangling imports — verified).
- Pin to release tag: upstream.pinnedCommit + i18n.baseCommit = v4.5.2 (make setup
  checks out the tag). Regenerated patch applies to pristine v4.5.2 with zero conflicts.
- apply-branding.mjs: idempotent i18n step via a sentinel file (src/lib/i18n.ts), so
  re-running make apply no longer errors once branding has edited the patched files.
- DHI base-image swap now also triggers on v4.5.2 (its Dockerfile uses dhi.io/node).
- README: tag-pin model, coverage caveat, per-release re-sync guidance.

Verified: patch applies clean to v4.5.2; full make apply green (i18n + 201 code + 376
locale replacements); selector + init wired; no leaked conflict markers. Image build to
be run on a stable connection (local build blocked by network).
2026-08-07 13:38:15 +05:00
NaeemDosh
1f2d637263 feat(i18n): backport end-user German UI from Onyx PR #12558 as overlay
Temporary multi-language support until Onyx ships official i18n (ETA Q4'26/Q1'27).
Backports PR #12558 (react-i18next; end-user UI only, Admin stays English) as a
config-driven overlay so the official source stays intact and upgrades stay easy.

- branding/i18n/end-user-i18n.patch: the PR's 70-file change set, pinned to its exact
  base commit (727e096d) so it applies with zero conflicts.
- branding.config.json: pin upstream to 727e096d; add i18n block (enabled, patch,
  baseCommit, defaultLanguage=de, rebrandLocales).
- apply-branding.mjs: step 0 git-applies the patch BEFORE the string codemod; the
  codemod then rebrands Onyx->AIDO inside every locale dict (de/en/es/fr/pt).
  Idempotent; fails loudly if the checkout isn't at i18n.baseCommit.
- README: 'German UI / i18n (temporary)' section — how to edit translations, add
  languages, and retire the overlay when official i18n lands.

Verified: patch applies cleanly on a fresh pinned checkout; `make apply` runs green
(198 code + 376 locale replacements across 5 languages); i18n deps resolve. Fill/refine
German in web/public/locales/de/common.json (PR ships a full draft).
2026-08-02 15:04:55 +05:00