Repository source: docs/plans/activity_like_dates/activity_like_dates_one_shot.md
Cycle: v3/activity_like_dates; Mode: one-shot; Record: this file; Index: plans index; Predecessor: thread_activity_drawer
Debug mode: enabled (project marker .railspike_debug_on)
Effort study: railspike-effort / v3/activity_like_dates; host ledger activity_like_dates.md; standing P2 enrollment
Extended estimates: enabled (no real alternatives or work units; no unit estimates)
Cycle estimate: 0.1
Status: implemented; PR #554 open (merge and deploy need the maintainer)
Original request
2026-12-04, pasting a thread's Activity drawer from mitrapclub.com:
* ilyag tagged #pin · Nov 28
* ilyag tagged #pinned · Nov 28
* Root post — Liked by ilyag
the like should also have a link like the other two, please
Then: "go all the way to a pr, if you think this can be a one-shot".
Authorization
The second message authorizes a one-shot through to an open PR. Mode: one-shot, because the outcome is small and clear: a reaction row in the drawer gets the same trailing · <date> link the tagged rows have. Excluded: the signal line under posts, the record pages, any schema or read-model change. Merging and deploying stay with the maintainer.
Outcome and work type
Application change. Normal entry: a thread page → Activity drawer.
Each liker and flagger in a reaction row reads
name · Nov 28, like a tagged row: the name opens the profile, the date opens the record that added the reaction.A reactor with no record found (Post records off, or the lookup failed) shows the name only, linked to the profile, as today.
Approach and risks
PostRecordList::reactionRecordIds()already reads each record'sCreated-Atto pick the newest add; a siblingreactionRecords()returns record ID and date together, andreactionRecordIds()becomes a thin wrapper so its other uses keep working.ThreadActivityattachesrecord_created_atbesiderecord_id; the template renders the date with the existing$shortDatehelper the tagged rows use.Risk: a record with no
Created-Atheader. Mitigation: the date link falls back to the word "record", so the link is never empty.No read-model schema change (see the v3 schema stance): dates come from the record files the drawer already reads.
Reuse decisions
Date formatting:
$shortDate(as the tagged rows intemplates/partials/thread_activity_drawer.php).Record lookup:
PostRecordList::reactionRecordIds()extended, not duplicated.Name link: the drawer's existing
$activityActorprofile link.
Completion conditions
End to end: a liked thread's drawer shows
Root post — Liked by ilyag · Nov 28, the date linking to/records/<record id>.Recovery: with Post records off, names render as profile links with no date, as before.
Verification and recovery plan
./v3 test --smoke ThreadActivityTest PostSignalsTemplateTest plus the smoke set; full suite not run (maintainer runs it).
Planning commit: d5cb64874
— Claude · 2026-12-04 UTC · Model: claude-opus-5-5
Dated execution history
2026-12-04:
PostRecordList::reactionRecords()returnsrecord_idandcreated_atper reaction;reactionRecordIds()wraps it. The thread page controller callsreactionRecords().2026-12-04:
ThreadActivityaddsrecord_created_atbesiderecord_id(still accepts a bare record ID string, with no date).2026-12-04: Drawer: a reactor with a record renders
profile link · <date link to record>through$shortDate; without a record, the profile link alone. Addition: the separator between the Liked and Flagged parts changed from·to;, since·now sits inside each name.
Outcome
Delivered as planned. Root post — Liked by ilyag · Nov 28, the date opening the like's record.
Verification
./v3 test --smoke ThreadActivityTest PostSignalsTemplateTest: 509 run, 509 passed. Full suite not run.ThreadActivityTestchecks the date travels with the record ID;PostSignalsTemplateTest::testThreadActivityDrawerLinksEachReactorToTheRecordThatAddedItchecks the rendered drawer: profile link, then a date link to the record, for a thread like, a reply like and a flag; with Post records off, no record links.Pending on deploy: the mitrapclub.com thread from the request showing the date.
Final review
git diff origin/main reviewed: four source files, two tests, this record, index and ledger; no schema change, no new dependency; git diff --check clean.
Study
Intake 0.1. Closeout retrospective 0.1. Single exposed Claude rater. Maintainer judgment pending. Measured time unknown.
— Claude · 2026-12-04 UTC · Model: claude-opus-5-5 Debug log: activity_like_dates_debug_log.md
2026-12-04: implementation commit
13e6395db; PR #554 opened.