Skip to content

feat: highlight active session cards by recency#2

Merged
sleipi merged 8 commits into
mainfrom
feat/active-session-highlight
May 10, 2026
Merged

feat: highlight active session cards by recency#2
sleipi merged 8 commits into
mainfrom
feat/active-session-highlight

Conversation

@sleipi
Copy link
Copy Markdown
Owner

@sleipi sleipi commented May 10, 2026

Summary

  • Adds recency-based border styling to dashboard session cards so live sessions stand out at a glance.
  • last_seen is parsed as UTC and bucketed into 4 brackets:
    • < 30s: bright green border with glow (session-card--active)
    • 30s – 120s: green (session-card--recent)
    • 120s – 600s: dark green (session-card--idle)
    • > 600s: default grey border (unchanged)
  • Server-side classification in renderSessionCard; brackets refresh on the existing 5s dashboard tick. No client-side timer added.

Test plan

  • bun test tests/unit — all green
  • bunx tsc --noEmit — clean
  • Run PORT=3334 bun run dashboard and confirm an active session shows a glowing green border, then fades through the brackets as it ages
  • Confirm timezone parsing: a session that was just active should classify as --active immediately after the next 5s refresh (not hours off)

🤖 Generated with Claude Code

@sleipi sleipi merged commit 50b23cc into main May 10, 2026
4 checks passed
@sleipi sleipi deleted the feat/active-session-highlight branch May 10, 2026 19:58
@sleipi sleipi added the enhancement New feature or request label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant