feat: Home Screen web app manifest and meta tags #105

Merged
jfro merged 2 commits from feat/home-screen-manifest into main 2026-10-26 03:05:50 +00:00
Owner

Closes #104

Adding FuzzyCatalog to the iOS or Android Home Screen now opens a standalone app named "FuzzyCatalog" with the book icon and the theme color.

Changes

  • priv/static/site.webmanifest: name and short_name "FuzzyCatalog", start_url and scope /, display standalone, background and theme color #f8f8f8 (light theme base-100), icons 180 / 192 / 512.
  • icon-192.png, icon-512.png: rendered from favicon.svg with rsvg-convert (full bleed, RGB, no alpha). They match the existing 180px apple-touch-icon.
  • Root layout: manifest link, apple-mobile-web-app-title, apple-mobile-web-app-capable, mobile-web-app-capable, and theme-color for light (#f8f8f8) and dark (#292f37). Those are the daisyUI base-100 oklch values from app.css converted to hex.
  • static_paths and the endpoint's only_matching cover the manifest and icons, so the digested names that phx.digest writes are served in prod. The manifest's own icon URLs are undigested paths, and Plug.Static still serves those.

Checked

  • mix phx.digest writes site-<hash>.webmanifest and icon-*-<hash>.png and lists them in cache_manifest.json.
  • New tests in page_controller_test.exs cover the layout metas, the manifest served as application/manifest+json with display standalone, every manifest icon served at its stated size, and the digested names.
  • mix precommit: 805 passed, 4 skipped.
Closes #104 Adding FuzzyCatalog to the iOS or Android Home Screen now opens a standalone app named "FuzzyCatalog" with the book icon and the theme color. **Changes** - `priv/static/site.webmanifest`: name and short_name "FuzzyCatalog", start_url and scope `/`, display `standalone`, background and theme color `#f8f8f8` (light theme base-100), icons 180 / 192 / 512. - `icon-192.png`, `icon-512.png`: rendered from `favicon.svg` with rsvg-convert (full bleed, RGB, no alpha). They match the existing 180px apple-touch-icon. - Root layout: manifest link, `apple-mobile-web-app-title`, `apple-mobile-web-app-capable`, `mobile-web-app-capable`, and `theme-color` for light (`#f8f8f8`) and dark (`#292f37`). Those are the daisyUI base-100 oklch values from `app.css` converted to hex. - `static_paths` and the endpoint's `only_matching` cover the manifest and icons, so the digested names that `phx.digest` writes are served in prod. The manifest's own icon URLs are undigested paths, and Plug.Static still serves those. **Checked** - `mix phx.digest` writes `site-<hash>.webmanifest` and `icon-*-<hash>.png` and lists them in cache_manifest.json. - New tests in `page_controller_test.exs` cover the layout metas, the manifest served as `application/manifest+json` with display standalone, every manifest icon served at its stated size, and the digested names. - `mix precommit`: 805 passed, 4 skipped.
jfro added this to the v0.9.1 milestone 2026-10-26 02:43:39 +00:00
feat: Home Screen web app manifest and meta tags
All checks were successful
CI / test (pull_request) Successful in 49s
5e581ca5a9
Adding FuzzyCatalog to an iOS or Android Home Screen now gives a
standalone app named "FuzzyCatalog" with the book icon and theme color.

- priv/static/site.webmanifest: name/short_name, start_url and scope "/",
  display standalone, light base-100 as background/theme color, icons.
- 192px and 512px icons rendered from favicon.svg (full bleed, RGB, no
  alpha), matching the existing 180px apple-touch-icon.
- Root layout links the manifest and adds apple-mobile-web-app-title,
  apple-mobile-web-app-capable, mobile-web-app-capable, and light/dark
  theme-color metas from the daisyUI base-100 colors.
- static_paths and the endpoint's only_matching cover the manifest and
  icons, so the digested names phx.digest writes are served in prod.

Closes #104
fix: theme-color follows the in-app Light/Dark switch
All checks were successful
CI / test (pull_request) Successful in 49s
5eee7d565f
jfro merged commit 154666e1f0 into main 2026-10-26 03:05:50 +00:00
jfro deleted branch feat/home-screen-manifest 2026-10-26 03:05:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog!105
No description provided.