Replace generic journaling prompts with evidence-based therapeutic
techniques: CBT thought record for negative moods, ACT cognitive
defusion for neutral, and behavioral activation for positive. Each
question now shows a clinical step label (e.g. SITUATION, REFRAME).
Added info button linking to a new sheet explaining the techniques
with citations to Beck, Harris, and Martell/Dimidjian.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add force parameter to checkSubscriptionStatus to bypass 5-minute
throttle when called from transaction listener, purchase completion,
and restore purchases
- Remove early return for expired/revoked states that prevented
fallback to trial
- Only trust cached subscription expiration when offline (products
failed to load); when StoreKit returns products successfully, treat
the live entitlement check as authoritative
- Add debug logging throughout IAP state machine for diagnostics
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Populate debug test data with random notes, guided reflections, and weather
- Fix PDF export to use UIPrintPageRenderer for proper multi-page pagination
- Add journal/reflection indicator icons to day list entry cells
- Fix weather card icon contrast by using secondarySystemBackground
- Align Generate Report and Export PDF button widths in ReportsView
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add authorization pre-check and 15s timeout to LocationManager to
prevent hanging continuations. WeatherManager now skips retry queue
when location permission is denied. Settings weather toggle shows
alert directing users to Settings when location is denied. Fill
remaining 32 untranslated strings to reach 100% localization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The new reflection section pushed the delete button below the fold
in the entry detail sheet, causing the tap to miss.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Walks users through 3-4 guided questions based on mood category:
positive (great/good) gets gratitude-oriented questions, neutral
(average) gets exploratory questions, and negative (bad/horrible)
gets empathetic questions. Stored as JSON in MoodEntryModel,
integrated into PDF reports, AI summaries, and CSV export.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a Reports tab to the Insights view with date range selection, two report
types (Quick Summary / Detailed), Foundation Models AI generation with batched
concurrent processing, and clinical PDF export via WKWebView HTML rendering.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fetch and display weather data (temp, condition, hi/lo, humidity) when
users log a mood. Weather is stored as JSON on MoodEntryModel and shown
as a card in EntryDetailView. Premium-gated with location permission
prompt. Includes BGTask retry for failed fetches and full analytics.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Disable captureElementInteractions (UIKit-only, duplicates manual events)
- Disable captureScreenViews (meaningless SwiftUI names, duplicates trackScreen())
- Opt out entirely in DEBUG builds to prevent test data polluting production
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set personProfiles to .always so PostHog creates anonymous person
profiles for every user, fixing inaccurate unique user counts in
dashboards without requiring identify() calls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite all 10 celebration haptic patterns to match visual timing and
feel distinct: confetti gets playful falling taps, explosion gets a deep
boom, shatter gets glassy cracks, morph gets liquid breathing, etc.
Play the matching haptic when selecting a new vote animation in
customization (respects haptic feedback toggle).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace non-existent "tunnel.circle" SF Symbol with "circle.dashed" for
the tunnel vote animation. Add missing translations for haptic feedback
strings and "Close" across all 6 languages.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add "THE" translations for ja/ko in the subscription magazine header, and fix
broken string interpolation in BGTask error logging.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace HStack layout with LazyVGrid for uniform card sizing, remove
lineLimit(1) to allow multiline subtitles, and add 1:1 aspect ratio
so all four feature cards are identical squares across all 12 themes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The onboarding flow changed from Welcome→Time→Day to
Welcome→Day→Time. Updated test to swipe once instead of twice.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: issue #148 - for onboarding first ask to rate today / tomorrow then the next screen shoudl be time. if the user select today make the default time 9pm, if hte user selects tomorrow default time is 9am
The .containerRelativeFrame(.horizontal) on the marketing content
caused an infinite layout loop inside SubscriptionStoreView's scroll
container. Replaced with .frame(maxWidth: .infinity).
Also fixes leading space in StoreKit config display name, adds
debug logging to product loading, and reverts to groupID initializer.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Switch from groupID to productIDs for more reliable product loading
- Add dismiss button overlay so users aren't trapped if products fail to load
- Make productIdentifiers static for shared access
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Landing page: editorial redesign with phone/watch device frames,
scroll animations, and responsive layout
- Localizable.xcstrings: remove 56 stale extraction state markers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The subscription group ID was still set to the old Feels value (21914363).
Updated to the correct Reflect group ID (21951685) from App Store Connect.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add .fixedSize(horizontal: false, vertical: true) to prevent
multiline text from being clipped on smaller screens.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove all fatalError/force unwrap/force cast crash points from production
paths (ShowBasedOnVoteLogics, Random, ReflectApp, NoteEditorView). Fix
actor-isolation warnings by wrapping off-main-thread AnalyticsManager calls
in Task { @MainActor in } (LocalNotification) and replacing DispatchQueue
with Task.detached + MainActor.run (LiveActivityPreviewView). Update legal
URLs from feels.88oakapps.com to reflect.88oakapps.com in SettingsView.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- AppLaunchTests/StabilityTests: Increase assertTabSelected timeout to
8s for iOS 26 Liquid Glass delayed isSelected state updates
- DeepLinkTests: Detect SubscriptionStoreView container instead of text
labels, since Apple's native view shows "Subscription Unavailable" in
test storefront
- SettingsActionTests: Check for empty state after clearing data, bump
Settings header timeout to 8s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- StoreKit config now syncs from ASC instead of local definitions
- Reset marketing version to 1.0.0 and build to 1
- Xcode reformatted Localizable.xcstrings (whitespace only)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace random animation selection with a user-configurable picker on
the Customize tab between Mood Style and Notifications. Confetti is
the default. Selecting a style shows an inline preview that auto-plays
the animation then dismisses itself. Remove Animation Lab from Settings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add containerRelativeFrame to paywall marketing content so feature cards
fit within screen width on iOS 18. Update onboarding tip text and all
localizations (DE, ES, FR, JA, KO, PT-BR).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Broadens installable audience to iOS 18+ while keeping AI insights available on iOS 26.
Foundation Models types and service wrapped in @available(iOS 26, *), InsightsViewModel
conditionally instantiates the service with fallback UI on older versions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Animation Lab moved out of #if DEBUG so it's available in release builds
- Add Test Data moved into #if DEBUG debug section
- Removed #if DEBUG wrapper from DebugAnimationSettingsView.swift
- Added 58 missing translations across all 6 languages (de, es, fr, ja, ko, pt-BR)
- Localization coverage restored from 87% to 100% (473/473 keys)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When XCUITest calls app.open(url), the app relaunches (cold launch) and
onOpenURL doesn't fire reliably. Capture the URL from launch options in
AppDelegate and check it on appear with a short delay to ensure the view
hierarchy is ready for sheet presentation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- TC-122: Onboarding day voting (Today/Yesterday selection)
- TC-139: German locale date formatting verification
- TC-138: German long translations don't truncate
- TC-028 marked RED: DayFilterPickerView is dead code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>