Skip to content

fix(planning): collapse archived cards behind a per-group count row in the interview Groups rail - #8970

Merged
kyle-sexton merged 7 commits into
mainfrom
work-resolve-issue/issue-8086-39705422203-1
Oct 22, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
work-resolve-issue/issue-8086-39705422203-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8086

Summary

Opened by the work-resolve-issue lane. The run's own summary:

In the Groups view each group now lists its live cards, then one collapsed "N archived" row that expands on click and collapses on a second click. Groups with no archived cards show no row, Rounds and Tree views are unchanged, and a filter that matches only archived cards opens the row. A UI check at 1440x900 covers the behavior.

Not verified

  • The ui_c.js Playwright check was not run: this run could not launch the surface UI test harness, so the new assertions are unexecuted. Existing assertions that expected the archived X1 card visible in Groups were adjusted to expand the row first.
  • Fresh-context subagent review of the diff was not run; review-venue.txt was absent and the review was skipped.
  • CI's test-bash on the PR is left to the PR's CI.
  • The changelog fragment was written by hand because HEAD was detached and new-changelog-fragment needs a branch name; check-changelog-fragments accepts it, but its filename does not start with the branch name.

Fix

  • plugins/planning/surface/index.html: renderRail splits archived cards out in Groups view behind a .archtoggle row (state kept in localStorage, forced open when a filter matches only archived cards); click handler for the row; searchJump opens the row for an archived target; CSS for the row
  • plugins/planning/surface/tests/ui_c.js: set 1440x900 and add checks: archived cards hidden on load, one row with the right count, click shows them, second click hides them, no row in a group without archived cards, Rounds view still lists the archived card
  • .changes/planning/issue-8086-5d1c7a42.md: planning patch fragment

Verification

The runner ran each check from the base copy against f61e699:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#8086

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed bab2371a8cef42acb1c8ddc7b442dc1ec0cab9f7: 0 finding(s), 0 as inline comments.

Security review (incremental, head bab2371, since 32b434f)

No security issues found.

The only change is in plugins/planning/surface/index.html, in archSplit. It now reads the stored toggle for arch:<section key> with a null default, so a click can collapse an archived row that a filter forced open.

  • Reach: the change is client-side UI state logic. It adds no new sink, HTML injection, network call or credential handling.
  • Input: the only input is a localStorage value that lsGet already JSON.parses inside a try/catch. It is compared strictly against true and null, so a tampered value only changes whether a row is open.
  • Manifests: no manifest or instruction-surface files changed since the last review, so there are no manifest <field> lines.

Comment thread plugins/planning/surface/index.html Resolved
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed bab2371a8cef42acb1c8ddc7b442dc1ec0cab9f7: 0 finding(s), 0 as inline comments.

Incremental review of plugins/planning/surface/index.html since 32b434f: no findings.

The change makes archSplit read arch:<key> with a null default. A filter forces the archived row open only while the user has never toggled it. A click on a filter-opened row now collapses it.

I checked this against the code at HEAD:

  • The click handler (line 2181) toggles from the rendered aria-expanded value and stores the inverse. A click on a filter-opened row therefore stores false, and stored === null then no longer holds, so the row stays collapsed.
  • lsGet (line 564) returns its default null when the key is absent, so an untoggled row still follows the filter.
  • railOrder (line 891) goes through archSplit, so keyboard order follows the same open state.
  • The lsSet("arch:…", true) calls at lines 1663 and 1704 (selecting an archived card, jumping to a search target) still open the row.

One minor behavior remains. Once a user has collapsed a row, a later archived-only filter no longer reopens it, because the stored false persists. This follows from the "null until toggled" design and is not a defect.

The closing issue's acceptance criteria were reviewed on the earlier pass. This diff touches none of them.

I did not run the Playwright UI check. The PR body says it was not run either.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 80cb822.

Comment thread plugins/planning/surface/index.html Resolved
…ecting an archived card

Open the row when an archived card is selected instead of forcing it open on every render.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on c57a964.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier verdict refuses verify:earlier-fail at head 32b434f2a9f7100c24c9459b1d11495c8aa6b24d. That refusal needs a human, who merges in person; the pr-merge lane will not merge this pull request.

The verifier's summary of its fail verdict at 1f44068ddc546ae0db4a5be7900606bd6c1e99de, as it wrote it:

Issue #8086: the diff adds the collapsed per-group "N archived" row, the 1440x900 UI checks, the Rounds check and a planning patch fragment. It does not update railOrder(), which the issue names as a key interface ("the rail order the `n` keyboard shortcut and filters use"). In Groups view, j/k and Alt+Arrow still step through archived cards in their old interleaved positions. Those cards are now drawn after the live ones, behind the collapsed row. Stepping onto one makes select() expand that row and save it as open. Keyboard order no longer matches what the rail shows, and the archived cards stop being collapsed. None of the new UI assertions were run.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 22, 2026
kyle-sexton and others added 2 commits October 22, 2026 00:28
railOrder() listed archived cards in their old interleaved positions, so
j, k and Alt+Arrow walked onto cards hidden behind the collapsed
"N archived" row and select() then forced the row open. railOrder() now
shares the rail's live-then-archived split (archSplit) and leaves out
archived cards while their row is collapsed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 22, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

The verifier's gap is fixed at 32b434f (fix commit 6052c13, then a merge of main, which also clears the stale-base overlap on index.html).

railOrder() now shares the rail's live-then-archived split (new archSplit(), which renderRail() also uses). It drops archived cards while their row is collapsed, so j, k and Alt+Arrow (all through step()) follow the order the rail draws, and they no longer step onto a hidden card that would force the row open. railOrder(true), used by n, keeps every card but in the same order.

New checks in plugins/planning/surface/tests/ui_c.js:

  • #8086: j follows the rail, stepping over the collapsed archived card to the next live one (Q3 -> X2, row stays collapsed)
  • #8086: k steps back the same way
  • #8086: with the row open, j from the last live card goes to the archived card under the row (X2 -> X1)

Run locally with playwright-cli:

  • Against the old index.html, the first two checks failed: Q3 -> X1, which is the verifier's defect, and X2 -> P1.
  • With the fix, surface-ui-c.test.sh gave PASS=182 FAIL=0, including the PR's earlier fix(planning): collapse archived cards behind a per-group count row in the interview Groups rail #8086 assertions that the body listed as not run.
  • check-affected.sh: 11 passed, 2 skipped.
  • surface.test.sh and surface-journey.test.sh are left to CI. Locally, their server died mid-run (ECONNREFUSED) under machine load.

Comment thread plugins/planning/surface/index.html Resolved
@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 22, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of 3 on bab2371.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: bab2371a8cef42acb1c8ddc7b442dc1ec0cab9f7 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8970 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8970 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 22, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk MED at head bab2371a8cef42acb1c8ddc7b442dc1ec0cab9f7. Only LOW merges without a human. This pull request waits for one.

MED evidence-unbound:claude-security-review: not bound: no-run
MED findings:claude-review: 2 open

Merged via the queue into main with commit 3f2a561 Oct 22, 2026
72 of 73 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8086-39705422203-1 branch October 22, 2026 04:57
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.

fix(planning): collapse archived cards behind a per-group count row in the interview Groups rail

1 participant