feat(pwa): add an apple-touch-icon to analytics.flisk.si so iOS home-screen shortcuts show the Flisk icon

Open Beginner friendly
#28 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
html, javascript
Domain
frontend

Research direction

Start by finding where the Cloudflare Worker renders the analytics home page head and how static assets are routed. Add a test asserting GET / includes a <link rel="apple-touch-icon"> tag pointing at a 180x180 PNG, then add the tag and serve the PNG as a static asset with long Cache-Control. Done means both new tests pass, the icon URL returns 200 image/png, and existing tests still pass.

Written by the indexing model from the issue text.

Description

agents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests

Problem

https://analytics.flisk.si/ has no <link rel="apple-touch-icon">. When someone on iPhone or iPad uses Share, Add to Home Screen, or bookmarks the page, iOS shows a blank tile or a screenshot of the page instead of the Flisk icon. tools, readme and inference already set one.

Reproduce: curl -s https://analytics.flisk.si/ | grep -c apple-touch-icon prints 0.

Root Cause Analysis

The page head declares no touch icon, and no /apple-touch-icon.png is served at the default path either, so iOS has nothing to use. A single 180x180 PNG from the Flisk icon set and one link tag fixes it.

TDD Fix Plan

  1. RED: Add a test that GET / has a link rel="apple-touch-icon" tag.
    GREEN: Add the tag pointing at a 180x180 PNG.
  2. RED: Add a test that the icon URL returns 200 with image/png and a long Cache-Control.
    GREEN: Serve the PNG as a static asset.

REFACTOR: Reuse the icon from the flisk-emoji repo for every site.

Acceptance Criteria

  • The home page declares an apple-touch-icon
  • The icon URL returns a 180x180 PNG with caching
  • All new tests pass
  • Existing tests still pass
Dominant language
JavaScript
Stars
0
Forks
2
Avg merge
1h 33m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flisk-sh/analytics

All issues in flisk-sh/analytics

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.