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:
Marc-André Bombeck committed 2026-09-11 09:15:32 +02:00
1 parent 0bdbf009f6
commit da58d16642
11 files changed
+883 -45

No files matched your search

+37 -3
View File
@@ -4677,12 +4677,46 @@
"connect-source": {
"title": "Połącz {target}",
"body": "Jedno połączenie, wybrane na podstawie Twoich odpowiedzi. Potem pomiary przychodzą same.",
"howTo": "Połączenie nawiązuje się na stronie integracji. Wróć tutaj później; ten ekran zauważy, kiedy będzie gotowe.",
"howTo": "Połączenie z {target} nawiązuje się na stronie integracji. Wróć tutaj później; ten ekran zauważy, kiedy będzie gotowe.",
"cta": "Połącz {target}",
"checking": "Sprawdzanie połączenia.",
"waiting": "Jeszcze nie połączono.",
"done": "{target} jest połączone.",
"syncing": "Trwa pierwsza synchronizacja. Pomiary pojawią się na panelu, gdy tylko nadejdą."
"openSettings": "Otwórz Ustawienia → Integracje",
"noDate": "nieznany",
"needsCredentials": {
"title": "Ta instancja nie ma jeszcze zapisanej aplikacji {target}.",
"detail": "Wpisz własne dane dostępowe w Ustawieniach → Integracje, wtedy połączenie będzie mogło ruszyć."
},
"state": {
"pending_first_sync": {
"title": "{target} jest połączony.",
"detail": "Trwa pierwsza synchronizacja. Wartości pojawią się na pulpicie, gdy tylko dotrą."
},
"fresh": {
"title": "{target} jest już połączony.",
"detail": "Ostatnia wartość {when}. Tutaj nie ma już nic do zrobienia."
},
"stale": {
"title": "{target} jest połączony, ale w tej chwili nic nie przychodzi.",
"detail": "Ostatnia wartość {when}. Samo połączenie jest w porządku."
},
"stalled": {
"title": "{target} jest połączony, ale synchronizacja się zatrzymała.",
"detail": "Ostatnia próba {when}. Sprawdź połączenie w Ustawieniach → Integracje."
},
"failing": {
"title": "{target} jest połączony, ale synchronizacja się nie udaje.",
"detail": "Od {when} nic nie dotarło. Sprawdź połączenie w Ustawieniach → Integracje."
},
"reauth_required": {
"title": "Połączenie z {target} wymaga odnowienia.",
"detail": "Zaloguj się jeszcze raz, a wartości popłyną dalej."
},
"parked": {
"title": "Połączenie z {target} jest wstrzymane.",
"detail": "Sprawdź połączenie w Ustawieniach → Integracje."
}
}
},
"add-medication": {
"title": "Dodaj swój pierwszy lek",