Skip to content

Redesign shot analysis screen.#44

Merged
jodli merged 10 commits intomainfrom
visual-analytics
Oct 31, 2025
Merged

Redesign shot analysis screen.#44
jodli merged 10 commits intomainfrom
visual-analytics

Conversation

@jodli
Copy link
Owner

@jodli jodli commented Oct 30, 2025

Checklist

  • Tested locally or used manual dispatch for internal testing (if risky)
  • Updated CHANGELOG.md "Unreleased" section (for user-facing changes)
  • Tests pass locally

jodli added 10 commits October 30, 2025 23:53
- Added aggregateQualityAnalysis field to ShotHistoryUiState
- Implemented loadAggregateQualityAnalysis() method to calculate quality metrics
- Integrated aggregate quality analysis into loadAnalysisData() workflow
- Updated memory cleanup to include aggregateQualityAnalysis
- Added comprehensive unit tests for aggregate quality analysis:
  * loadAggregateQualityAnalysis_withShots_updatesState
  * loadAggregateQualityAnalysis_noShots_setsNull
  * loadAnalysisData_includesAggregateQuality
  * toggleAnalysisView_preservesAggregateQuality
  * applyFilter_refreshesAggregateQuality_whenAnalysisShown
- All existing tests pass, no regressions introduced
- Lint checks pass

Depends on: GetShotQualityAnalysisUseCase (Phase 1)
Ready for: Phase 3 - Visual UI Components
- Created QualityScoreGaugeCard with gauge and distribution
- Created EnhancedShotTrendsCard with graph and expandable details
- Created EnhancedExtractionQualityCard with zone indicator
- Created EnhancedBrewRatioCard with visual range indicator
- All cards follow design system (CoffeeCard, spacing, typography)
- Empty states implemented for insufficient data
- Added preview composables for all cards
- Extracted preview sample data values to constants
- Extracted Canvas calculation factors to constants
- Extracted trend indicator thresholds and colors to constants
- All detekt MagicNumber violations resolved
- Move score and tier labels from below gauge to centered overlay position
- Reduce spacing between gauge and distribution text from medium to small
- Eliminate wasted vertical space while maintaining readability
@jodli jodli merged commit 9d8b6ef into main Oct 31, 2025
5 checks passed
@jodli jodli deleted the visual-analytics branch October 31, 2025 10:38
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