fix(ui): retry Mini App launch on backend failure; hide account linking #102
Reference in New Issue
Block a user
Delete Branch "feature/tg-boot-retry-hide-linking"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two profile/Telegram refinements, agreed in dialogue.
Mini App launch failure no longer dumps the user to the web login
Inside Telegram, a failed
initDataauth (backend down mid-deploy) used tonavigate('/login')— rendering the web (guest/email) login, i.e. the/app/experience. The hash path stayed/telegram/, only the screen swapped, so it looked like a redirect to/app/.Now
bootstrapretries the launch a few times silently, then renders a dedicated boot-error screen with a Retry button (BootError.svelte,app.bootError). It never falls back to the web sign-in. A blocked account is still terminal (blocked screen).Account linking hidden (kept wired)
The profile Link an account section (email + Telegram link) is hidden via
hiddenon.emailboxwhile sign-in is provider-only; the anonymous/app/guest whose upgrade path this is comes later. Code kept; the two linking e2e specs aretest.skipped — re-enable together.Tests
pnpm check(0 errors),test:unit(305),build,bundle-size, fulltest:e2e— 148 passed, 4 skipped (the linking specs ×2).bootfailinitData makes mockauthTelegramreject; asserts the Retry screen shows and the guest login does not (Chromium + WebKit).Docs
docs/FUNCTIONAL.md(+_ru) updated for both behaviours; i18nboot.*keys added.