Skip to content

Keep the offline map error visible and gate the ready checklist on the map - #554

Merged
uhsear merged 4 commits into
mainfrom
fix/offline-map-error-state
Nov 23, 2026
Merged

uhsear merged 4 commits into
mainfrom
fix/offline-map-error-state

Conversation

@uhsear

@uhsear uhsear commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

The final emulator pass found that the offline map step failed silently.

  • Root cause: Picks unmounts the offline readiness card while downloadForOffline reloads the festival. The map step's status and message lived in the card hook's useState, so the remounted card showed the step as idle. A too-big archive and a 404 both ended with no message.
  • The mobile map outcome now lives in a module store (lib/offlineMapOutcome.ts). A saved file on disk always wins. Remove clears the outcome, and so does a later save from the map screen.
  • A failure other than free space now says "Couldn't save the map. Check your connection and try again." (OFFLINE_MAP_COPY.downloadFailed), on web and mobile.
  • The "Festival ready" checklist ticks offline only when the map is saved, if the festival has one (shared useFestivalReady, web and mobile).
  • Guest bug: the default loadProfiles dep in offlineReadinessStore called the authenticated profiles load for guests. The 401 replaced Picks with "Couldn't load your picks / Please log in". The dep now returns early with no user, the same gate selectFestival uses.
  • Two decorative AppPressable overlays on mobile set cards get focusable={false}. They were already accessible={false}.

JS-only: no native dependency and no app.json change, so OTA-safe.

Test plan

  • New shared, web and mobile tests. The checklist, web message and mobile stale-error tests were run against the old code and failed there.
  • shared, web and mobile typecheck, lint and test pass after merging main. Root typecheck, lint, knip and the api-types check pass.
  • On an Android emulator, using a local release build against a local backend:
    • A 300 GB archive shows "Not enough free space… (needs 322175 MB, 3962 MB free)".
    • A 404 shows the new sentence.
    • The checklist reads "not done yet".
    • A guest download keeps Picks and the guest picks on screen.

…ecklist on the map

The Picks screen unmounts the offline card while the download reloads the festival, so the map step's error and refusal message lived in a hook that was thrown away and the step came back as idle. Hold the last attempt outside React, and require the map step before the checklist marks offline done.
…ry render

An old error could resurface after Remove, and mapStateFor hit the file system on each render. Extract runMapDownload and removeOfflineMap so tests drive the real code paths.
… erroring Picks

A non-space map failure left Retry with no sentence. A guest's download called the
authenticated profiles load, which 401s and replaced the Picks screen with an error.
…d drop a stored map error once the map is saved
@uhsear
uhsear merged commit c8c1385 into main Nov 23, 2026
32 of 34 checks passed
@uhsear
uhsear deleted the fix/offline-map-error-state branch November 23, 2026 05:12
uhsear added a commit that referenced this pull request Nov 23, 2026
…555)

audit() is not awaited by the route, so a read right after the response can
miss the row. CI shard 3 failed on #554 with actor_type of undefined.
uhsear added a commit that referenced this pull request Nov 23, 2026
* Skip the session-only weather fetch in a guest's offline download

The weather route returns 401 for guests, so the Weather step errored on every
retry and the ready checklist (gated on every step since #554) never finished.

* Wait for the festival load before reporting a set deep link as gone

selectFestival sets currentFestivalId before the festival arrives, so a signed-in
user whose store was mid-load skipped the load and saw 'no longer available'.

* Keep the set deep link load check within the line width

* Show the offline download card to a signed-in user with no profile yet

The Festival ready checklist links to /picks, which rendered only an empty state
for a user who has not joined the festival, so the row led nowhere.

* Hide the set-times prompt once the festival is over

A finished festival with untimed sets kept asking guests to follow for set
times, while festival mode already said it was a wrap.

* Fold Ø, Æ and punctuation in lineup search and A-Z grouping

Typing 'orjan', 'aeon', 'dr strangelove' or 'illenium slander' found nothing, and
Ø and Æ acts filed under their own letters in the A-Z list.

* Let keyboard and mouse users expand the phone set sheet

The peeking sheet hid its overflow, so Tab moved focus to pick and reminder
controls below the fold and nothing scrolled. Focus inside the body now opens it
fully, and the drag handle is a button that toggles peek and full.

* Give the phone grid time labels room so 12:30a no longer clips

The 52px gutter left 31px for text once padding was taken out.

* Name each grid pick button after its set

A screen reader heard dozens of identical 'Must See' buttons.

* Show one time label on the festival mode Next card

When the next pick is on another day the countdown is already a weekday and
clock, and the card printed the clock again beside it. Web and mobile.

* Make the offline reminder copy true for festivals without an offline map

It promised to save the map and lineup, but a festival with no offline basemap
saves only the lineup.

* Name the map in the offline reminder only for festivals that save one

The previous copy fix dropped the map for every festival, but festivals with an
offline basemap do download it. Pick the copy from hasMap on web and mobile.

* Pin the clock in the set times banner test so it stops expiring

* Make the phone sheet handle a 44px touch target

* Expand the phone sheet on keyboard focus only, not on every tap

* Decide the Next card clock from the 12 hour rule in shared, not from label text

* Match search across punctuation and spacing so Jay Z finds Jay-Z

* Reset weather and picks readiness when a guest who downloaded offline signs in

* Give the desktop main nav links a 44px minimum height

* Stop the grid saying set times are not out yet once the festival is over

* Reset guest readiness from authStore to avoid the store import cycle

* Fix the grid test clock and cover the finished-festival empty state

* Give the reset-password focus check room under CI coverage

Focus lands one animation frame after the field re-enables; under coverage on
CI that took 1173 ms, past waitFor's 1 s default (#558 frontend-tests).
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