From 5ae295cd1a80cbab1e71edace1a2c22a8383b691 Mon Sep 17 00:00:00 2001 From: Stephan Terning Date: Sun, 22 Nov 2026 22:48:07 +0100 Subject: [PATCH] Keep Home Screen navigation within Wavecase --- app/root.tsx | 1 + docs/testing.md | 2 ++ public/manifest.webmanifest | 15 +++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 public/manifest.webmanifest diff --git a/app/root.tsx b/app/root.tsx index 7268ce6..a7b27f5 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -22,6 +22,7 @@ export async function loader({ request }: LoaderFunctionArgs) { export const meta = () => [{ title: "Wavecase" }]; export const links = () => [ { rel: "icon", href: "/favicon.svg", type: "image/svg+xml" }, + { rel: "manifest", href: "/manifest.webmanifest" }, ]; export function Layout({ children }: { children: React.ReactNode }) { const data = useRouteLoaderData("root"); diff --git a/docs/testing.md b/docs/testing.md index 0c4be38..6451b00 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -84,6 +84,8 @@ Use synthetic media and disposable accounts. Test listeners in a separate/privat On a physical iPhone with HTTPS and the configured `APP_URL`, check uploads, actual audio, repeat pinch/pan/hold gestures, narrow layouts, downloads, background playback, interruptions, automatic release progression, and lock-screen resume. Verify title/artist/artwork updates, a demo without artwork, release cover replacement, and metadata cleanup after errors or leaving the player. Public navigation keeps the media session; private covers still require authorization. Browser automation cannot replace these device checks. +Also add Wavecase to the iPhone Home Screen from a nested page, such as a demo detail page. Launch it, sign in if needed, and navigate between Dashboard, Work in progress, demo details, activity, artists, releases, and account settings. Ordinary same-origin navigation must stay in the standalone app without opening a Safari sheet with a close button and floating browser controls. Check narrow layouts and safe-area spacing in both Safari and the installed app. Preview links intentionally open a separate browsing context. Also install from a listener share or public release page and verify that launching returns to that music; the manifest leaves `start_url` unset to preserve the page chosen at installation. If an existing Home Screen installation retains its earlier navigation behavior, remove and re-add it after the manifest update, then repeat the check. + For lock-screen controls, verify title/artist/artwork and play/pause on the physical iPhone. The worklet player should have no reported elapsed time or progress timeline and no seek/previous/next commands. Check pause/resume after app switches, lock/unlock, track changes, repeat boundaries, production/stage navigation, interruptions and reaching the queue end. In-app waveform and slider seeking, repeat and automatic release progression must continue to work with the production worklet engine. Confirm that a previous player's timeline is cleared and errors, revocation and player exit clear metadata/handlers. `media-session` tests cover metadata, play/pause, position clearing and the absence of time reports and seeking actions. iOS controls the actual layout; native fallback elements may still expose a browser-owned timeline. On macOS Safari, verify the shared media-stream output with built-in speakers: audible pause and forward/backward seeks, repeat, source changes, playback across navigation, several minutes in a background tab, and interruption/resume. Normalization remains upstream of this output. Mobile Safari (including iPad desktop identity) and other browsers retain the direct Web Audio destination. Check their existing playback journeys too. diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest new file mode 100644 index 0000000..3a2b727 --- /dev/null +++ b/public/manifest.webmanifest @@ -0,0 +1,15 @@ +{ + "name": "Wavecase", + "short_name": "Wavecase", + "scope": "/", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#000000", + "icons": [ + { + "src": "/favicon.svg", + "sizes": "any", + "type": "image/svg+xml" + } + ] +}