Skip to content

fix(planning): name the replacement in an archived, superseded interview question's banner - #9162

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-8087-39835584574-1
Oct 22, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-8087-39835584574-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8087

Summary

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

An archived question with supersededBy now shows one banner line naming its replacement as a link, in place of the archived.why batch sentence, and the separate Superseded banner is no longer added for archived cards. Archived questions without supersededBy and superseded questions that are not archived are unchanged.

Not verified

  • The new ui_c browser check was not run here (it needs the Playwright surface harness); CI's test-bash runs it. Whether round.sh archive keeps a pre-set supersededBy on D0 is confirmed only by that check.
  • scripts/check-changelog-fragments.sh was run through the lane wrapper (no arguments), not with --check-required <base>; the fragment was not generated by new-changelog-fragment.sh.

Fix

  • plugins/planning/surface/index.html: the archived banner names the replacement via refHtml when supersededBy is set, else shows archived.why; the Superseded banner is skipped for archived questions
  • plugins/planning/surface/tests/ui_c.js: UI check that an archived question with supersededBy renders exactly one banner naming and linking D1, and that archived X1 still shows its archived.why
  • plugins/planning/surface/tests/fixtures/ui_c/questions.json: added question D0 (group dup, supersededBy D1)
  • plugins/planning/surface/surface-checks.sh: archives D0 before the ui_c server starts
  • .changes/planning/fix-archived-superseded-banner-8087a1c3.md: planning patch fragment, written by hand because HEAD is detached and new-changelog-fragment refused to name it

Verification

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

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

The run reports:

Left out: the items under Not verified.

Related

#8087

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

Copy link
Copy Markdown
Contributor

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

No security issues found in PR #9162 at head cbbbf31.

The diff changes five files. It makes one rendering change in plugins/planning/surface/index.html and adds a test fixture, test assertions, a setup line in surface-checks.sh and a changelog fragment. The skip gate does not apply, because the diff changes HTML rendering of data from a file.

  • Injection: The new "Archived" banner interpolates q.supersededBy through refHtml (index.html:577). That function escapes both the id and the displayed title with esc, which covers & < > " '. A crafted supersededBy value therefore cannot inject markup. The other branch still goes through inline(...), as before. The st !== "arch" guard only removes a duplicate banner and widens nothing.
  • Tests and tooling: surface-checks.sh adds one round.sh archive call with a fixed string against a temporary fixture directory. There is no user-controlled input and no new command surface.
  • Manifests, instruction surfaces and workflows: The diff touches no plugin manifest, no CLAUDE.md, AGENTS.md, rules file, skill or agent body, hook, or GitHub Actions workflow. No manifest <field> lines apply.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the diff and the closing issue (#8087) and checked the change against the code it touches. I did not run the browser suite, so the new ui_c.js check is unrun here. The PR's "Not verified" section says the same.

Behavior (plugins/planning/surface/index.html:1178 and :1186)

  • An archived question with supersededBy now shows one banner naming the replacement through refHtml, which renders a button.ref with data-q. The separate Superseded banner is skipped for archived cards.
  • stateOf (index.html:631) returns "arch" before it reaches the supersededBy check, so the st === "arch" and st !== "arch" guards split the two cases cleanly.
  • An archived question without supersededBy still shows archived.why. A superseded question that is not archived is unchanged.

Fixture and test

  • op_archive in round.py:1200 only sets archived and a history entry, so the supersededBy already on D0 survives the archive step in surface-checks.sh. That settles the PR's open question about whether round.sh archive keeps a pre-set supersededBy.
  • The new assertions match what the render produces. The banner text reads "Archived: superseded by D1Dup. Answer that one instead.". The D1 check works because refHtml sets data-q="D1". The /Archived: The old path left the plan/ check matches the unchanged X1 banner.
  • Other ui_c.js assertions derive their counts from the session state (s.questions.questions.filter(...)). The new archived D0 in group dup doesn't break them. The fixture is used only by surface-checks.sh, so no other runner sees D0.

Closing-issue criteria

  • The diff adds a UI check for exactly one banner that names and links D1, and a second check that X1 still shows archived.why.
  • There is one planning patch fragment.
  • CI's test-bash result is not visible to me.

Manifests: no plugin.json or marketplace.json change, so no manifest lines apply.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path enqueued this pull request at head cbbbf31ca33f621f855929770f0486db3a4b2589.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 62e2b3f Oct 22, 2026
39 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8087-39835584574-1 branch October 22, 2026 20:07
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

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): name the replacement in an archived, superseded interview question's banner

0 participants