Relative times ("2 h sedan"), exact on tap and hover #86

Merged
littlefox merged 5 commits from issue-55-relative-times into main 2026-10-17 23:32:30 +00:00
Owner

Closes #55

Post headers and channel status show relative times (nyss, 5 min sedan, i går 14:05, weekday, date); exact time as tooltip/accessible name and on tap. Classic words keep exact times. 30 s clock signal. Unit tests for the boundaries; time.spec and imported.spec read the exact time from the tooltip. Also: e2e gets one retry in CI (#76).

Day separators need a time-ordered list of posts, which comes with the 0.3 thread view.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #55 Post headers and channel status show relative times (nyss, 5 min sedan, i går 14:05, weekday, date); exact time as tooltip/accessible name and on tap. Classic words keep exact times. 30 s clock signal. Unit tests for the boundaries; time.spec and imported.spec read the exact time from the tooltip. Also: e2e gets one retry in CI (#76). Day separators need a time-ordered list of posts, which comes with the 0.3 thread view. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Post headers and channel status show times the way people say them:
"nyss", "5 min sedan", "i går 14:05", a weekday within a week, then
the date. The exact time is the tooltip and the accessible name, and
a tap or click toggles it in place (phones have no hover). Classic
LysKOM words keep the exact time, as the Emacs client shows it. A
30 s clock signal keeps relative times current.

Unit tests cover the boundaries (59 s, 59 min, midnight, a week, a
year, clock skew). time.spec.ts reads the exact time from the tooltip
and checks the toggle.

Refs #55

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
# Conflicts:
#	app/assets/main.css
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
e2e: date checks via the tooltip; one retry in CI
All checks were successful
ci / check (push) Successful in 10m19s
ci / desktop (push) Successful in 11m56s
ci / e2e (push) Successful in 24m37s
8d8783ddd3
imported.spec read the original's date from the header text, which is
now relative (#55); it reads the exact time from the tooltip. Browser
tests get one retry in CI for the Chromium start-up crash on loaded
runners (#76); Playwright still reports retried passes as flaky.

Refs #55, #76

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-55-relative-times
All checks were successful
ci / check (push) Successful in 10m22s
ci / desktop (push) Successful in 13m24s
ci / e2e (push) Successful in 27m33s
6bb0d8133b
# Conflicts:
#	app/assets/main.css
#	app/src/main.rs
littlefox referenced this pull request from a commit 2026-10-18 14:33:48 +00:00
Sign in to join this conversation.
No description provided.