feat(dashboard): add real-time productivity score with color coding#197
Open
ronilaukkarinen wants to merge 1 commit intoJerryZLiu:mainfrom
Open
feat(dashboard): add real-time productivity score with color coding#197ronilaukkarinen wants to merge 1 commit intoJerryZLiu:mainfrom
ronilaukkarinen wants to merge 1 commit intoJerryZLiu:mainfrom
Conversation
Add productivity score (0-100) to day summary panel and menubar. Score is calculated from manual review data when available, with automatic fallback to category-based calculation. Score uses color coding: green (70+), orange (60-69), red (<60). Changes: - Add ProductivityScoreCard component to focus section - Calculate score from focused/neutral/distracted ratios - Display colored score in menubar next to app icon - Add info tooltip explaining calculation method - Store score in AppState for real-time updates - Update StatusBarController to show variable-length status item
|
awesome idea! |
Author
|
Any plans for this, @JerryZLiu? This draft can be improved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This feature was implemented using partly Claude Code. As I'm not a Swift expert, a code review would be appreciated, particularly around state management and the Combine observers in StatusBarController.
Summary
Adds a real-time productivity score (0-100) to the day summary panel and macOS menubar. The score provides instant feedback on daily productivity based on focused, neutral, and distracted time.
I added this because I stopped using Timing in favor of Dayflow and was missing its "productivity percent" in menubar.
What's changed
Productivity score calculation
UI improvements
Menubar integration
Technical details
productivityScoreandhasProductivityDataproperties toAppStateProductivityScoreCardcomponent with conditional color stylingStatusBarControllerto combine recording state and productivity score observablesTesting