Cycle: v3/thread_card_declutter; Mode: one-shot; Record/index: this record, plans index

Debug mode: enabled (debug log)

Effort study: railspike-effort / v3/thread_card_declutter; ledger ../effort_ledger/thread_card_declutter.md (written at completion). Standing P2 enrollment.

Extended estimates: enabled. No alternatives or work units, so no unit estimates.

Cycle estimate: 0.35

Status: implemented and verified 2026-12-02 on feat/thread-card-declutter from 5c658135e; planning commit 44041f5d4; completion commit pending (this record's own commit); next permitted action: PR.

Original request: the maintainer shared a screenshot of a thread page ("this looks very busy, there's a lot of duplicated information and unnecessary text, please make a mockup with improvement"), approved the mockup Claude made ("this looks good, please go ahead with implementing one-shot"), 2026-12-02.

Authorization: explicit one-shot on 2026-12-02 for the approved mockup. Exclusions: unliking (a like stays applied, as today); merging the post, replies and composer into one card (theme-wide layout change, not needed to remove the duplication); the offline reader's own thread rendering (offline_reader.js); the paned/Forte layout; QDB quote cards; pledge-campaign compact cards (they already put actions in "More").

Outcome and work type: application change to the thread page cards (root and replies, also the single-post page that shares post_card.php):

  • Byline is the compact "author · Dec 2" line with the full UTC time as the tooltip, instead of "by author on Dec 2, 2026 at 13:40 UTC".

  • The root byline drops "· N replies" (the replies are right below) and drops like and flag from "Labels:" (the like button and the activity drawer already show them); other labels stay.

  • The Like button shows a heart and the like count; the "Liked by …" line on these cards goes, its names moving to the button's tooltip. The thread activity drawer still lists who liked what.

  • Reply and Flag move into the existing "…" menu, which now shows for every viewer (Format and Retract stay in it for the author). Tagset buttons (Claim, Resolve, …) and the operator's Agent button stay visible.

Approach and risks:

  • Like button keeps data-action/data-tag/data-applied-label; its text moves into a visually hidden data-reaction-label span so screen readers and the existing "Like"/"Liked" logic keep working. thread_reactions.js writes the label into that span when present (falls back to the whole button, so other reaction buttons are unchanged) and bumps the count when it appends the viewer to the signals line.

  • Risk: restoreButtonState restores textContent, which would flatten the heart and count on a failed like. Mitigation: capture and restore the label span instead. Early validation: existing ReactionOutboxTest/ReactionSendOrderTest plus a new assertion.

  • Risk: themes style .thread-reaction-button and the "…" panel only styles buttons. Mitigation: the Reply menu item reuses the panel's item rule (extended to a); check Gloss, Bubblegum and Word97 by screenshot.

  • Risk: moving Flag into a menu makes it one click further away. Accepted by the approved mockup.

Reuse decisions:

  • Byline: $rowMeta (TemplateRenderer::renderRowMeta, already used for list rows and pledge cards) instead of $contentMeta.

  • Menu: the existing "…" details.post-more-actions in partials/retract_post_control.php, extended with a moreMenuItems input; no new menu component. post_retraction.js already aligns and closes it.

  • Likers: partials/post_signals.php gains a signalsFoldLikes option that keeps the like segment in the DOM (hidden) so appendSignalActor still has its count; partials/thread_activity_drawer.php unchanged.

  • Labels: filter the existing thread_labels array before $renderLabels.

Completion conditions: on /threads/<id>, the root and reply cards show the compact byline, a heart button with the count, and "…" holding Reply and Flag for a guest and a member; liking from the page updates the heart and count without reload; a failed like restores the button with its heart and count; Reply in the menu focuses the inline composer on the root and opens the reply form on replies; Flag in the menu still flags. Deploy with Deploy now; no schema change.

Concepts touched: none in the inventory (post card presentation only).

Verification and recovery plan: ./v3 test --smoke with PostSignalsTemplateTest ReactionOutboxTest ReactionSendOrderTest and the WriteApiSmokeTest thread-page assertions touched; Playwright screenshots of a local thread page in Gloss, Bubblegum and Word97 at 380px and 1280px; a JS check of the like label/restore path. Recovery: revert the PR (no data or schema change).

Starting revisions and branch: feat/thread-card-declutter from origin/main 5c658135e.

Planning commit: 44041f5d4 (plan only, before any implementation).

Study history:

  • 2026-12-02 UTC, intake and execution entry: 0.35, before implementation, after reading the thread card templates, thread_reactions.js and the "…" menu. Claude, single exposed rater. Scope v1. Reference R1, hashes not re-verified.

Dated execution history:

  • 2026-12-02: plan written. No matching feedback item in docs/feedback/items/ (searched likes, byline, busy).

  • 2026-12-02: partials/like_button.php (new): one Like for both cards, heart from CSS on aria-pressed, hidden data-reaction-label, data-reaction-count, likers in title. New because the root and reply cards each had their own inline Like markup; this replaces both rather than adding a third.

  • 2026-12-02: partials/post_menu_items.php (new): Reply (a.post-menu-item, data-inline-reply-link on the root) and Flag for the "…" panel. retract_post_control.php takes them as moreMenuItems and now renders the menu when it has items or the viewer can retract; Format/Retract and the retraction feedback stay author-only.

  • 2026-12-02: post_signals.php gains signalsFoldLikes (segment kept, hidden, data-signal-folded). thread_reactions.js: reactionLabelNode for pending/confirmed/capture/restore; appendSignalActor bumps the card's Like count and tooltip and leaves a folded segment hidden.

  • 2026-12-02: bylines use $rowMeta on the root and on every post_card.php (thread page and single-post page). ThreadLabels::withoutReactions drops like/flag from "Labels:"; the reply count is gone from both byline paths.

  • 2026-12-02: pledge-campaign compact cards keep their "More" row and old Like/Flag buttons (excluded); they now share the same $rowMeta byline they already used.

  • 2026-12-02: correction: the heart glyph took the theme's underline in Gloss and Bubblegum; .reaction-like-icon is now inline-block.

  • Discovery: Gloss and Bubblegum draw reaction buttons as underlined text, so the count is underlined there; left to the themes.

Study history, when enrolled:

  • 2026-12-02 UTC, closeout: retrospective scope assessment 0.35. Delivered as planned; the browser test update was the extra piece. Claude, single exposed rater. Maintainer judgment pending; measured time unknown.

Outcome: delivered. Thread cards show "author · Dec 2", a heart with the like count (names in the tooltip, and in the activity drawer), and "…" holding Reply and Flag for every reader. The byline no longer repeats likes as a label or counts replies. Not done (excluded): unliking, one shared card for post/replies/composer, the offline reader's own thread view, Forte, QDB and campaign compact cards.

Verification:

  • ./v3 test --smoke WriteApiSmokeTest LocalAppSmokeTest PledgeCampaignTest PostSignalsTemplateTest ReactionOutboxTest ReactionSendOrderTest TagUnlocksTest GuestbookPageTest ThreadRootCardRepeatedTitleTest: 788 run, 788 passed. Updated assertions: compact bylines (LocalAppSmokeTest, WriteApiSmokeTest, PledgeCampaignTest), no reply count, the Liked label span. The full suite was not run.

  • tests/browser/post_signals.mjs (updated; playwright-core 1.58.1, system Chrome): ok. Covers no-JS markup (count 1, likers in the tooltip, Reply and Flag in "…", byline without reply count or like label), 16 themes at 375px and 1280px (Like visible and in the viewport; Word97/Chicago Like keeps the UI font and bevel), an approved viewer liking a reply (count and tooltip update in place, label "Liked", "Flagged by" stays) and the same after reload.

  • Screenshots, Gloss/Bubblegum/Word97 at 380px and 1280px with a reply's "…" open: no overflow; the panel opens over the composer.

  • Root menu Reply: clicking it focuses the inline composer on the same URL.

  • Not replayed: a failed like restoring the button (covered by ReactionOutboxTest/ReactionSendOrderTest on the label path, not in a browser).

Final review: the diff touches the two card templates, retract_post_control.php, post_signals.php, two new partials, ThreadLabels.php, thread_reactions.js, content-interactions.css, four test files and this record. No dependency or schema change; Deploy now is enough. Follow-up worth logging: the offline reader still draws "Reply" and "Like" text buttons.

Commit/merge/publication status: completion commit pending at time of writing; branch feat/thread-card-declutter; not merged.

Claude · 2026-12-02 UTC · Model: claude-opus-5-5