feat(quick-add): save & add another for rapid manual entry
The quick-add sheet no longer closes on every save: a new 'Save & add another' action saves the seed, clears the form (keeping the chosen lot type), refocuses the name field and shows an 'N added' running count, so a whole shelf can be entered without reopening the sheet each time. Plain Save still closes it. Adds a dedicated label field with its own controller, submitAndAddAnother() on the cubit, and cubit + widget tests.
This commit is contained in:
parent
89b61bc9e4
commit
d3711e39b0
9 changed files with 240 additions and 18 deletions
|
|
@ -401,6 +401,12 @@ class Translations$quickAdd$en {
|
|||
/// en: 'Save'
|
||||
String get save => 'Save';
|
||||
|
||||
/// en: 'Save & add another'
|
||||
String get saveAndAddAnother => 'Save & add another';
|
||||
|
||||
/// en: '{n} added'
|
||||
String addedCount({required Object n}) => '${n} added';
|
||||
|
||||
/// en: 'Cancel'
|
||||
String get cancel => 'Cancel';
|
||||
}
|
||||
|
|
@ -1217,6 +1223,8 @@ extension on Translations {
|
|||
'quickAdd.quantity' => 'How much?',
|
||||
'quickAdd.more' => 'Add more…',
|
||||
'quickAdd.save' => 'Save',
|
||||
'quickAdd.saveAndAddAnother' => 'Save & add another',
|
||||
'quickAdd.addedCount' => ({required Object n}) => '${n} added',
|
||||
'quickAdd.cancel' => 'Cancel',
|
||||
'detail.notFound' => 'This seed is no longer here.',
|
||||
'detail.lots' => 'Lots',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue