mirror of
https://github.com/mauricioabh/arbpulse.git
synced 2026-07-27 15:47:43 +00:00
5d84df3e25
- Add Web App Manifest + ArbPulse icons (192/512/maskable/apple-touch) under web/public/; no service worker (real-time honesty: never serve stale data). - Add mobile/install metadata to index.html (theme-color, viewport-fit=cover, apple-mobile-web-app-*, manifest + apple-touch-icon links). - Responsive layout: PriceMatrix stacked per-venue cards below sm, StatsBar reflow, ~44px touch targets in Controls/ConfigPanel, safe-area top inset. - scripts/gen-icons.ps1 derives icon sizes from the master (no new deps). - openspec: add-pwa-mobile change (proposal/design/specs/tasks). Co-authored-by: Cursor <cursoragent@cursor.com>
1.8 KiB
1.8 KiB
1. Icons
- 1.1 Finalize the ArbPulse master icon and derive
icon-192.png,icon-512.png,icon-maskable-512.png(glyph within ~80% safe zone), andapple-touch-icon.png(180px) - 1.2 Place all icons under
web/public/
2. Manifest
- 2.1 Create
web/public/manifest.webmanifestwithname,short_name,start_url: "/",scope: "/",display: "standalone",theme_color/background_color#0a0e14, and icon entries (192, 512, and 512 maskable with"purpose": "maskable")
3. HTML head metadata
- 3.1 In
web/index.html, addviewport-fit=coverto the viewport meta and atheme-colormeta (#0a0e14) - 3.2 Add
<link rel="manifest">,<link rel="apple-touch-icon">, and theapple-mobile-web-app-capable/apple-mobile-web-app-status-bar-style/apple-mobile-web-app-titletags
4. Responsive layout
- 4.1
PriceMatrix.tsx: render per-venue stacked cards (exchange + bid/ask/qty/ spread as label–value rows) belowsm; keep the<table>fromsmup, with no horizontal overflow on phones - 4.2
StatsBar.tsx: reflow stats and badges on mobile without clipping - 4.3 Ensure touch targets in
Controls.tsxandConfigPanel.tsxare ~44px min - 4.4 Sanity-check
App.tsxspacing/padding on narrow viewports
5. Verify
- 5.1
npm run typecheckandnpm testpass - 5.2
npm run buildsucceeds andweb/distcontains the manifest + icons - 5.3 DevTools device emulation: no horizontal overflow at ~375px; Application → Manifest shows no errors; confirm no service worker is registered
- 5.4 After
dev → PR → main → deploy.sh, install on a real phone fromhttps://arbpulse.wayool.comand confirm standalone launch + live SSE data