Commit Graph

364 Commits

Author SHA1 Message Date
Trey t
6c92cf4ec3 Fix AI insights data calculations
- Change mood scale from 0-4 to 1-5 for human-readable averages
  (Horrible=1, Bad=2, Average=3, Good=4, Great=5)
- Fix streak calculation to check consecutive calendar days,
  not just consecutive entries in array
- Update prompt to show /5 scale instead of /4

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:40:50 -06:00
Trey t
82bd2eb53e Disable SampleEntryView in customize screen
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:23:57 -06:00
Trey t
b25e9101d0 Fix voting layout height to fit content per style
Replace fixed maxWidth frame with fixedSize to allow each voting
layout style to use only as much vertical space as needed.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:23:32 -06:00
Trey t
5974002a82 Add AI-powered insights using Apple Foundation Models
- Replace static insights with on-device AI generation via FoundationModels framework
- Add @Generable AIInsight model for structured LLM output
- Create FoundationModelsInsightService with session-per-request for concurrent generation
- Add MoodDataSummarizer to prepare mood data for AI analysis
- Implement loading states with skeleton UI and pull-to-refresh
- Add AI availability badge and error handling
- Support default (supportive) and rude (sarcastic) personality modes
- Optimize prompts to fit within 4096 token context limit
- Bump iOS deployment target to 26.0 for Foundation Models support

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:20:11 -06:00
Trey t
6adef2d6fc different home screen layouts 2025-12-13 09:18:57 -06:00
Trey t
4713192d55 Add social media share functionality to Month and Year views
- Add share button to MonthCard and YearCard headers
- Create social media-friendly "Monthly Mood Wrap" and "Year in Review" designs
- Show top mood, days tracked, and mood breakdown with colorful bar charts
- Add ImageOnlyShareSheet to share images without extra text
- Uses user's selected theme colors and icon pack

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 23:16:48 -06:00
Trey t
f822927e98 Add interactive widget voting and fix warnings/bugs
Widget Features:
- Add inline voting to timeline widget when no entry exists for today
- Show random prompt from notification strings in voting mode
- Update vote widget to use simple icon style for selection
- Make stats bar full width in voted state view
- Add Localizable.strings to widget extension target

Bug Fixes:
- Fix inverted date calculation in InsightsViewModel streak logic
- Replace force unwraps with safe optional handling in widgets
- Replace fatalError calls with graceful error handling
- Fix CSV import safety in SettingsView

Warning Fixes:
- Add @retroactive to Color and Date extension conformances
- Update deprecated onChange(of:perform:) to new syntax
- Replace deprecated applicationIconBadgeNumber with setBadgeCount
- Replace deprecated UIApplication.shared.windows API
- Add @preconcurrency for Swift 6 protocol conformances
- Add missing widget family cases to switch statement
- Remove unused variables and #warning directives

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 16:23:12 -06:00
Trey t
aaaf04f05e Migrate from Core Data to SwiftData
- Replace Core Data with SwiftData for iOS 18+
- Create MoodEntryModel as @Model class replacing MoodEntry entity
- Create SharedModelContainer for App Group container sharing
- Create DataController with CRUD extensions replacing PersistenceController
- Update all views and view models to use MoodEntryModel
- Update widget extension to use SwiftData
- Remove old Core Data files (Persistence*.swift, .xcdatamodeld)
- Add EntryType enum with all entry type cases
- Fix widget label truncation with proper spacing and text scaling

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 15:08:05 -06:00
Trey t
443f4dfc55 Fix widget issues and add subscription bypass toggle
Widget fixes:
- Fix App Group ID mismatch in iOS app entitlements (was group.com.tt.ifeel.ifeelDebug, now group.com.tt.ifeelDebug)
- Fix date bug where missing entries all showed same date
- Add sample data preview for widget picker (shows realistic mood data)
- Add widgetDisplayName to Mood enum for widget localization
- Update Mood Vote widget preview to show post-vote state
- Attempt to fix interactive widget buttons (openAppWhenRun: false)

Developer improvements:
- Add IAPManager.bypassSubscription toggle for testing without subscription

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 10:38:16 -06:00
Trey t
84c0e191b1 inisights use selected theme 2025-12-10 09:53:51 -06:00
Trey t
3a35f380d7 Redesign Day View entries with eye-catching card design
- Add gradient circle backgrounds for mood icons with colored shadows
- Use white icons on gradient backgrounds for better contrast
- Add pill-shaped mood label badges with color coding
- Implement card design with shadows and subtle borders
- Add chevron indicator for tappability
- Update section headers with calendar icon and rounded font
- Increase spacing between entries for better visual separation

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 09:22:49 -06:00
Trey t
fd5100e6ed Redesign onboarding with modern UI and subscription prompt
Complete overhaul of onboarding flow with 5 screens:
1. Welcome - Gradient intro with feature highlights
2. Time - Clean card-based time picker for reminders
3. Day - Tappable cards for today/yesterday selection
4. Style - Horizontal scrollable icon & color pickers
5. Subscription - Benefits list with free trial CTA

Design improvements:
- Beautiful gradient backgrounds on each screen
- Consistent typography and visual hierarchy
- White page indicators visible on all backgrounds
- Haptic feedback on selections
- "Maybe Later" option on subscription screen

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 09:09:33 -06:00
Trey t
f37b811ab3 Add Insights tab with 60+ randomized analytics
New Insights tab between Year and Customize with:
- 20 insight generators producing 60+ unique insights
- 5 random insights selected per section (month, year, all-time)
- Categories: dominant mood, streaks, trends, positivity score,
  weekend vs weekday, mood swings, milestones, patterns, and more
- Collapsible sections with mood-colored cards
- Subscription paywall support
- English and Spanish localization

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 00:11:07 -06:00
Trey t
1d77adf84e Redesign Year view with heatmap grid and donut chart stats
Complete visual overhaul matching Month view style:
- GitHub-style heatmap grid (12 columns for months, days as rows)
- Donut chart showing mood distribution with total days in center
- Bar chart stats alongside donut chart
- Collapsible stats section with chevron toggle
- YearCard, YearHeatmapGrid, MonthColumn, YearHeatmapCell components
- Consistent styling with Month view redesign

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 23:57:12 -06:00
Trey t
822a710973 Redesign Month view with heatmap calendar and bar chart stats
- Replace circles with heatmap-style grid (tight 2pt spacing, rounded squares)
- Add weekday header labels (S M T W T F S)
- Replace number stats with mini horizontal bar charts
- Add collapsible stats section with chevron toggle
- Modern card layout with 16pt rounded corners
- Months sorted newest first

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 23:50:50 -06:00
Trey t
f7ac2085b8 Redesign Day view with switchable voting layouts and modern styling
- Add 4 voting layout styles: horizontal, cards, radial, stacked
- Add color-filled backgrounds to mood entries (tinted by mood color)
- Add sticky month headers with blur material effect
- Add voting layout picker to Customize tab
- Add haptic feedback on mood selection
- Improve typography and spacing throughout

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 23:44:28 -06:00
Trey t
f2565678be wip 2025-12-09 23:37:04 -06:00
Trey t
3a10b4b8d6 wip 2025-12-09 23:36:57 -06:00
Trey t
f2c510de50 Refactor StoreKit 2 subscription system and add interactive vote widget
## StoreKit 2 Refactor
- Rewrote IAPManager with clean enum-based state model (SubscriptionState)
- Added native SubscriptionStoreView for iOS 17+ purchase UI
- Subscription status now checked on every app launch
- Synced subscription status to UserDefaults for widget access
- Simplified PurchaseButtonView and IAPWarningView
- Removed unused StatusInfoView

## Interactive Vote Widget
- New FeelsVoteWidget with App Intents for mood voting
- Subscribers can vote directly from widget, shows stats after voting
- Non-subscribers see "Tap to subscribe" which opens subscription store
- Added feels:// URL scheme for deep linking

## Firebase Removal
- Commented out Firebase imports and initialization
- EventLogger now prints to console in DEBUG mode only

## Other Changes
- Added fallback for Core Data when App Group unavailable
- Added new localization strings for subscription UI
- Updated entitlements and Info.plist

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 23:07:16 -06:00
Trey t
e7efd1ab25 update
add missing strings
add height back to purchase view button on year and month
2023-01-05 13:48:21 -06:00
Trey t
e7e9367896 add in why subscribe text 2022-12-27 15:27:16 -06:00
Trey t
384a57a4bd add eula and privacy buttons 2022-12-27 14:52:01 -06:00
Trey t
86c64c51c9 mess with fake data generator to be more happy 2022-12-24 10:51:03 -06:00
Trey t
d7ac7e9a57 add bg back to home screen 2022-12-23 13:25:03 -06:00
Trey t
adc1eadb49 UI stuff 2022-12-23 12:17:55 -06:00
Trey t
87865571c1 iap work 2022-12-23 11:51:22 -06:00
Trey t
2c8772f79a iap work 2022-12-23 11:20:33 -06:00
Trey t
488832b777 WIP 2022-12-23 09:43:48 -06:00
Trey t
49e3812659 iap warning view 2022-12-21 10:19:03 -06:00
Trey t
71c6897394 update images 2022-07-24 16:18:51 -05:00
Trey t
6d6f11b9dc update iap stuff 2022-07-24 15:56:06 -05:00
Trey t
d3b21bd585 remove hardcoded mood images 2022-07-18 20:46:04 -05:00
Trey t
53334e5fb8 IAP 2022-07-18 20:14:48 -05:00
Trey t
bd238e5743 iap - wip 2022-07-17 10:26:00 -05:00
Trey t
6c239c5e26 MISC
added new icon
put notifications in strings files
started IAPManager
populate data goes to 1000 entires
take out fixweeday button
2022-07-07 18:13:36 -05:00
Trey t
d116d082eb fix missing images heights on month detail 2022-04-23 11:14:10 -05:00
Trey t
75b8db8c8e fix bug with text color and changing themes 2022-04-15 11:28:26 -05:00
Trey t
12b6a99db4 change text color to default them color 2022-04-14 22:58:45 -05:00
Trey t
7712f70f03 add count to month view header
clean up spacing on day view
2022-04-14 22:55:33 -05:00
Trey t
61a5f71a2e remove shrinking headers from day view
only show header on day view if its he voting header
2022-04-14 22:31:29 -05:00
Trey t
1cfb4c1b2e make reading tuple easier 2022-04-11 23:09:47 -04:00
Trey t
26fea28b26 add code comment 2022-04-11 23:07:24 -04:00
Trey t
26fffc1b74 update strings
update empty views
take out headers on customize views
make refresh on sample row go through moods great->horrible
other small UI changes
2022-04-11 23:05:59 -04:00
Trey t
6dc7732634 change the order of onboarding 2022-04-07 18:30:50 -05:00
Trey t
9bf6190bab add customize onboarding views
make tab bar text color selected text color
2022-04-05 23:46:01 -05:00
Trey t
6fa4e2db26 change a bunch of shit to get importing / adding new vote have the right weekday 2022-04-05 22:33:12 -05:00
Trey t
dec8f2d84d bunch of random work 2022-04-03 20:20:12 -05:00
Trey t
9d008236bc take out random icon generator button 2022-04-02 11:15:42 -05:00
Trey t
ba8e0a5a0c Add gear in customize for for settings 2022-04-02 11:14:28 -05:00
Trey t
6cac4e2de0 add text to day picker 2022-04-02 11:06:26 -05:00