feat(mobile): edit rating, notes, quantity and purchase details on the detail screen (#109) #436
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 388 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.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #436"
general
weight: 0.35
mattmck
Summary
components/edit-details-sheet.tsx, pure helpers inlib/polish-edit.ts): rating stars, notes, bottles (owned only, stepper 1-99; zero stays with the Archive action), purchase price (locale-safe parsing:12.50,12,50,1.234,56,1,234.56), currency chips (saved currency, else last used, else device locale, else USD), purchase date (validatedYYYY-MM-DD+ Today button; no date-picker dependency in the project).Field,FormInput,StarRating,QuantityStepperextracted tocomponents/polish-form-fields.tsxand reused by the manual add form.Test plan
npm run test --workspace=apps/mobile: 194 pass (18 new inpolish-edit.test.ts)npx expo export --platform iosDecisions needed
1. Brand/name/finishes/color are read-only for every shade. The polish response carries no flag saying the shade is the caller's own private
user_submittedshade (the API computesownSubmittedinternally), and changing brand/name by id would re-resolve to another shade. Proposed follow-up: expose anownSubmittedboolean onPolish, then reuse the manual add fields in the sheet.2. A saved rating or purchase date can be changed but not removed.
upsertInventoryItemtreats a missing/nullrating/purchaseDateas unchanged (and the DB CHECK forbids rating 0). The sheet blocks clearing them with a message; an unrated polish can still clear a star before saving. Proposed follow-up: let the API acceptnullfor both.3. Price clears together with its currency (
null/null); notes clear with an empty string.4. Date entry is typed
YYYY-MM-DD(no dependency-free native picker in SDK 57).Refs #109
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added an Edit details sheet for polishes with a status. Update ratings, notes, bottle count for owned polishes, and purchase price, currency, and date. Catalog details remain read-only.
Polish detail screens now show saved ratings, purchase details, and notes, or an empty state when none are available.
Changes save optimistically; failed updates restore the previous details and let you retry with your draft.
Documentation
Updated mobile app documentation to describe the edit-details experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->