feat(vk): native share/copy, auto theme, friend-code deep link, home-bar safe area #142
Reference in New Issue
Block a user
Delete Branch "feature/vk-bridge-integration"
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?
Group B of the VK integration — the deferred polish from the launch+auth MVP (#140), found while testing on the contour.
Fixes (VK Mini App)
VKWebAppSharefor the invite andVKWebAppCopyTextfor copy — sincenavigator.shareis absent in the desktop VK iframe andnavigator.clipboardis blocked there.vk.com/app<id>#f<code>on VK (was always the Telegram link). The app id comes fromvk_app_idin the launch params — noVITE_VK_APP_IDbuild arg / CI config needed. The recipient routes the deep link from VK'shashlaunch query parameter (VK forwards everything after#;location.hashcollides with our hash router, so we read the query param).autotheme follows the VK client light/dark (VKWebAppUpdateConfig); the VK mobile webview'sprefers-color-schemedoes not track it. Explicit light/dark prefs are respected.--tg-safe-*CSS vars default toenv(safe-area-inset-*)(the meta already hasviewport-fit=cover), so the VK mobile layout clears the home bar (Capacitor/PWA benefit too). Telegram still overrides them from its SDK; a plain browser tab reports 0 (no change).Verify
Local: svelte-check 0, unit 347 (+
vkAppId/vkStartParam/vkShareLink), build, bundle-gate 96.2/100. Docs:.claude/vk-games-integration.md, FUNCTIONAL (+_ru).Needs your live VK check (not reproducible headless, like the iOS gestures): the actual VK share/copy dialogs (mobile + desktop iframe), the auto light/dark following the VK client, the friend-code link opening + redeeming, and the home bar on VK Android.
Deferred
Payments (VK Pay/votes), native (Capacitor) VK, vk-identity account-linking, VK push.