Who's here: presence next to names #163

Merged
littlefox merged 6 commits from issue-156-presence into main 2026-10-19 15:43:36 +00:00
Owner

Closes #156

  • Presence dot by names: post headers, thread cards, the inbox list and chat head (1:1), and the who-is-on list.
    • Green when active, a yellow ring when idle over 5 min, faint after an hour, and none when logged out.
    • The title gives 'aktiv för N min sedan' and their what-am-I-doing.
  • Data: session::presence, one who-is-on-dynamic call, visible sessions only. Refreshed on login/logout asyncs, every 120 s, and by Uppdatera, with no per-name polling.
  • Who-is-on list shows idle times.
  • 'Vad gör du?' sets my own line, replacing the automatic Läser/Skriver for the session.
  • Dots on person links (#160) follow once #162 is merged.

Verified: new presence.spec with two browsers on desktop, Android and iPhone. It covers the dot and idle time in the list, the dot on a post, the doing line seen by the other person, and no dot after logout. The inbox, thread and _visual specs pass; screenshot checked; clippy desktop, web and wasm.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #156 - **Presence dot** by names: post headers, thread cards, the inbox list and chat head (1:1), and the who-is-on list. - Green when active, a yellow ring when idle over 5 min, faint after an hour, and none when logged out. - The title gives 'aktiv för N min sedan' and their what-am-I-doing. - **Data:** `session::presence`, one who-is-on-dynamic call, visible sessions only. Refreshed on login/logout asyncs, every 120 s, and by Uppdatera, with no per-name polling. - **Who-is-on list** shows idle times. - **'Vad gör du?'** sets my own line, replacing the automatic Läser/Skriver for the session. - Dots on person links (#160) follow once #162 is merged. Verified: new presence.spec with two browsers on desktop, Android and iPhone. It covers the dot and idle time in the list, the dot on a post, the doing line seen by the other person, and no dot after logout. The inbox, thread and _visual specs pass; screenshot checked; clippy desktop, web and wasm. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Who's here: presence dots next to names, idle times, a doing line of my own
Some checks are pending
ci / e2e (push) Has started running
ci / check (push) Successful in 13m35s
ci / desktop (push) Successful in 17m7s
4649eb09f3
Presence was only in the who-is-on list. One who-is-on-dynamic call,
refreshed on logins and logouts and every two minutes, now puts a dot by
logged-in people's names on posts, thread cards, the inbox and chats,
with how long ago they were active and what they're doing. The list
shows idle times, and I can set my own what-am-I-doing line.

Refs #156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge origin/main into issue-156-presence
Some checks are pending
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Has started running
fb20f2709c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

# Conflicts:
#	app/src/i18n.rs
#	docs/DESIGN.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Presence dot by person links too
Some checks are pending
ci / e2e (push) Has started running
ci / check (push) Successful in 9m46s
ci / desktop (push) Successful in 17m1s
4bebadd2f8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge origin/main into issue-156-presence
Some checks failed
ci / check (push) Successful in 11m5s
ci / desktop (push) Successful in 12m4s
ci / e2e (push) Failing after 35m50s
f58afcac18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

# Conflicts:
#	app/src/i18n.rs
e2e: tab names in either language
All checks were successful
ci / desktop (push) Successful in 13m25s
ci / check (push) Successful in 13m54s
ci / e2e (push) Successful in 32m28s
875fa6b30e
In the full suite i18n.spec leaves Bertil's UI in English, so
presence.spec couldn't find the Folk tab (CI run #285).

Refs #156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
littlefox referenced this pull request from a commit 2026-10-19 21:34:01 +00:00
Sign in to join this conversation.
No description provided.