Trey T 2e5cf6b9b3 History: filter auto-dismiss, toolbar map access, aircraft empty state, CSV enrichment
Four fixes the user called out plus the lookup-during-import idea
they asked about:

1. Filter sheet auto-dismisses when a year is toggled ON. Years are
   the user's primary "scope this whole screen" filter — committing
   one is a commitment, so close the sheet so the underlying view
   (especially the map animation) can react immediately. Toggling
   OFF or picking airline/airport/type doesn't dismiss — those are
   refinement actions.

2. When filtering on the History tab, the hero deck (with the Map /
   Aircraft / Year-in-Review quick links) hides — leaving no way
   to reach those screens. Re-added them to the + circle toolbar
   menu under an "Explore" section, separate from the "Add" section.
   Always reachable now regardless of filter state.

3. Aircraft Stats screen looked blank when no flights had an
   aircraftType (CSV imports don't include type). Now shows an
   explanatory empty state with three concrete paths to populate
   the data: live tap, manual fill-in, or new manual entries.

4. CSV import now enriches each row with the scheduled aircraft
   type via routeExplorer.searchSchedule(carrier+flight#+date).
   Takes the first result that matches the route's dep/arr (or any
   match for that flight#/day if route doesn't match), pulls
   equipmentIata as the aircraft type. Best-effort: old flights
   without schedule data, unmappable carriers, or network failures
   are silently skipped — the flight still saves without a type.

   Preview screen has a "Look up aircraft type" toggle (on by
   default). Importing-phase shows live count of enriched rows.
   ImportCSVView now takes a RouteExplorerClient; HistoryView
   passes the existing instance.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 18:43:19 -05:00
2026-04-08 15:01:07 -05:00
2026-04-08 15:01:07 -05:00
S
Description
No description provided
9.7 MiB
Languages
Swift 57.9%
HTML 33.9%
JavaScript 4.5%
Python 3.5%
Shell 0.2%