mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(onboarding): the connect step reads the sync verdict
The step decided "connected" from the ledger's `state` and had one piece of copy for every outcome: "the first sync is in progress". That sentence was false for a connection delivering for months, and worse for one the person has to repair — the screen said everything was fine while the grant was gone. `connectSourceView` resolves the envelope entry into one of four tiles and says whether the flow may record its result. Only `pending_first_sync` and `fresh` may; `stale` is acknowledged without being claimed as new; `stalled`, `failing`, `reauth_required` and `parked` name the state and link at the page that can change it. An unresolved envelope paints no tile at all. A source the instance cannot connect — a BYO provider with no client pair, a shared-app provider with no app — now points at the credentials instead of offering a "Connect" button onto a card that has none.
This commit is contained in:
1 parent
0bdbf009f6
commit
da58d16642
11 files changed
+883
-45
No files matched your search
+37
-3
@@ -4677,12 +4677,46 @@
|
||||
"connect-source": {
|
||||
"title": "Collega {target}",
|
||||
"body": "Una sola connessione, scelta in base alle tue risposte. Poi le misurazioni arrivano da sole.",
|
||||
"howTo": "La connessione si fa nella pagina delle integrazioni. Poi torna qui; questa schermata si accorge quando è pronta.",
|
||||
"howTo": "La connessione a {target} si fa nella pagina delle integrazioni. Poi torna qui; questa schermata si accorge quando è pronta.",
|
||||
"cta": "Collega {target}",
|
||||
"checking": "Verifica della connessione in corso.",
|
||||
"waiting": "Non ancora collegato.",
|
||||
"done": "{target} è collegato.",
|
||||
"syncing": "La prima sincronizzazione è in corso. Le misurazioni compaiono nella dashboard man mano che arrivano."
|
||||
"openSettings": "Apri Impostazioni → Integrazioni",
|
||||
"noDate": "sconosciuto",
|
||||
"needsCredentials": {
|
||||
"title": "Questa istanza non ha ancora un’app {target} registrata.",
|
||||
"detail": "Inserisci le tue credenziali in Impostazioni → Integrazioni e la connessione potrà partire."
|
||||
},
|
||||
"state": {
|
||||
"pending_first_sync": {
|
||||
"title": "{target} è collegato.",
|
||||
"detail": "La prima sincronizzazione è in corso. I valori compaiono sulla dashboard appena arrivano."
|
||||
},
|
||||
"fresh": {
|
||||
"title": "{target} è già collegato.",
|
||||
"detail": "Ultimo valore {when}. Qui non resta nulla da fare."
|
||||
},
|
||||
"stale": {
|
||||
"title": "{target} è collegato, ma al momento non arriva nulla.",
|
||||
"detail": "Ultimo valore {when}. La connessione in sé è a posto."
|
||||
},
|
||||
"stalled": {
|
||||
"title": "{target} è collegato, ma non sincronizza più.",
|
||||
"detail": "Ultimo tentativo {when}. Controlla la connessione in Impostazioni → Integrazioni."
|
||||
},
|
||||
"failing": {
|
||||
"title": "{target} è collegato, ma la sincronizzazione non riesce.",
|
||||
"detail": "Non arriva nulla da {when}. Controlla la connessione in Impostazioni → Integrazioni."
|
||||
},
|
||||
"reauth_required": {
|
||||
"title": "La connessione a {target} va rinnovata.",
|
||||
"detail": "Accedi ancora una volta e i valori riprendono ad arrivare."
|
||||
},
|
||||
"parked": {
|
||||
"title": "La connessione a {target} è in pausa.",
|
||||
"detail": "Controlla la connessione in Impostazioni → Integrazioni."
|
||||
}
|
||||
}
|
||||
},
|
||||
"add-medication": {
|
||||
"title": "Aggiungi il tuo primo farmaco",
|
||||
|
||||
Reference in new issue
Block a user