studio: show category names in the chosen language (STUDIO-CATEGORY-NAMES) #2377
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2377"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by syfyra on 2026-11-26T16:30:46Z.
Claimed in the coordination issue as: STUDIO-CATEGORY-NAMES (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7197726846)
Depends on: #2339 (STUDIO-EU-STRINGS). This branch is built on it, so the diff here shows both commits; the change of this pull request is the last commit,
45a128d32. Once #2339 lands, only that commit remains.What and why
viewer/studio.html(served bytools/gallery.py) has acatNamesentry in both languages of itsI18Ntable.tools/gallery.pynames each category in both languages ("Транспорт (Vehicles)");catNamesmaps that to"Транспорт"for RU and"Vehicles"for EU. Nothing readcatNames, so the category chips and the model list headers showed the server's two-language name whatever the language. It is the last unused entry of the table: #2339 applies the others and left this one out because the chips are built once per load.categoryLabel(cat), which iscatNames[cat]of the current language, or the server's name whencatNameshas no entry for it.selectCategory,activeCategory, the search), so filtering is unchanged.Tested
Windows 11, Node 26.12.1, no game files:
node --test tests/test_viewer_studio.cjs: 14 pass. The new test builds chips and the list forТранспорт (Vehicles)and an unlistedCustom. It checksТранспорт (1)/Custom (1)and the headers in RU, thenVehicles (1)/Custom (1)aftersetLanguage('eu'), then that selecting the chip filters by the server's name. It fails on #2339's head; the other 13 pass.scripts/check_no_game_data.pyon both files.GPUs tested: n/a (no GPU code)
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-01T05:02:33Z.
VERIFY-2377 — Linux, node v22.23.1, CPU only, no game files
Claimed as
VERIFY-2377.node tests/test_viewer_studio.cjsmain86c30fcemain+ this pull requestmain+ only this pull request's test changeRow 3's two failures are exactly the two tests this pull request adds, and both are
AssertionErrors rather than load errors:So without
viewer/studio.html's change both new tests fail, and with it they pass while the 16 tests that were already onmainstill pass. Reverse control holds.How row 3 had to be built, and the trap it avoided
This branch's base (
73516a29) predates four tests thatmainhas since added to the same file. Checking the branch's version oftests/test_viewer_studio.cjsontomaingives 14 tests, not 18:maintests silently disappear from the row;TypeError(controls.saveState is not a function) becausemain'sstudio.htmlhas moved on — unrelated to this change.That row would have looked like a stronger failure than the change actually produces, and it would have been wrong. Row 3 is instead
main's file with only the pull request's 54 added lines patched in (16 + 2 = 18), so the row contains the change and nothing else.For the record, that makes #2377 another stale-base case rather than a defect: it merges cleanly and the merge result is what row 2 tested.
What is not covered here
viewer/studio.htmlis exercised through the extracted<script>in avmcontext, so the HTML and CSS are not rendered — this is script-level behaviour only. Nothing about layout, and no browser.Verified. Nothing found against it; merges cleanly with
main86c30fce.AI-assisted: yes — MiMo-V2.6-Flash (OpenCode). It built the worktrees, patched row 3, ran the runner and drafted this report.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:51:12Z.
Review: COMMENTED
Draft review note:
STUDIO-CATEGORY-NAMESis still a draft with no CI run and is stacked on unmerged draft#2339(STUDIO-EU-STRINGS). Once#2339merges, please rebase so only commit45a128dremains, run CI to green, and mark ready for review.(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T10:32:49Z.
For information: this pull request is carried in #3094, which merges your head (your commits are kept) into current
main, resolves the conflicts keeping both sides, and fixes the points raised in review here (details in its description). This one stays open until a maintainer decides; if you pick it up again, say so and the carry can be closed.AI-assisted (Claude Code, Claude Opus 5.5)