Skip to content

Add an Install app button and an install section on the About page - #25

Merged
ehcrea merged 1 commit into
mainfrom
claude/project-thread-mq981r
Nov 22, 2026
Merged

ehcrea merged 1 commit into
mainfrom
claude/project-thread-mq981r

Conversation

@ehcrea

@ehcrea ehcrea commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Requested by Eren · project thread

Follow-up to the offline/PWA change: makes installing discoverable.

Changes

  • Toolbar: an "Install app" button appears next to About when the browser can install directly (Chrome/Edge beforeinstallprompt); hidden once installed or when running as the app. Icon-only below 760 px.
  • About page: new "Install as an app" section before the Patreon box explaining offline use, with an Install app button where the browser supports it; in Safari on a Mac it shows File › Add to Dock, on iPhone/iPad Share › Add to Home Screen, elsewhere short Chrome/Edge/Safari instructions. In the installed app it says so.
  • Texts in EN, DE, NL, TR and ES; follows runtime language switches (re-renders when the About content or <html lang> changes). Styled with the shared palette tokens, light and dark.
  • README install section mentions the button; sw.js rebuilt.

Testing

  • Repo tests pass; node tools/build-sw.js --check passes.
  • Playwright (Chromium) with a simulated install prompt: toolbar and About buttons appear in every language page and theme, clicking calls the prompt, appinstalled hides the toolbar button and shows the confirmation; axe (WCAG 2 A/AA) finds no violations in the new section in light or dark; Safari user agent shows the Add to Dock instructions; switching the language at runtime re-translates the section; no new horizontal overflow at 390 px.

Generated by Claude Code

The toolbar gets an "Install app" button next to About when the browser
can install directly (Chrome/Edge). The About page gets an "Install as
an app" section explaining offline use, with the install button or, in
Safari and other browsers without an install prompt, short Add to Dock /
Add to Home Screen instructions. Texts in EN, DE, NL, TR and ES; follows
language switches and both themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSyM8REeQdPhYZ6eSWmgc
@ehcrea
ehcrea merged commit 5b1d2ff into main Nov 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants