feat: Home Screen web app manifest and meta tags #105
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!105
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/home-screen-manifest"
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?
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/, displaystandalone, background and theme color#f8f8f8(light theme base-100), icons 180 / 192 / 512.icon-192.png,icon-512.png: rendered fromfavicon.svgwith rsvg-convert (full bleed, RGB, no alpha). They match the existing 180px apple-touch-icon.apple-mobile-web-app-title,apple-mobile-web-app-capable,mobile-web-app-capable, andtheme-colorfor light (#f8f8f8) and dark (#292f37). Those are the daisyUI base-100 oklch values fromapp.cssconverted to hex.static_pathsand the endpoint'sonly_matchingcover the manifest and icons, so the digested names thatphx.digestwrites are served in prod. The manifest's own icon URLs are undigested paths, and Plug.Static still serves those.Checked
mix phx.digestwritessite-<hash>.webmanifestandicon-*-<hash>.pngand lists them in cache_manifest.json.page_controller_test.exscover the layout metas, the manifest served asapplication/manifest+jsonwith display standalone, every manifest icon served at its stated size, and the digested names.mix precommit: 805 passed, 4 skipped.