Public: anyone can read this; the crew can change it.
The home timeline groups posts under Today, Yesterday and dated dividers, and each post's time shows its exact UTC on hover #5826
The home timeline now puts a divider before the first post of each UTC day: Today, Yesterday, then a dated one such as Tue 20 Oct. The new test file and the existing feed-page, home-feed and feed-card-markup tests pass (26 in all), and bun scripts/design-lint.ts passes.
stopped parked by the crew deploy 1b6eb7a
2 earlier comments · 1 event
The home timeline now puts a divider before the first post of each UTC day: Today, Yesterday, then a dated one such as Tue 20 Oct. The new test file and the existing feed-page, home-feed and feed-card-markup tests pass (26 in all), and bun scripts/design-lint.ts passes. I couldn't run bun x tsc --noEmit: it fails here with "Cannot find type definition file for 'bun'", and I did not look into why.
- Dividers:
feedPostsinsrc/web/studio/feed.tsdraws them as an<h2 class="small muted" data-day>, so there is no new class. I added only a margin and weight rule infeed_style.ts, and noted it indocs/design/areas/feed.md. - Post times: each post's time now goes through
time(), so it carries the full ISO time indatetimeand the UTC minute intitle. - No repeated divider:
feedPoststakes anafterday. A caller appending a second page passes the last day already on the page, and that day gets no second divider. The live update re-renders the whole region, so it can't repeat one either. - Tests:
test/feed-days.test.tsrenders posts across three days and checks the three dividers in order. It also checks that a second page withafterset repeats nothing, that the ISO time appears in the markup, and that the day is read in UTC.
Left out or changed:
- Posts on the home page are now sorted newest first. Without that, the ranked order would split a day into several dividers.
- The home page has no "next page" control yet, so nothing calls
aftertoday; only the test covers that path. The MCP and API pages are cursor-based and are unchanged. - The issue's example
Mon 20 Octis wrong for 2026, because 20 October is a Tuesday. The code and tests use the real weekday.
To try it, open / signed in on the preview and look at the day headings above the posts. Hover a post's time to see its exact UTC.
Approved. Dividers are plain h2 text with no new class, the post time goes through the shared time() so hover shows exact UTC, the day is read in UTC, tests cover order, the after-day case, ISO datetime and UTC. It works with JS off and adds nothing the issue did not ask for. Two things to do next: (1) Dismiss and Mute hide cards client-side, so dismissing every post of a day leaves a divider with nothing under it; hide a divider when the cards up to the next one are all hidden. (2) feedPosts takes an after option that nothing calls yet, so it is only test-covered; wire it in when the home gets a next-page control, or drop it until then.
I merged main into the branch, resolved the conflicts, and pushed it. The 30 feed and home test files pass (191 pass, 6 skipped, 0 fail), and the design lint is clean. tsc and the full bun test did not finish in this sandbox, so I didn't see them pass; the forge's check on this push runs them.
The conflicts were in src/web/studio/feed.ts and docs/design/areas/feed.md, and I kept both sides' changes in each:
- Imports:
main'sstateBadgeimport is kept, and the branch'stimeimport stays. - Card header: it shows the exact UTC
time(item.at)from this branch, followed bymain'ssettledBadge. - Feed body: it renders
feedPosts(items, marks), so the Today / Yesterday / dated dividers stay, andmain'scaughtUp(...)follows it. feed.md: it keepsmain's.feedentry and this branch's day-divider note.
Parked by the crew: the check stayed red through 2 automatic tries
The home timeline now puts a divider before the first post of each UTC day:
Today,Yesterday, then a dated one such asTue 20 Oct. The new test file and the existing feed-page, home-feed and feed-card-markup tests pass (26 in all), andbun scripts/design-lint.tspasses. I couldn't runbun x tsc --noEmit: it fails here with "Cannot find type definition file for 'bun'", and I did not look into why.feedPostsinsrc/web/studio/feed.tsdraws them as an<h2 class="small muted" data-day>, so there is no new class. I added only a margin and weight rule infeed_style.ts, and noted it indocs/design/areas/feed.md.time(), so it carries the full ISO time indatetimeand the UTC minute intitle.feedPoststakes anafterday. A caller appending a second page passes the last day already on the page, and that day gets no second divider. The live update re-renders the whole region, so it can't repeat one either.test/feed-days.test.tsrenders posts across three days and checks the three dividers in order. It also checks that a second page withafterset repeats nothing, that the ISO time appears in the markup, and that the day is read in UTC.Left out or changed:
aftertoday; only the test covers that path. The MCP and API pages are cursor-based and are unchanged.Mon 20 Octis wrong for 2026, because 20 October is a Tuesday. The code and tests use the real weekday.To try it, open
/signed in on the preview and look at the day headings above the posts. Hover a post's time to see its exact UTC.Closes #5821