Skip to content

Add Metrics tab with list, detail, and time range selector#67

Merged
Jds-23 merged 1 commit into
mainfrom
feat/metrics-tab
Mar 1, 2026
Merged

Add Metrics tab with list, detail, and time range selector#67
Jds-23 merged 1 commit into
mainfrom
feat/metrics-tab

Conversation

@Jds-23

@Jds-23 Jds-23 commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Metrics as 6th tab (before Settings) with FlatList of metric cards showing name, latest value, unit, and trend arrow
  • Add metric detail screen (/metric/[id]) with View-based bar chart, entry history list, and time range selector (1W/1M/3M/6M/1Y)
  • Pure utility functions: computeTrend (up/down/flat) and getStartDateForRange

Closes #51

Test plan

  • 10 unit tests for computeTrend and getStartDateForRange
  • 4 tab screen tests: empty state, metric cards, trend arrows, navigation
  • 4 detail screen tests: name + chart, dates + values, back button, range pills
  • 253 total native tests pass (0 regressions)
  • pnpm check — 0 lint errors
  • Manual: pnpm dev:native → tap Metrics tab, see list, tap metric, see chart + range selector

🤖 Generated with Claude Code

Closes #51

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jds-23 Jds-23 merged commit 429aed9 into main Mar 1, 2026
0 of 4 checks passed
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.

Add Metrics tab (list + detail + charts)

1 participant