Commit 7689db70 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix back-button/navigation clobber, add in-app install banner

useBackButtonClose's cleanup unconditionally called history.back() to
consume its own leftover entry, which broke the More sheet: clicking
an item both navigates (route Link) and closes the sheet in the same
click, and the cleanup's history.back() undid that navigation since
it was now the top-most entry, making every More button appear to do
nothing. Each pushed entry now carries a unique id and cleanup only
consumes it if it's still current.

Also adds a custom in-app "Install Stax" banner (useInstallPrompt +
InstallBanner) since the browser's own install icon is easy to miss -
captures beforeinstallprompt at module load (not component-scoped,
since every page remounts its own <Layout>) and shows manual Share ->
Add to Home Screen instructions on iOS Safari, which has no
programmatic install API at all.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 03069f85
Pipeline #1147 passed with stage
in 8 minutes and 46 seconds