Skip to content

feat(ui): add Activity tab with graphs to TUI statistics dialog#1038

Merged
Kohei-Wada merged 3 commits into
mainfrom
feature/activity-graph
Jun 8, 2026
Merged

feat(ui): add Activity tab with graphs to TUI statistics dialog#1038
Kohei-Wada merged 3 commits into
mainfrom
feature/activity-graph

Conversation

@Kohei-Wada

Copy link
Copy Markdown
Owner

Summary

  • Add "Activity" tab to TUI statistics dialog with productivity pattern visualizations using textual-plotext
  • Line charts: hourly completions (0-23h), day-of-week completions, monthly completion trend
  • Scatter plot: estimation accuracy (estimated vs actual hours, 95th percentile clipped)
  • New ActivityPatternStatistics DTO and estimation_pairs field wired through all layers (core → server → client → UI)
  • Add textual-plotext dependency to taskdog-ui

Test plan

  • All existing tests pass (core: 1122, server: 324, client: 223, ui: 1120)
  • mypy strict passes across all packages
  • Manually verified Activity tab renders in TUI

Add a new "Activity" tab to the statistics dialog showing productivity
pattern visualizations using textual-plotext:

- Hourly completion line chart (0-23h)
- Day-of-week completion line chart (Mon-Sun)
- Estimation accuracy scatter plot (estimated vs actual, 95th percentile clipped)
- Monthly completion trend line chart

Core changes:
- Add ActivityPatternStatistics DTO with hourly/daily completion data
- Add estimation_pairs to EstimationAccuracyStatistics for scatter plot
- Add _calculate_activity_patterns() to TaskStatisticsCalculator
- Wire new fields through server, client, presenter, and view model layers
- Add textual-plotext dependency to taskdog-ui

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR successfully adds an Activity tab to the TUI statistics dialog with productivity visualizations. The implementation is clean and well-integrated across all layers:

Strengths:

  • Proper separation of concerns with data flowing through core → server → client → UI layers
  • Consistent with existing codebase patterns and conventions
  • All tests passing (3,789 total tests) with strict mypy compliance
  • Good handling of edge cases (empty data scenarios)
  • Appropriate use of textual-plotext for visualization

The feature is ready for merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Kohei-Wada Kohei-Wada merged commit 351a5a0 into main Jun 8, 2026
14 checks passed
@Kohei-Wada Kohei-Wada deleted the feature/activity-graph branch June 8, 2026 14:47
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