Skip to content

OpenConceptLab/ocl_issues#3004 OpenConceptLab/ocl_issues#3009 | The expansion marks and the newer-release panel show only with EXPANSION_MARKS_TOGGLE - #122

Open
paynejd wants to merge 2 commits into
mainfrom
OpenConceptLab/ocl_issues-3004-expansion-marks-switch
Open

paynejd wants to merge 2 commits into
mainfrom
OpenConceptLab/ocl_issues-3004-expansion-marks-switch

Conversation

@paynejd

@paynejd paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member

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_TOGGLE is 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:

  • the list of expansions, with its explicit and evaluated columns (ExpansionRowListWithoutMarks, 3.0.59's own file, to be deleted with the toggle);
  • the orange icon on a version's line, and its text;
  • the details window and the rebuild window;
  • when expansions and release updates are read again, a rebuild included.

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:

  • off against 3.0.59: 31 screenshots identical to the pixel, and the same API requests. That includes the toggle missing, the toggles never answering, and their request answering 500.
  • on against main: 28 screenshots identical to the pixel, and the same API requests.

The footer's version number and the summary panel (changed by #121) were left out of the comparison.

Tests: npm test 362 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

paynejd and others added 2 commits December 3, 2026 00:35
…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
@paynejd
paynejd requested a review from snyaggarwal December 3, 2026 05:41
@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

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

Verdict: findings, 2 findings.

  • F1.1 P1 App.jsx:113 A transport failure on the toggles request blocks the required legacy fallback.
  • F1.2 P2 CollectionVersionsTab.jsx:447 A rebuild during toggle loading can leave the enabled panel showing release updates the rebuild already applied.
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

  • F1.1 Not changed here, and as 3.0.59 does: when GET /toggles/ can't reach the server at all, the app shows its "network error" page. App.jsx is the same in 3.0.59, on main and here. When the request answers with an error, the app works and the marks are off.
  • F1.2 Accepted. It takes a rebuild that finishes before the toggles have loaded, in an environment where the marks are on. The panel then shows the old update until the page is loaded again, as it did before OpenConceptLab/ocl_issues#3009 | Say why new releases are offered, and compare before rebuilding #114.

@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

Simplification review (Claude subagent, commit 64829b5): two items, both applied in 0e080eb: a repeated assertion, and a conversion of hasAccess that nothing needed. npm test 362 pass and ESLint is clean. Off against 3.0.59 was compared again on a desktop for an editor, someone who can't edit, and a stale expansion: 12 screenshots identical, with the same requests.

@snyaggarwal snyaggarwal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 === true on toggles.EXPANSION_MARKS_TOGGLE) gates every view that #113 and #114 added: the health chip on the version line (its status is null when the toggle is off, so getHealthChips returns []), ExpansionRowList (the health chips, RepoVersionChips and ReleaseUpdatesPanel), ExpansionHealthSection and 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 and forgetRepoUpdates. I found no ungated use of ReleaseUpdatesPanel, RepoVersionChips, ExpansionHealthChip or ExpansionHealthSection. The compare page's expansion1/expansion2 parameters stay, but nothing on the tab links to them when the toggle is off.
  • Off is 3.0.59. ExpansionRowListWithoutMarks differs from 3.0.59's ExpansionRowList only in its name and the tooltip key. The _without_marks strings match 3.0.59's in all four locales. getReleaseUpdates(...).length > 0 is the same test as 3.0.59's Object.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 toggles starts 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 until EXPANSION_HEALTH_TOGGLE is 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants