feat(mobile): mani log, dupes on scan verdict, home screen #379
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 357 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #379"
general
weight: 0.35
mattmck
Stacked on #376 (retargets to
devafter #376 merges). Refs #109.What this adds (wave 2)
apps/mobile/src/lib/pick-for-me.tsmirrorsapps/web/src/lib/pick-for-me.ts; the web's "Pair it" is not ported), one-tap Log today's mani with undo.GET /api/manicures, paging, delete) with a Log a mani sheet (owned polishes with roles, date, notes); polish detail shows worn count / last worn / tried-untried and opens the sheet preselected (/manis?log=<shadeId>).GET /api/polishes/{id}/dupesand shows "You own N close dupes" with swatches (built in #376; wording now includes the count).expo exportfor iOS + Android (Metro + Hermes bundle; verified locally).Verification
typecheck, lint and 37 mobile unit tests pass;
expo exportfor both platforms passes. Verified in the Expo web preview against the local Functions host (dev bypass): Home counts, Pick for me, Log today's mani (then undone via the API; Teddy Girl'stried_at, which the mani log fills and never clears, was reset to null), Manis list, Log a mani sheet (opened and filled, not saved), near-dupe verdict ("Holo Taco — Highest Bidder" vs an owned dupe), and the offline restore (proxy stopped, reload → saved list + counts + "Showing your last saved list"). Not run: iOS Simulator (no Xcode), native camera.Note:
Alert.alertis a no-op in the web preview, so Delete mani and the "Undo" alert after Log today's mani on the detail screen could only be checked by type-check there.Decisions needed
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added a Mani log tab to record, browse, and delete manicure entries, including dates and notes.
Added collection counts and “Pick for me,” with one-tap manicure logging and undo.
Added access to saved collection and mani-log data when offline or a refresh fails. Saved data is cleared on sign-out.
Added a shortcut to log a manicure from a polish’s detail page.
Improvements
Updated close-match verdicts to show the total number of similar shades.
Chores
* Mobile CI now exports the app for iOS and Android.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->