Repository navigation
OpenConceptLab/ocl_online#309 | Name the OCL AI Assistant in full in every Mapper catalog - #97
Merged
snyaggarwal merged 4 commits intoOct 13, 2026
Conversation
…the en, es and zh strings
The Mapper called its assistant a bare "AI Assistant" (es "Asistente de
IA", zh "AI 助手" or "智能助手") on its button and settings heading, in
the preview-limit dialog, the quota meter, the column-map header and the
input-language help, and said "AI recommendation" in the row status
tooltips and the prompt-template help. These strings now name the OCL AI
Assistant, in each catalog's existing form of the name ("asistente de IA
de OCL", "OCL AI 助手").
The two hard-coded "prompt template is not available" alerts in
MapProject.jsx, and the English fallback for input_language_helper in
ConfigurationForm.jsx, say "OCL AI Assistant" too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148z998vjSjgiiLNQXAxcRU
The same strings in pt-BR said a bare "Assistente de IA", and the
AutoMatch estimate still said "Recomendações de IA" (AI
recommendations), wording the other catalogs had already dropped. They
now use the catalog's own "Assistente de IA do OCL", and the three
estimate strings follow the current English ("O Assistente de IA do OCL
analisará ...").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148z998vjSjgiiLNQXAxcRU
…the OCL AI Assistant in full src/i18n/__tests__/aiAssistantNaming.test.js reads the en, es, pt-BR and zh catalogs. It fails on any string with a bare assistant name or "AI recommendation(s)", in English or in the catalog's own language, and on any string about the assistant that doesn't name it in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0148z998vjSjgiiLNQXAxcRU
Member
Author
|
Codex defect review, pass 1 (codex-cli 0.162.1, commit 1e69fe9): clean, no findings (P0 0, P1 0, P2 0, P3 0). Nothing changed, and with no P0 or P1 open the defect review stops after this pass. The full report is on OpenConceptLab/ocl_online#309. |
Member
Author
|
Simplification review (a fresh Claude subagent, commit 1e69fe9): 2 suggested cuts, 1 shrink and 1 reuse. I kept the code for both, so nothing changed and the Codex check of the cuts didn't run. The full gate passed again at 1e69fe9: the secret-variable check, |
paynejd
marked this pull request as ready for review
October 12, 2026 17:19
snyaggarwal
reviewed
Oct 13, 2026
snyaggarwal
approved these changes
Oct 13, 2026
snyaggarwal
deleted the
OpenConceptLab/ocl_online#309-ocl-ai-assistant-strings
branch
October 13, 2026 02:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
The Mapper's strings now always call the assistant the OCL AI Assistant. No string says a bare "AI Assistant" or "AI recommendations" any more, in English or in the Spanish, Portuguese and Chinese forms.
en, es, zh (2679d1c): 12
map_projectstrings in each catalog:ai_assistant);preview_quota_ai_calls);preview_limit_title_ai_assistant,preview_limit_body_ai_assistant,preview_limit_body_ai_assistant_no_count) andai_assistant_limit_reached;column_send_to_ai_assistant), the output-language field (set_ai_assistant_output_language) and the input-language help (input_language_helper);ai_prompt_template_description) and the row status tooltips (ai_recommendation_failed_retry,ai_recommendation_running).Each catalog keeps the form of the name it already uses elsewhere: "OCL AI Assistant", "asistente de IA de OCL", "OCL AI 助手".
pt-BR (18d557a): the same strings, plus the three AutoMatch estimate strings (
preview_estimate_ai_all,preview_estimate_ai_partial,preview_estimate_ai_none). These still said "Recomendações de IA", wording the other catalogs dropped in Mapper: Auto Match starts a run with no matching algorithm, does nothing, and records it as failed ocl_issues#2872. They now follow the current English, with the catalog's own "Assistente de IA do OCL".Hard-coded copy (2679d1c): the two "prompt template is not available" alerts in
MapProject.jsx, and the English fallback ofinput_language_helperinConfigurationForm.jsx.Test (1e69fe9):
src/i18n/__tests__/aiAssistantNaming.test.jsreads all four catalogs. It fails on any string with a bare assistant name or "AI recommendation(s)", in English or in the catalog's own language. It also fails on any string about the assistant that doesn't name it in full.On
main,preview_estimate_ai_allandpreview_estimate_ai_partialalready say "The OCL AI Assistant will analyze …" in en, es and zh (OpenConceptLab/ocl_issues#2872), so this PR leaves them alone there.How I tested it
start-prod.shsecret-variable check frompr.yml: passes.npm ci, then ESLint onsrcwith--ext .jsx,.js: exit 0. I ran it with--no-eslintrc -c .eslintrc.json, because this worktree sits inside another checkout whose.eslintrc.jsoncascades into it. CI has no parent config, so the config is the same. The PR check runs the exact command.npm run test:allon Node 22: 455/455 unit tests (8 new) and 6/6 integration tests pass.main's catalogs: 8 of 8 fail. With this change: 8 of 8 pass.AIAssistantButton(user and staff variants) in a replica of the candidates toolbar:SearchControlswith the refresh, group and sort buttons. I used headless Chromium at 360, 420 and 520 px, before and after, in all four languages.Acceptance criteria
preview_estimate_ai_allandpreview_estimate_ai_partialalready did onmain. 2679d1c fixespreview_quota_ai_calls,ai_assistant_limit_reachedandpreview_limit_body_ai_assistant. The "names it in full" test checks all five in each locale.Docs
No doc describes these strings. The README and the other Markdown files don't mention the assistant's UI name, so none changed.
Chose not to do
'pt-BR'from the test'sLOCALES.ai_assistant_limit_reachedandpreview_limit_body_ai_assistant("Matching will continue without AI analysis …"). It's neither banned form, and it matches the "Run AI Analysis" step.Noticed, not fixed
ai_recommended, a badge), "AI Alternate Candidate Suggestion", "AI Analysis" and "Run AI Analysis", "AI Prompt Template", and "AI will receive names in: …" (ai_effective_locales,ai_all_locales). They aren't a bare "AI Assistant" or "AI recommendations", so I left them. Renaming them is a product call.ocl_ai_assistant) and the English "OCL AI Assistant" (ocl_ai_candidates_analysis). None is bare, so I left them.ai_assistant_limit_reached.MapProject.jsxare hard-coded English, not i18n keys.Review
closes OpenConceptLab/ocl_online#309
🤖 Generated with Claude Code
https://claude.ai/code/session_0148z998vjSjgiiLNQXAxcRU
Written by an Octoad session worker (
worker-v0.11, recipelean-loop, flowprivate>public, runopenconceptlab-ocl-online-309-20261012-125058).