feat(plantare): usable UI — commitments screen, add sheet, entry points

The reproduction-commitment (Plantare) UI, local-first and plain-spoken:
- A Plantares screen (drawer entry, /plantares) listing your commitments,
  grouped Open / Done, with a big 'mark returned', a menu (let it go / reopen
  / remove) and an empty-state that explains what a Plantare is.
- An add sheet (scrollable): a two-choice 'who reproduces & returns' (I return
  / owed to me), an optional 'with whom', an optional 'what comes back' in the
  grower's own words, and a note. No sale, no currency — a promise.
- Reachable from a seed too: an 'Add a commitment' action on the variety
  detail, pre-attached to that variety.
- i18n en/es/pt/ast (human words: 'Plantare' + a plain explanation).

Added the Plantares screen to the small-phone overflow guard (18 cases green).
This commit is contained in:
vjrj 2026-07-11 02:11:57 +02:00
parent c75fb59926
commit 833ddaed4d
15 changed files with 730 additions and 2 deletions

View file

@ -78,6 +78,7 @@ class Translations with BaseTranslations<AppLocale, Translations> {
late final Translations$trust$en trust = Translations$trust$en.internal(_root);
late final Translations$wot$en wot = Translations$wot$en.internal(_root);
late final Translations$notifications$en notifications = Translations$notifications$en.internal(_root);
late final Translations$plantare$en plantare = Translations$plantare$en.internal(_root);
}
// Path: app
@ -214,6 +215,9 @@ class Translations$menu$en {
/// en: 'Following'
String get following => 'Following';
/// en: 'Plantares'
String get plantares => 'Plantares';
/// en: 'Settings'
String get settings => 'Settings';
}
@ -1511,6 +1515,81 @@ class Translations$notifications$en {
String newMessageFrom({required Object name}) => 'New message from ${name}';
}
// Path: plantare
class Translations$plantare$en {
Translations$plantare$en.internal(this._root);
final Translations _root; // ignore: unused_field
// Translations
/// en: 'Plantares'
String get title => 'Plantares';
/// en: 'A Plantare is a promise to reproduce a seed and return some — how a variety keeps travelling from hand to hand. It's not a sale.'
String get help => 'A Plantare is a promise to reproduce a seed and return some — how a variety keeps travelling from hand to hand. It\'s not a sale.';
/// en: 'Add a commitment'
String get add => 'Add a commitment';
/// en: 'No commitments yet. When you share or receive seed with a promise to grow it out and return some, note it here.'
String get empty => 'No commitments yet. When you share or receive seed with a promise to grow it out and return some, note it here.';
/// en: 'I'll grow it out & return some'
String get iReturn => 'I\'ll grow it out & return some';
/// en: 'They'll return some to me'
String get owedToMe => 'They\'ll return some to me';
/// en: 'Who reproduces & returns'
String get direction => 'Who reproduces & returns';
/// en: 'With whom?'
String get counterparty => 'With whom?';
/// en: 'A person or a collective (optional)'
String get counterpartyHint => 'A person or a collective (optional)';
/// en: 'What comes back?'
String get owed => 'What comes back?';
/// en: 'e.g. a handful next season (optional)'
String get owedHint => 'e.g. a handful next season (optional)';
/// en: 'Note (optional)'
String get note => 'Note (optional)';
/// en: 'Save'
String get save => 'Save';
/// en: 'Mark returned'
String get markReturned => 'Mark returned';
/// en: 'Let it go'
String get markForgiven => 'Let it go';
/// en: 'Reopen'
String get reopen => 'Reopen';
/// en: 'Remove'
String get delete => 'Remove';
/// en: 'Returned'
String get statusReturned => 'Returned';
/// en: 'Settled'
String get statusForgiven => 'Settled';
/// en: 'Open'
String get openSection => 'Open';
/// en: 'Done'
String get settledSection => 'Done';
/// en: 'Remove this commitment?'
String get removeConfirm => 'Remove this commitment?';
}
// Path: intro.slides
class Translations$intro$slides$en {
Translations$intro$slides$en.internal(this._root);
@ -1995,6 +2074,7 @@ extension on Translations {
'menu.chat' => 'Chat',
'menu.wishlist' => 'Wishlist',
'menu.following' => 'Following',
'menu.plantares' => 'Plantares',
'menu.settings' => 'Settings',
'settings.language' => 'Language',
'settings.systemLanguage' => 'System language',
@ -2387,6 +2467,28 @@ extension on Translations {
'wot.reset' => 'Reset to Duniter defaults',
'wot.saved' => 'Saved',
'notifications.newMessageFrom' => ({required Object name}) => 'New message from ${name}',
'plantare.title' => 'Plantares',
'plantare.help' => 'A Plantare is a promise to reproduce a seed and return some — how a variety keeps travelling from hand to hand. It\'s not a sale.',
'plantare.add' => 'Add a commitment',
'plantare.empty' => 'No commitments yet. When you share or receive seed with a promise to grow it out and return some, note it here.',
'plantare.iReturn' => 'I\'ll grow it out & return some',
'plantare.owedToMe' => 'They\'ll return some to me',
'plantare.direction' => 'Who reproduces & returns',
'plantare.counterparty' => 'With whom?',
'plantare.counterpartyHint' => 'A person or a collective (optional)',
'plantare.owed' => 'What comes back?',
'plantare.owedHint' => 'e.g. a handful next season (optional)',
'plantare.note' => 'Note (optional)',
'plantare.save' => 'Save',
'plantare.markReturned' => 'Mark returned',
'plantare.markForgiven' => 'Let it go',
'plantare.reopen' => 'Reopen',
'plantare.delete' => 'Remove',
'plantare.statusReturned' => 'Returned',
'plantare.statusForgiven' => 'Settled',
'plantare.openSection' => 'Open',
'plantare.settledSection' => 'Done',
'plantare.removeConfirm' => 'Remove this commitment?',
_ => null,
};
}