Skip to content

Kojiro/today dinings tile#568

Draft
KojiroTsugaru wants to merge 4 commits into
masterfrom
kojiro/today-dinings-tile
Draft

Kojiro/today dinings tile#568
KojiroTsugaru wants to merge 4 commits into
masterfrom
kojiro/today-dinings-tile

Conversation

@KojiroTsugaru

@KojiroTsugaru KojiroTsugaru commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a "Nearest Dining Halls" tile to the Today view showing the 3 closest halls with open/closed status and distance.
  • Tapping the tile switches to the Home tab, opens the drawer to .large, and selects the Dining segment.
  • Lifts HomeView's segment index into HomeViewModel so it can be driven externally.

Issue: #524

demo

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-04-13.at.21.57.48.mov

KojiroTsugaru and others added 2 commits April 13, 2026 19:57
Surfaces the three closest dining halls with open/closed status and
distance, sorted via the existing HasLocation.distanceToUser helper.
Tapping the tile switches to the Home tab and opens the dining drawer
segment, which required lifting HomeView's segment index into
HomeViewModel so it can be set programmatically from outside.
Dispatches the .large assignment on the next runloop tick so it lands
after HomeView's .onChange resets drawerViewState to .medium.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@KojiroTsugaru KojiroTsugaru self-assigned this Apr 14, 2026
KojiroTsugaru and others added 2 commits April 13, 2026 21:31
Falls back to an open-first ordering only when none of the three
nearest halls are currently open, so the tile still surfaces something
actionable late at night.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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