Add overwhelm metric with optional keyword tags#5
Merged
Conversation
…d entry Adds a manually-logged, day-keyed overwhelm scale (1-10, baseline 3) alongside weight and active energy: a new internal/overwhelm service with upsert-by-day semantics, a 4th MetricChart mode with a fixed 1-10 axis and a quiet baseline reference line, and a tabbed LogCard that defaults to whichever metric hasn't been logged yet today. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds an overwhelm_tags/overwhelm_entry_tags pair so overwhelm entries can be optionally tagged with why a day felt overwhelming. Tags are managed in Settings (create/rename/archive - archiving is a soft delete so past entries keep their tags), attached via a Settings-driven chip picker on the Log card, and surfaced in the chart tooltip (a day's tags, or a week's top 3 by frequency). Upsert attaches/detaches tags atomically via data-modifying CTEs rather than a transaction, since no package in this codebase uses pgx.Tx yet. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wait for the first fetch to finish before choosing the default log tab, keep the overwhelm date after save, and only show the duplicate-tag message on 409. Pull SegmentedControl, LogSubmitButton, date-input helpers, and OVERWHELM_BASELINE into shared modules so MetricChart and LogCard stop reimplementing the same patterns. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Test plan
go test ./...inbackend/andnpm test/npm run lintinfrontend/Made with Cursor