Fix #572: ThreadIndex heading renders just Comments, no counts #576
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!576
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-572"
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?
Removes the comment counts from the Comments index heading (ThreadIndex, web/src/pages/Pull.jsx): heading renders exactly Comments in every state. Display-only — pills/jump/flash unchanged, visibility gate byte-identical, staged entries stay discoverable via staged pills. Tests: new thread-index-heading-572.test.js + #572-scoped update to the staged-inline-567 count pin; law-12 doc amendment in docs/go/12_web_ui.md.
ThreadIndex panel heading (web/src/pages/Pull.jsx) rendered Comments ({threads.length}{+ N staged}); now renders exactly Comments in every state. Display-only: pills/jump/flash unchanged, visibility gate (threads or pending non-empty) byte-identical, staged entries stay discoverable via staged pills. Doc amendment in docs/go/12_web_ui.md (law 12); no new deps (law 1); Tailwind untouched; style-guideline composition only.Independent review — APPROVED (Forgejo #572).
Checked diff origin/main..origin/fix/issue-572 (
f6db076) in /tmp/walhub-572 + full non-smoke web suite:<h2 class="card-header"> Comments </h2>with no interpolation; nolength}, noComments (, no+ ${remains in the ThreadIndex section. Renders "Comments" in all four states (threads-only / threads+staged / staged-only / gone-marked — content paths for each still present, heading static so state-independent).<Show when={(props.threads ?? []).length > 0 || (props.pending ?? []).length > 0}>present identically on main and branch; not count-dependent. Pills/jump/flash unchanged — the only Pull.jsx hunk is the heading; jumpToThread/jumpToStaged, staged-/flashStaged, staged/resolved/outdated/gone pill markers and page wiring all pinned by tests and untouched.+ N staged); new test asserts the same panel-open gate + page wiring but asserts the count string is ABSENT per #572. Still fails if the gate regresses or wiring drops.No defects found; no fix commits needed.