Repository source: docs/plans/thread_card_declutter/thread_card_declutter_one_shot.md
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
likeandflagfrom "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 hiddendata-reaction-labelspan so screen readers and the existing "Like"/"Liked" logic keep working.thread_reactions.jswrites 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:
restoreButtonStaterestorestextContent, which would flatten the heart and count on a failed like. Mitigation: capture and restore the label span instead. Early validation: existingReactionOutboxTest/ReactionSendOrderTestplus a new assertion.Risk: themes style
.thread-reaction-buttonand the "…" panel only styles buttons. Mitigation: the Reply menu item reuses the panel's item rule (extended toa); 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-actionsinpartials/retract_post_control.php, extended with amoreMenuItemsinput; no new menu component.post_retraction.jsalready aligns and closes it.Likers:
partials/post_signals.phpgains asignalsFoldLikesoption that keeps the like segment in the DOM (hidden) soappendSignalActorstill has its count;partials/thread_activity_drawer.phpunchanged.Labels: filter the existing
thread_labelsarray 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.jsand 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 onaria-pressed, hiddendata-reaction-label,data-reaction-count, likers intitle. 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-linkon the root) and Flag for the "…" panel.retract_post_control.phptakes them asmoreMenuItemsand 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.phpgainssignalsFoldLikes(segment kept, hidden,data-signal-folded).thread_reactions.js:reactionLabelNodefor pending/confirmed/capture/restore;appendSignalActorbumps the card's Like count and tooltip and leaves a folded segment hidden.2026-12-02: bylines use
$rowMetaon the root and on everypost_card.php(thread page and single-post page).ThreadLabels::withoutReactionsdropslike/flagfrom "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
$rowMetabyline they already used.2026-12-02: correction: the heart glyph took the theme's underline in Gloss and Bubblegum;
.reaction-like-iconis nowinline-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/ReactionSendOrderTeston 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