Skip to content

Add Dashboard menu bar display mode#3

Closed
mvelluet wants to merge 1 commit intoLcharvol:mainfrom
mvelluet:feat/dashboard-menu-bar-mode
Closed

Add Dashboard menu bar display mode#3
mvelluet wants to merge 1 commit intoLcharvol:mainfrom
mvelluet:feat/dashboard-menu-bar-mode

Conversation

@mvelluet
Copy link
Copy Markdown
Contributor

@mvelluet mvelluet commented Apr 1, 2026

Summary

  • Adds a new Dashboard display mode in the menu bar settings (between Timer and All)
  • Shows both session and weekly quotas with their respective countdowns: 76% · 2h31m | 9% · 5j
  • Session timer uses hours+minutes (2h31m) or minutes+seconds (14m30s)
  • Weekly timer uses the largest meaningful unit only (5j, 23h, 58m, 30s) to stay compact
  • Uses 1-second refresh interval for live countdown (same as Timer mode)

Changes

  • MenuBarDisplayMode: new fullDashboard case (position 3, before allQuotas)
  • UsageManager: added sessionQuota / weeklyQuota computed properties and timeUntilSessionReset / timeUntilWeeklyReset published properties
  • compactTimeString(): static helper that formats a TimeInterval as the largest unit (days → hours → minutes → seconds)
  • updateCountdown(): calculates both per-quota timers when in Dashboard mode
  • setupCountdownTimer(): enables fast (1s) timer for Dashboard mode

Example display

C 76% · 2h31m | 9% · 5j

New "Dashboard" option in menu bar display settings that shows both
session and weekly quota info at a glance: session% · time | weekly% · time.
Weekly timer uses the largest unit (e.g. 5j, 23h, 58m) to stay compact.
@mvelluet
Copy link
Copy Markdown
Contributor Author

mvelluet commented Apr 1, 2026

image

@mvelluet mvelluet closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant