Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/watchos10 redesign #19

Merged
merged 56 commits into from
Mar 24, 2024
Merged

Feature/watchos10 redesign #19

merged 56 commits into from
Mar 24, 2024

Conversation

roland9
Copy link
Owner

@roland9 roland9 commented Mar 24, 2024

New architecture: NavigationSplitView

  • revised AppModel: with state & mode, selectedStation
  • handle Favourites and StationDirection with SwiftData
  • new StationView and StationTimesView
  • highlight active selection in side bar
  • handle disabled or denied location access: reflect in Nearby side view
  • While loading data from API: show cached trains from previous call
  • complication icon and background
1 - Phibs 2 - Museum 3 - Favourites 4 - Nearby

Refactor and Housekeeping

  • rework location and timer
  • add AppStore metadata files
  • don’t run location stuff when running unit tests
  • use swift-format for LuasKit test target

sidebar view
and detail stationView
* add FavouritesSidebarView and FavouriteStation
* add Favourites managed by SwiftData
* added: find station by shortCode
WIP:  more cleanup, is it good design to not pass in didSelect closure, but access modelContext?
* add latestLocation to AppModel
* extract Coordinator LocationDelegate
* extract CoreLocation extension
* refactor timer
* don’t use didSet anymore for appState changes (to promptLocationAuth), use Combine and sink
* don’t need appModel.isStationsModalPresented anymore (was to avoid that stationsModel getting closed when timer fired)
* add closest & closest other line station
* select specific from green / red line
* cleanup firing timer
(had issues with Xcode locking up)
* pending: how to toggle UI
* remove location from several states (TBD)
* fix flow bugs when location not required
* add more previews

next up:
* clean up formatting - centre multiple trains
* add message in second screen
* fix logging of minutes
* fix timer getting fired immediately after app start
* fix getting 3 location updates which cause wasted API calls
* fix .onChange deprecation warning
* fix location flow
(still doesn’t work though?)
* tweak layout of line row (horizontal)
* hide Map button (for now)
fix view pushes off station name: fornow, on one screen

limit how many trains shown, cut off rest

handle simple and doubleTimetable view differently
wrap previews in DEBUG to fix non-DEBUG build
not sure when I changed that??
WIP different resolutions - need more testing
@roland9 roland9 merged commit e9bc575 into develop Mar 24, 2024
1 check failed
@roland9 roland9 deleted the feature/watchos10_redesign branch March 24, 2024 15:52
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