Skip to content

OpenConceptLab/ocl_issues#2919 | User management shows resource names; es and zh translate common.checking_auth - #63

Merged
paynejd merged 1 commit into
masterfrom
OpenConceptLab/ocl_issues#2919-user-management-i18n
Nov 16, 2026
Merged

paynejd merged 1 commit into
masterfrom
OpenConceptLab/ocl_issues#2919-user-management-i18n

Conversation

@paynejd

@paynejd paynejd commented Nov 16, 2026

Copy link
Copy Markdown
Member

What changed and why

  • User management showed raw keys. The hard-delete summary in src/components/users/UserManagement.jsx called t('common.resources.orgs'), …sources and …collections. No catalog has those keys, so the dialog read "common.resources.orgs: 2" and so on. The calls now use resources.orgs, resources.sources and resources.collections, which en, es and zh all have.
  • es and zh lacked common.checking_auth. CheckAuth.jsx asks for it, and es and zh fell back to English. Added "Verificando la autenticación..." (es) and "正在验证身份..." (zh), in the same style as the catalogs' other in-progress strings ("Recargando...", "正在重新加载...").

Three files, 7 lines added, 5 removed. No new keys in en.

How I tested it

The repo has no test suite and CI runs none, so I checked by hand, before and after.

  • Catalog check. A local script reads every literal t('…') key in UserManagement.jsx and CheckAuth.jsx and resolves it in each catalog, the way i18next does with its default . separator. It's a scratch script and isn't committed.
    • On origin/master: fails. en is missing the three common.resources.* keys; es and zh are missing those three and common.checking_auth.
    • On this branch: passes. All 35 keys resolve in en, es and zh, and common.checking_auth gives the strings above.
  • Headless browser (Playwright, Chromium with --single-process), on the app served by the gate runner in node:14 against the staging API.
    • Without signing in: a stub superuser in localStorage, and the viewed user's API responses stubbed in the browser. Other API requests went out anonymously, GET only, with any Authorization header stripped. The toggles response was stubbed with LOCALIZATION_TOGGLE on, so the header's language menu shows.
    • I opened another user's page, clicked Hard Delete, read the dialog's list, switched to Español with the header's language menu, and opened it again.
    • Before (master): "common.resources.orgs: 2 / common.resources.sources: 3 / common.resources.collections: 4", in both English and Spanish.
    • After (this branch): "Organizations: 2 / Sources: 3 / Collections: 4" in English, and "Organizaciones: 2 / Fuentes: 3 / Colecciones: 4" in Spanish. I looked at the screenshots of both dialogs.
    • Both runs logged the same two page errors from the home page's search ("Cannot read properties of undefined (reading 'responseURL')"). The sandbox couldn't reach the staging API, so the search request failed. They happen on master too, and the user page doesn't depend on them.
  • Gate (every run: step of .github/workflows/pr.yml, in order):
    • the start-prod.sh secret-shaped-variable check: passed;
    • npm ci, then ./node_modules/eslint/bin/eslint.js --ext .jsx,.js src/ on Node 14 (node:14 image): passed, exit 0.
  • PR checks: the run's link follows in a comment once it finishes.

Acceptance criteria

  • User management shows real resource names, not raw keys. The calls now use resources.orgs, resources.sources and resources.collections. Evidence: the before and after browser check above, in en and es, and the catalog check.
  • common.checking_auth is in es and zh. Evidence: the catalog check above, which fails on master and passes here. I couldn't show the "Checking auth" screen itself in the browser: see "Noticed, not fixed".

Docs

None changed. The README doesn't cover the catalogs, and changelog.md is written at release time from commit subjects.

Chose not to do

  • No automated test. The repo has no test runner, and adding one, or a catalog check in CI, would go beyond this ticket.
  • Left the oclweb3 catalogs alone. This ticket is about the Term Browser v2.

Noticed, not fixed

  • The "Checking auth" screen can't render. isRedirectingToLoginViaReferrer in src/common/utils.js reads params in its own initializer (let params = params?.length > 0 ? …), so it can't return true, and CheckAuth never renders. Even if it did, the screen is for signed-out visitors, and the header's language menu shows only to signed-in admins, so a visitor would see it in English.
  • zh can't be picked in the UI. Languages.jsx offers only English and Español.
  • On load with SSO off, App.jsx sends every visit to the sign-in form. forceLoginUser calls getLoginURL(window.location.origin + '/#' + pathname) before it declares pathname, so returnTo ends in #undefined.
  • The delete dialog still shows English when Spanish is picked. ConceptContainerDelete.jsx passes key='concept_container.delete.message' to <Trans> instead of i18nKey, so "This action cannot be undone!…" stays in English. The resource name in its title and button ("User") isn't translated either.

closes OpenConceptLab/ocl_issues#2919

Written by an Octoad session worker (worker-v0.23, recipe lean-loop, flow public>public, run openconceptlab-ocl-issues-2919-20261116-103433).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AaZ4qVSyFCTVzkL2HkSWRF

…e names; es and zh translate common.checking_auth

The hard-delete summary in UserManagement.jsx asked for
common.resources.orgs, .sources and .collections, which no catalog has,
so it showed the raw keys. It now asks for resources.orgs, .sources and
.collections, which en, es and zh all have.

The es and zh catalogs lacked common.checking_auth (CheckAuth.jsx), so
it fell back to English. Both now have it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qVSyFCTVzkL2HkSWRF
@paynejd paynejd added origin/ai-generated Issue or PR created by an AI agent origin/session-worker Opened by the Octoad session worker; a run record backs it labels Nov 16, 2026

@paynejd paynejd left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex review, pass 1 (codex-cli 0.169.0, commit a5fd137)

Clean.

findings.json
{"reviewer":"codex-cli 0.169.0","perspective":"defects","mode":"full","commit":"a5fd1373","verdict":"clean","prior":[],"findings":[]}

@paynejd paynejd left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplification review (commit a5fd137)

Clean.

findings.json
{"reviewer":"claude subagent","perspective":"simplify","mode":"full","commit":"a5fd1373","verdict":"clean","prior":[],"findings":[]}

@paynejd

paynejd commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

PR checks

pr.yml (PR checks / Eslint) passed on a5fd137: https://github.com/OpenConceptLab/oclweb2/actions/runs/43901076014

CodeQL and Snyk passed too. After the simplification review I ran the local gate again on the same commit: the start-prod.sh secret check, then npm ci and eslint on Node 14. Both passed.

Codex pass 1 and the simplification review were both clean, so no review-driven commits followed and no final Codex check was needed.

@paynejd
paynejd marked this pull request as ready for review November 16, 2026 15:53
@paynejd
paynejd merged commit 8817632 into master Nov 16, 2026
6 checks passed
@paynejd
paynejd deleted the OpenConceptLab/ocl_issues#2919-user-management-i18n branch November 16, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin/ai-generated Issue or PR created by an AI agent origin/session-worker Opened by the Octoad session worker; a run record backs it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TBv2: user management shows raw i18n keys; es and zh lack one key

1 participant