Repository navigation
Work on phones from iOS 15 and Android browsers of about 2019 - #190
Merged
Merged
Conversation
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
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-shims2.8.4 (MIT, vendored) loads the import map where the browser can't, in all three layouts. The CSP allows theblob:scripts it runs.package.json, for its fallbacks (139@supportscolour fallbacks in the build).localStorageand 7sessionStoragecalls go throughservices/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.README.mdandwiki/decisions/support-phones-from-ios-15.md.Note for review
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 allowsblob:.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.tabula validate57 pages valid.🤖 Generated with Claude Code
https://claude.ai/code/session_01JEmikXtNoH7wAg6veTjbyT