demo: drop the extra type-YES gate on menstrual write options - #436
Conversation
No other write in demo.py (delete_weigh_in, create_gear, set_activity_name, set_blood_pressure, etc.) requires typing a literal confirmation string - they just take the input directly, some with a 'q' to cancel. The menstrual write entries were the only ones gated this way; removed _confirm_menstrual_write() and its five call sites so they match how every other write already works, and updated the five menu descriptions from "(writes; type YES)" to the existing "(interactive)" convention.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughThe menstrual write flow in ChangesMenstrual write flow
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change implements the stated interaction update, with existing mutation validation retained; it is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The five menstrual write menu options (#432) were the only writes in
demo.pythat required typing a literalYESto proceed — every other write (delete_weigh_in,create_gear,set_activity_name,set_blood_pressure, etc.) just takes the input directly, some with a'q' to cancel. Removed_confirm_menstrual_write()and its five call sites so these match the rest of the demo, and updated the menu descriptions from(writes; type YES)to the existing(interactive)convention used everywhere else.Test plan
python -m pytest -q(399 passed)ruff check/ruff format --check/mypyall cleanSummary by CodeRabbit