Repository navigation
OpenConceptLab/ocl_issues#3004 OpenConceptLab/ocl_issues#3009 | The expansion marks and the newer-release panel show only with EXPANSION_MARKS_TOGGLE - #122
Conversation
…xpansion marks and the newer-release panel show only with EXPANSION_MARKS_TOGGLE; off, the versions tab is as it was before them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7
… about once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7
|
Codex review, pass 1 (codex-cli 0.169.0, commit 64829b5) Verdict: findings, 2 findings.
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "full",
"commit": "64829b56c",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/app/App.jsx",
"line": 113,
"claim": "A transport failure on the toggles request blocks the required legacy fallback.",
"scenario": "When GET /toggles/ returns Axios's Network Error while the collection endpoints are reachable, App replaces its routes with the Network Error screen. Versions + Expansions and its rebuild controls become unavailable.",
"action": "Keep the routes mounted and leave toggles empty when the toggles request fails.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P2",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 447,
"claim": "A rebuild during toggle loading can leave the enabled panel showing release updates the rebuild already applied.",
"scenario": "While GET /toggles/ is pending, the tab caches a v1-to-v2 update and an editor successfully rebuilds the expansion onto v2. The response and expansion refresh complete before the toggle returns true. The old update remains cached, so the enabled panel still says v2 is available and offers another rebuild.",
"action": "Use the current toggle in rebuild and polling completion callbacks. Record entries made stale while the toggle is pending and refetch them when marks become enabled.",
"lines_delta": null,
"confidence": "high"
}
]
}Reply
|
|
Simplification review (Claude subagent, commit 64829b5): two items, both applied in 0e080eb: a repeated assertion, and a conversion of |
snyaggarwal
left a comment
There was a problem hiding this comment.
Approve. Merge order: after OpenConceptLab/oclapi2#1115. That order isn't required, since a missing toggle counts as off. With #1115 merged first, dev, QA and staging get the marks as soon as this deploys.
Checked against 3.0.59-alpha and main:
- Everything is gated, in one place.
showsExpansionMarks(strict=== trueontoggles.EXPANSION_MARKS_TOGGLE) gates every view that #113 and #114 added: the health chip on the version line (its status isnullwhen the toggle is off, sogetHealthChipsreturns[]),ExpansionRowList(the health chips,RepoVersionChipsandReleaseUpdatesPanel),ExpansionHealthSectionand the repo-version chips in the details dialog, the released-version nudge and the recalculated-locks note in the rebuild dialog, the deleted-lock icon, the refresh on reload andforgetRepoUpdates. I found no ungated use ofReleaseUpdatesPanel,RepoVersionChips,ExpansionHealthChiporExpansionHealthSection. The compare page'sexpansion1/expansion2parameters stay, but nothing on the tab links to them when the toggle is off. - Off is 3.0.59.
ExpansionRowListWithoutMarksdiffers from 3.0.59'sExpansionRowListonly in its name and the tooltip key. The_without_marksstrings match 3.0.59's in all four locales.getReleaseUpdates(...).length > 0is the same test as 3.0.59'sObject.keys(updates).length > 0, and the icon and tooltip order match. Every translation key used by the three files exists. - Absent, not loaded or errored all mean off, because
togglesstarts as{}and an error body has no such key. Production can't flash: it shows the off view until the toggles load, and the toggle is off there. In dev, QA and staging, a tab that loads before/toggles/shows the 3.0.59 view briefly and then switches to the marks. That direction is the safe one, so it isn't blocking. - Gating the newer-release panel (#3009) along with the marks is right. The panel's deleted-lock and retired cases come from
getHealthReasons, so it depends on health data that production doesn't compute untilEXPANSION_HEALTH_TOGGLEis on there. - No overlap with #124, which was merged after this PR's base. CI is green.
Codex's F1.1 is already answered on the PR (the network-error page is in App.jsx on 3.0.59 and main too), and so is F1.2 (accepted: the panel is stale only until a reload, and only after a rebuild that finishes before the toggles load). Nothing new is blocking.
Advances OpenConceptLab/ocl_issues#3004 and OpenConceptLab/ocl_issues#3009.
The expansion marks (#113) and the newer-release panel (#114) now show only when the API's
EXPANSION_MARKS_TOGGLEis on (OpenConceptLab/oclapi2#1115). That's dev, QA and staging. In production it's off, and an API that doesn't have the toggle yet counts as off too. So main can be released to production now, and the marks come on later by the toggle. The two PRs can be deployed in either order.Off, the collection's Versions + Expansions tab is as it was in 3.0.59:
ExpansionRowListWithoutMarks, 3.0.59's own file, to be deleted with the toggle);It's also off until the toggles have loaded, and when their request answers with an error. It doesn't follow
EXPANSION_HEALTH_TOGGLE, which is the API's own.On, everything is as on main.
One difference stays in both: when a refresh of an expansion list fails, the list already shown stays.
Checked in a browser, both builds on the same local API answers, at 1440 and 390 px, in English and Spanish, as an editor and as someone who can't edit, with a stale expansion, a rebuild from start to finish and a reload of the list:
The footer's version number and the summary panel (changed by #121) were left out of the comparison.
Tests:
npm test362 pass, ESLint is clean. New tests cover the toggle on, off, missing and not loaded, and what the icon says in each state.🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7