fix(ui): VK Android external links + landing VK entry + drop 1️⃣ badge #156
Reference in New Issue
Block a user
Delete Branch "feature/vk-links-landing"
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?
Three owner-requested fixes:
1. VK Android: external links strand the player. The Android VK client's WebView ignores
target=_blankand navigates the game's own window (dictionary lookup after word check, About/Feedback links, ad banner, bot-link modal fallbacks). vk-bridge 3.x has no method to open an external URL, so links are routed through VK's own leave-VK redirectvk.com/away.php?to=…, which the client intercepts natively and opens in the system browser. Scoped tovk_platform=mobile_android*— iOS and desktop VK open_blankcorrectly and are untouched.onExternalLinkClickmoved tolib/links.tscomposing the Telegram + VK routers. Needs an on-device check on the contour (away.php interception is not reproducible in Playwright).2. Landing: VK logo next to Telegram, linked from the new
VITE_VK_APP_LINKbuild-arg (wired through Dockerfile/compose/CI/prod-deploy; theTEST_/PROD_Gitea variables already exist). Found + fixed adjacent: since57c778fgateway/Dockerfilelost the plainVITE_TELEGRAM_GAME_CHANNEL_NAMEARG (kept stale_EN/_RU), so the deployed landing bundle dead-code-eliminated the whole Telegram-logo branch — prod erudit-game.ru currently shows no TG logo (verified by grepping the served bundle). This PR restores it.3. Status bar: drop the
1️⃣badge (noise); the single-word rule keeps the spelled-out label in the history header and lobby.Tests: svelte-check 0 errors, 371 unit (new: vk away-routing, links opener, vkAppLink), e2e 160 passed both engines; compose config validated; env-baked bundle grep confirms both links.
The small 1️⃣ in the status bar's score-preview slot read as noise; the single-word rule keeps its spelled-out label in the history header and the lobby invitation card.