Skip to content

Fix Add/Edit wine sheet scrim after invalid year save - #39

Open
T0liver wants to merge 1 commit into
mainfrom
c-fix-wine-form-year-sheet-9323
Open

T0liver wants to merge 1 commit into
mainfrom
c-fix-wine-form-year-sheet-9323

Conversation

@T0liver

@T0liver T0liver commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the Add/Edit wine bottom sheet hiding on Save while the ViewModel rejects an out-of-range year, which left ModalBottomSheet in the hidden state with a full-screen scrim still consuming touches (#35).

Changes

Tests

  • Added WineFormYearTest for digit filtering and range checks.
  • Local: ./gradlew assembleDebug and ./gradlew testDebugUnitTest — BUILD SUCCESSFUL.

Fixes #35

Also covers the Year-field numeric input item from #38.

Open in Web Open in Cursor 

Validate vintage in the sheet before saving, show inline year error,
restrict year input to digits, and stop hiding the modal on Save so the
ViewModel can close it only after a successful save.

Co-authored-by: T0liver <T0liver@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Test Results

23 tests  +4   23 ✅ +4   1s ⏱️ ±0s
 6 suites +1    0 💤 ±0 
 6 files   +1    0 ❌ ±0 

Results for commit 1d24619. ± Comparison against base commit e7ecd3a.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Automated test] Add/Edit wine: Save with an invalid year leaves an invisible full-screen overlay (Found by automated testing, Release Tester, v1.1.0)

2 participants