Skip to content

feat(mill): add has_adjustable_speed and has_timer capability flags - #3

Merged
silasg merged 1 commit into
developfrom
feature/mill-capability-flags
Jul 17, 2026
Merged

feat(mill): add has_adjustable_speed and has_timer capability flags#3
silasg merged 1 commit into
developfrom
feature/mill-capability-flags

Conversation

@silasg

@silasg silasg commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Add two boolean properties to the Mill model that control whether mill_speed and mill_timer fields are visible in brew forms and detail views. When a selected grinder lacks a capability, the corresponding brew field is hidden regardless of global/preparation settings.

  • Extend Mill interface and class with has_adjustable_speed, has_timer (default true for backward compatibility, no migration needed)
  • Add HAS_ADJUSTABLE_SPEED, HAS_TIMER to millFunctionPipe
  • Wire choosenMill into brew-brewing and brew-detail components
  • Add checkboxes to mill add/edit/detail views
  • Add i18n keys for all supported languages
  • Add unit tests for Mill model and brew-brewing visibility
  • Fix pre-existing bug: millFunctionPipe used PREPARATION enum for HAS_PHOTOS
  • Increase mill-add modal breakpoint from 0.35 to 0.5

Note: Non-English translations (ar, el, es, fr, id, it, nl, no, pl, pt, tr, zh) are automated and need review by native speakers.

@silasg
silasg force-pushed the feature/mill-capability-flags branch from c3d4e63 to 7722b2b Compare April 3, 2026 12:02
Add two boolean properties to the Mill model that control whether
mill_speed and mill_timer fields are visible in brew forms and detail
views. When a selected grinder lacks a capability, the corresponding
brew field is hidden regardless of global/preparation settings.

- Extend Mill interface and class with has_adjustable_speed, has_timer
  (default true for backward compatibility, no migration needed)
- Add HAS_ADJUSTABLE_SPEED, HAS_TIMER to millFunctionPipe
- Wire choosenMill into brew-brewing and brew-detail components
- Add checkboxes to mill add/edit/detail views
- Add i18n keys for all supported languages
- Add unit tests for Mill model and brew-brewing visibility
- Fix pre-existing bug: millFunctionPipe used PREPARATION enum for HAS_PHOTOS
- Increase mill-add modal breakpoint from 0.35 to 0.5

Note: Non-English translations (ar, el, es, fr, id, it, nl, no, pl, pt,
tr, zh) are automated and need review by native speakers.
@silasg
silasg force-pushed the feature/mill-capability-flags branch from 7722b2b to 3fb8060 Compare April 3, 2026 12:43
@silasg
silasg merged commit 24a5d67 into develop Jul 17, 2026
1 check passed
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.

1 participant