fix(inventory): recover from a stuck loading spinner
The inventory stream subscription had no onError handler, so a transient failure at startup (e.g. the encrypted DB not yet ready) went unhandled and left loading=true forever — the spinner that only a restart cleared. Handle stream errors: drop out of loading, surface an error state, and offer a retry that re-opens the stream. Add a _LoadError view (i18n en/ es/ast/pt) and cover both the failure and the retry-recovers paths.
This commit is contained in:
parent
bb4ee2fd89
commit
f45c452615
12 changed files with 158 additions and 17 deletions
|
|
@ -268,6 +268,8 @@ class _Translations$inventory$ast extends Translations$inventory$en {
|
|||
@override String get clearFilters => 'Quitar filtros';
|
||||
@override String get uncategorized => 'Ensin categoría';
|
||||
@override String get needsReproductionFilter => 'Por reproducir';
|
||||
@override String get loadError => 'Nun se pudo abrir el to bancu de granes. Seique taba ocupáu: prueba otra vuelta.';
|
||||
@override String get retry => 'Volver probar';
|
||||
}
|
||||
|
||||
// Path: draft
|
||||
|
|
@ -1248,6 +1250,8 @@ extension on TranslationsAst {
|
|||
'inventory.clearFilters' => 'Quitar filtros',
|
||||
'inventory.uncategorized' => 'Ensin categoría',
|
||||
'inventory.needsReproductionFilter' => 'Por reproducir',
|
||||
'inventory.loadError' => 'Nun se pudo abrir el to bancu de granes. Seique taba ocupáu: prueba otra vuelta.',
|
||||
'inventory.retry' => 'Volver probar',
|
||||
'draft.capture' => 'Capturar semeyes',
|
||||
'draft.captured' => ({required Object n}) => '${n} capturaes por catalogar',
|
||||
'draft.triageTitle' => 'Por catalogar',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue