Skip to content

feat(desktop): show a day streak on the activity card - #4306

Merged
LHagfoss merged 1 commit into
mainfrom
feat/desktop-activity-streak
Nov 24, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
feat/desktop-activity-streak

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

Adds a day streak to the Activity card on the new-thread overview. It counts the days in a row with at least one turn, using the day-by-day usage read the card already makes, so there is no new engine call.

  • The flame badge (N-day streak) lights in the accent colour once today has a turn. Until then it stays muted, and its tooltip reads "Run a turn today to keep it". A day with no turns yet does not reset the streak; only a full day missed does.
  • The tooltip also gives the best run in the window when it is longer than the current one.
  • In the heatmap, each day of the current run gets an accent outline.
  • The flame animates once when the card appears (skipped under reduced motion). A run of 7, 30 or 100 days gets a soft glow.

Codex's Profile page shows a current and a longest streak next to an activity graph. This is the same idea, shown where RustCode already draws its heatmap.

Changelog

The new-thread overview's Activity card shows your day streak.

Testing

  • bun run check passes.
  • Added streakOf unit tests in state/widgets.test.ts: a run up to today, a quiet today, a missed day with the longest run kept, and a day with zero turns.
  • Checked the card in the mock window.

@github-actions github-actions Bot added the feature New feature or request label Nov 24, 2026
@LHagfoss
LHagfoss merged commit 5efe06c into main Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants