mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +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": "Connecter {target}",
|
||||
"body": "Une seule connexion, choisie d'après vos réponses. Les mesures arrivent ensuite d'elles-mêmes.",
|
||||
"howTo": "La connexion se fait sur la page des intégrations. Revenez ici ensuite ; cet écran détecte quand elle est établie.",
|
||||
"howTo": "La connexion à {target} se fait sur la page des intégrations. Revenez ici ensuite ; cet écran détecte quand elle est établie.",
|
||||
"cta": "Connecter {target}",
|
||||
"checking": "Vérification de la connexion.",
|
||||
"waiting": "Pas encore connecté.",
|
||||
"done": "{target} est connecté.",
|
||||
"syncing": "La première synchronisation est en cours. Les mesures apparaissent sur le tableau de bord au fur et à mesure."
|
||||
"openSettings": "Ouvrir Paramètres → Intégrations",
|
||||
"noDate": "inconnue",
|
||||
"needsCredentials": {
|
||||
"title": "Cette instance n’a pas encore d’application {target} enregistrée.",
|
||||
"detail": "Saisissez vos propres identifiants dans Paramètres → Intégrations, la connexion pourra alors démarrer."
|
||||
},
|
||||
"state": {
|
||||
"pending_first_sync": {
|
||||
"title": "{target} est connecté.",
|
||||
"detail": "La première synchronisation est en cours. Les valeurs apparaîtront sur le tableau de bord dès leur arrivée."
|
||||
},
|
||||
"fresh": {
|
||||
"title": "{target} est déjà connecté.",
|
||||
"detail": "Dernière valeur {when}. Il n’y a plus rien à faire ici."
|
||||
},
|
||||
"stale": {
|
||||
"title": "{target} est connecté, mais rien n’arrive en ce moment.",
|
||||
"detail": "Dernière valeur {when}. La connexion elle-même est en ordre."
|
||||
},
|
||||
"stalled": {
|
||||
"title": "{target} est connecté, mais la synchronisation ne tourne plus.",
|
||||
"detail": "Dernière tentative {when}. Vérifiez la connexion dans Paramètres → Intégrations."
|
||||
},
|
||||
"failing": {
|
||||
"title": "{target} est connecté, mais la synchronisation échoue.",
|
||||
"detail": "Plus rien n’est arrivé depuis {when}. Vérifiez la connexion dans Paramètres → Intégrations."
|
||||
},
|
||||
"reauth_required": {
|
||||
"title": "La connexion à {target} doit être renouvelée.",
|
||||
"detail": "Reconnectez-vous une fois et les valeurs reprendront."
|
||||
},
|
||||
"parked": {
|
||||
"title": "La connexion à {target} est en pause.",
|
||||
"detail": "Vérifiez la connexion dans Paramètres → Intégrations."
|
||||
}
|
||||
}
|
||||
},
|
||||
"add-medication": {
|
||||
"title": "Ajoutez votre premier médicament",
|
||||
|
||||
Reference in new issue
Block a user