Commit graph

5 commits

Author SHA1 Message Date
NaeemDosh
0050b0a285 i18n: system-prompt desc, search-filter/model/files labels, hide notif badge for users
- System prompt description ('Remove the base system prompt...') wrapped in BOTH
  places: AgentEditorPage (create) and AgentViewerModal (summary).
- Search filter (ActionsPopover/SwitchList): Enable All / Disable All now use the
  existing chat.actions keys (added useTranslation hook).
- Model selector: 'Search models...' placeholder -> model_selector.search_placeholder.
- File picker: 'Recent Files' / 'All Recent Files' -> files.* keys.
- Notification BADGE on the sidebar account button now also gated by
  canSeeNotifications — non-admins see no bell, no panel, and no count badge; admins
  keep the full unfiltered notification centre.

Patch 66 files, applies clean to v4.5.2; apply green; missing-hook + duplicate-hook
scans CLEAN. Build verification next.
2026-08-19 23:07:31 +05:00
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
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
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