Skip to content

Work on phones from iOS 15 and Android browsers of about 2019 - #190

Merged
misabegovic merged 3 commits into
mainfrom
feat/phones-from-ios-15
Oct 14, 2026
Merged

misabegovic merged 3 commits into
mainfrom
feat/phones-from-ios-15

Conversation

@misabegovic

Copy link
Copy Markdown
Owner

Stacked on #189, which carries the decision this builds. Merge #189 first and this retargets to main.

Summary

Below Safari 16.4 and Chrome 111, usput's map, deck, check-ins and plans didn't run: the import map needs native support, and every Tailwind rule sits in a cascade layer. You asked that the app work on all devices and chose the iOS 15 floor.

  • es-module-shims 2.8.4 (MIT, vendored) loads the import map where the browser can't, in all three layouts. The CSP allows the blob: scripts it runs.
  • Tailwind 4.1.18 to 4.3.3 in the gem, the Dockerfile CLI and package.json, for its fallbacks (139 @supports colour fallbacks in the build).
  • Storage that can't break a page. All 63 localStorage and 7 sessionStorage calls go through services/safe_storage.js, which falls back to memory. With storage refused, as private browsing can do, the map used to draw no places and the cookie banner never appeared; both work now.
  • A notice below the floor. A browser without cascade layers, one that can't parse Turbo's syntax, or one without JavaScript sees a short notice over the server-rendered pages. It's in Bosnian and English and styled inline, so it shows even without the stylesheet.
  • The floor, from the code: iOS 15.4, Chrome and Android WebView 99, Samsung Internet 18, Firefox 115. Turbo's build needs Chrome 85, and the cascade layers raise it to 99. It's written in README.md and wiki/decisions/support-phones-from-ios-15.md.

Note for review

  • I couldn't test on a real iPhone on iOS 15.8 or an old Android WebView; the system tests only drive current Chrome. A short pass on real devices is the one thing left in the initiative's build notes.
  • GitHub Actions is disabled (you asked for local-only CI), so all checks below ran locally.

Test plan

  • test/integration/browser_floor_test.rb: the shim loads before the import map in all three layouts; the notice starts hidden; the CSP allows blob:.
  • test/javascript_floor_test.rb: no script uses features above the floor, and none touches storage directly.
  • test/system/browser_floor_test.rb: in Chrome the probe passes; with every storage call throwing, the cookie banner works and the map draws its places. The map assertion fails without the guard.
  • bin/rails test: 2464 runs, 0 failures. bin/rails test:system: 71 runs, 0 failures.
  • RuboCop and erb_lint clean; tabula validate 57 pages valid.
  • A pass on an iPhone at iOS 15.8 and an Android phone with an older WebView.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT

misabegovic and others added 3 commits October 14, 2026 11:25
The operator asked that everything about usput live in this repository.

- The Remotion project that renders the promo video moves in as promo/,
  without node_modules or the rendered video (`npm run render` rebuilds it);
  Docker ignores it and Tailwind's build is unchanged by it.
- Sources: the phone brain's usput pages and repository snapshots, the
  estate brain's three usput conversations of 2026-10-08, the operator's
  answers of today, and a marketer's advice on the site (Emir Glogić, The
  Simple, 2026-02-13), its text kept and his contact details left out, since
  the repository is public. The estate brain's own usput pages stay there:
  they summarise this wiki and sit beside private projects.
- Decisions: the phone brain's 2026-08-02 deferral of wider browser support,
  superseded today by supporting phones from iOS 15 and Android of about
  2019, as the operator chose.
- Initiatives: wider mobile browser support (decided, build next), a
  redesign of every traveller surface with Impeccable (proposed, with the
  advice as input), and the "bring your own agent" idea.
- How we work: everything about usput lives here, and merging is the
  operator's step on a protected main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT
Until now the interactive layer died below Safari 16.4 and Chrome 111: the
import map needs native support and Tailwind 4 needs cascade layers. The
operator asked that usput work on all devices and chose the iOS 15 floor.

- es-module-shims 2.8.4 is vendored and loaded, async, before the import map
  in every layout; the content security policy allows the blob: scripts it
  runs.
- Tailwind 4.1.18 to 4.3.3 (gem, Dockerfile CLI, package.json) for its
  fallbacks on older colour support.
- All 63 localStorage and 7 sessionStorage calls go through one guarded
  helper with an in-memory fallback. With storage refused, as private
  browsing can, the map drew no places and the cookie banner never showed;
  now both work.
- A browser below the floor (no cascade layers, or unable to parse Turbo's
  syntax) or without JavaScript sees a notice over the server-rendered
  pages, in Bosnian and English, styled inline.
- The floor comes from the code: Turbo's build needs Chrome 85, the CSS
  needs Chrome 99, so the floor is iOS 15.4, Chrome and WebView 99, Samsung
  Internet 18 and Firefox 115. Written in README.md and the decision.
- Tests: the shim loads before the import map in all three layouts; no
  script uses a feature above the floor or touches storage directly; in
  Chrome the probe passes and the app works with storage refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT
# Conflicts:
#	app/assets/builds/tailwind.css
#	package-lock.json
#	wiki/_views/by-kind.md
#	wiki/decisions/log.md
#	wiki/decisions/support-phones-from-ios-15.md
#	wiki/initiatives/wider-mobile-browser-support.md
#	wiki/state.md
@misabegovic
misabegovic deleted the branch main October 14, 2026 10:09
@misabegovic misabegovic reopened this Oct 14, 2026
@misabegovic
misabegovic changed the base branch from chore/bring-usput-home to main October 14, 2026 10:09
@misabegovic
misabegovic merged commit c3f739a into main Oct 14, 2026
@misabegovic
misabegovic deleted the feat/phones-from-ios-15 branch October 14, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant