Commit graph

17 commits

Author SHA1 Message Date
John Mizerek
e4b8c9eb8e Fix app routing to show WelcomeScreen for returning users
Previously the app jumped directly to ResultsScreen when user had
existing data, bypassing the WelcomeScreen entirely. Now returning
users see WelcomeScreen where they can Start and choose to continue
from their last saved run or start fresh.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 21:52:23 -08:00
John Mizerek
498a1534ed Add prompt to continue from most recent saved run
When tapping Start with existing saved runs, shows dialog asking
whether to continue from last run or start fresh. Continuing pre-fills
all profile and behavior inputs from the saved run.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 20:49:37 -08:00
John Mizerek
4ac148b638 Increase weight slider precision to ~1 lb increments
Changed divisions from 170 to 374, giving approximately 0.45 kg per
step (~1 lb precision) instead of 1 kg per step (~2.2 lbs).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 19:55:37 -08:00
John Mizerek
8bb1cc1e61 Add unified View Inputs screen for saved runs
Shows all profile and behavioral inputs in a single scrolling list
instead of paginated screens. Displays formatted values for all fields.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 19:50:32 -08:00
John Mizerek
fb494a349c Fix: Don't recommend quitting to former smokers
Former smokers have already quit - they can't take further action
on smoking. Treat them as optimal for the smoking behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 16:57:08 -08:00
John Mizerek
247388c61a Add Skip Forever, app icon, About screen links, release signing
- Add Skip/Skip Forever links to onboarding screens only
- Remove Skip links from questionnaire screens (baseline, behavioral, lifestyle)
- Add app icon (1024x1024) and generate all platform sizes
- Update About screen with correct URLs (privacy, terms, disclaimer, how it works)
- Add "No ads. Ever." section to About screen
- Configure Android release signing with upload keystore
- Add URL intent query for Android 11+ link launching
- Add skipForever preference to LocalStorage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 13:21:17 -08:00
John Mizerek
90ffe964b4 Add favicon and apple-touch-icon generated from logo
- favicon.png (32x32) for browser tabs
- apple-touch-icon.png (180x180) for iOS home screen

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 11:02:03 -08:00
John Mizerek
5f46a07194 Add Android beta button to hero section
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 10:56:26 -08:00
John Mizerek
1b2c8392e6 Update privacy bullet: No ads, ever
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 10:36:36 -08:00
John Mizerek
bbaa77558d Add WordPress theme in website/ folder
Custom dark minimal theme for addmonths.com landing page:
- Hero section with phone mockup placeholder
- How It Works, What It Is/Isn't, Privacy, Clarity sections
- iOS/Android beta signup with email capture modal
- Privacy, Terms, Disclaimer page templates
- Beta signups stored to wp_beta_signups table

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 10:35:58 -08:00
John Mizerek
be131ea890 Merge branch 'master' of git.payfrit.com:payfrit/addmonths 2026-02-21 10:35:45 -08:00
John Mizerek
6b03e5b7eb Initial Add Months WordPress theme
- Dark minimal design (charcoal/slate/muted green)
- Hero section with phone mockup placeholder
- How It Works (3 steps)
- What It Is / Isn't sections
- Privacy section with pill badges
- Built for Clarity section
- Download section with iOS/Android beta badges
- Email capture modal for beta signups
- Privacy, Terms, Disclaimer page template
- Beta signups stored to wp_beta_signups table
- Admin panel for viewing/exporting signups

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 10:32:28 -08:00
John Mizerek
85e8e1a290 Add saved runs feature with history, comparison, and about screen (v1.2)
Features:
- Save calculation runs with custom labels for later retrieval
- View saved runs list with dominant factor summary
- View detailed results of any saved run
- View original inputs in read-only mode
- Use any saved run as starting point for new calculation
- Compare two saved runs side-by-side
- About screen with app info, help links, privacy policy
- Metric/Imperial unit toggle persisted across sessions
- Info icon in app bar on all screens

Technical:
- New SavedRun model with full serialization
- SQLite saved_runs table with CRUD operations
- readOnly mode for all input screens
- Unit preference stored in LocalStorage
- Database schema upgraded to v2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 09:59:58 -08:00
John Mizerek
40275bcd0c Add lifestyle factors screen with diet, social, stress tracking
- Split behavioral inputs into two screens (Habits + Lifestyle)
- Added 5 new modifiable factors: diet quality, processed food,
  drug use, social connection, and stress level
- Updated hazard ratios for all new factors based on meta-analyses
- Model version bumped to 1.1
- Simplified welcome screen with clearer value proposition
- Updated tests for expanded behavioral model

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 09:22:48 -08:00
John Mizerek
615e18d03a Improve onboarding with title and progress bar
- Added "Add Months" header with subtitle
- Numbered step indicators (1, 2, 3) with progress lines
- Checkmarks for completed steps
- "Step X of 3" badge on each slide

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 22:50:04 -08:00
John Mizerek
c92ecf5774 Add onboarding slideshow, tighten estimate ranges
- 3-slide onboarding: baseline, questions, results
- Replaced welcome screen with onboarding flow
- Tightened uncertainty range from ±40% to ±20%
- Ranges now more precise (e.g., 58-86 vs 40-104 months)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 21:38:38 -08:00
John Mizerek
151106aa8e Initial commit: Add Months MVP
Local-first Flutter app that identifies the single behavioral change
most likely to extend lifespan using hazard-based modeling.

Features:
- Risk engine with hazard ratios from meta-analyses
- 50 countries mapped to 4 mortality groups
- 6 modifiable factors: smoking, alcohol, sleep, activity, driving, work hours
- SQLite local storage (no cloud, no accounts)
- Muted clinical UI theme
- 23 unit tests for risk engine

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 21:25:00 -08:00