Skip to content

feat(stats): add stats fragment with charts for timer data#48

Merged
ardevd merged 11 commits intomainfrom
charts-and-stats
Mar 30, 2026
Merged

feat(stats): add stats fragment with charts for timer data#48
ardevd merged 11 commits intomainfrom
charts-and-stats

Conversation

@ardevd
Copy link
Copy Markdown
Owner

@ardevd ardevd commented Mar 30, 2026

  • Add vico views dependency for charts
  • Create SimplePieChartView for tag breakdown
  • Add StatsFragment with tag pie chart and duration column chart
  • Add stats menu item to RecordsListFragment
  • Include logic to handle empty states and format axes appropriately

- Add vico views dependency for charts
- Create SimplePieChartView for tag breakdown
- Add StatsFragment with tag pie chart and duration column chart
- Add stats menu item to RecordsListFragment
- Include logic to handle empty states and format axes appropriately
@ardevd ardevd self-assigned this Mar 30, 2026
Copilot AI review requested due to automatic review settings March 30, 2026 16:01
@ardevd ardevd added the enhancement New feature or request label Mar 30, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Stats” screen to visualize timer/record data with a tag breakdown pie chart and a per-day duration column chart, and wires navigation to it from the records list.

Changes:

  • Add the Vico Views chart dependency and a basic chart style.
  • Introduce StatsFragment + fragment_stats.xml to render charts with time-range chips.
  • Add a “Stats” action to the records list menu (including icon + strings).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
gradle/libs.versions.toml Adds Vico version + vico-views library alias.
app/build.gradle.kts Includes Vico Views dependency for chart rendering.
app/src/main/res/values/themes.xml Adds a chart style resource used by the Vico chart view.
app/src/main/res/values/strings.xml Adds strings for the new “Stats” menu item.
app/src/main/res/menu/menu_records_list.xml Adds the “Stats” toolbar/menu action.
app/src/main/res/layout/fragment_stats.xml New UI layout for stats (chips, charts, loading/error views).
app/src/main/res/drawable/ic_charts.xml New chart icon used by the menu item.
app/src/main/java/net/ardevd/tagius/features/stats/ui/StatsFragment.kt Implements stats UI logic: range chips, record aggregation, feeding chart models.
app/src/main/java/net/ardevd/tagius/features/stats/ui/SimplePieChartView.kt Adds a custom pie chart view for tag breakdown.
app/src/main/java/net/ardevd/tagius/features/records/ui/list/RecordsListFragment.kt Navigates to StatsFragment when the “Stats” action is selected.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ardevd ardevd merged commit 8d4ba0f into main Mar 30, 2026
2 checks passed
@ardevd ardevd deleted the charts-and-stats branch March 30, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants