Commit Graph

2 Commits

Author SHA1 Message Date
Trey t
2de96495e0 Fix vote widget to show actual voting date instead of hardcoded Today
When rating for a previous day (e.g., rating last night for yesterday),
the medium vote widget now correctly shows the date like "Sun, Dec 28"
instead of always displaying "Today".

- Add votingDate property to VoteWidgetEntry
- Add dynamic date formatting in VotedStatsView
- Update all preview entries with votingDate parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 10:06:15 -06:00
Trey t
e9adc14851 Refactor widgets into separate focused files
Split the two large widget files (~2000 lines combined) into 10 focused files:
- WidgetBundle.swift: Main @main bundle registration
- WidgetModels.swift: Shared data models (WatchTimelineView, SimpleEntry, etc.)
- WidgetProviders.swift: Timeline providers and TimeLineCreator
- WidgetSharedViews.swift: Shared voting views
- FeelsTimelineWidget.swift: Timeline widget (small/medium/large)
- FeelsVoteWidget.swift: Vote widget with stats views
- FeelsIconWidget.swift: Custom icon widget
- FeelsGraphicWidget.swift: Graphic mood widget
- FeelsMoodControlWidget.swift: Control Center widget
- FeelsLiveActivity.swift: Live Activity with proper previews

Preserves real-time update architecture (VoteMoodIntent, WidgetCenter,
WidgetDataProvider patterns). Adds proper Live Activity preview support
with sample content states.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 10:18:40 -06:00