Skip to content

Open the map fitted to the monitored route (v0.7.1) - #7

Merged
aniceberg merged 1 commit into
mainfrom
fit-map-to-route
Nov 4, 2026
Merged

aniceberg merged 1 commit into
mainfrom
fit-map-to-route

Conversation

@aniceberg

Copy link
Copy Markdown
Owner

The map's first view was too zoomed out, and on desktop the map ran off the bottom of the screen.

  • Fits the first view to the usual route, today's trip, the stop and the checkpoints. The live bus only counts until a trip is recorded, so a bus parked at the depot no longer stretches the view.
  • Uses finer zoom steps and pixel padding, and refits on resize until the user moves the map.
  • Keeps the panel to the window height on desktop, so the checkpoint list scrolls in its own column.

Tested on a real profile's data in a running Home Assistant, by applying the new fit and CSS to the open panel, at a narrow pane and at 1440x900. The installed module itself hasn't been run in Home Assistant yet.

🤖 Generated with Claude Code

- Fit the first view to the usual route, today's trip, the stop and the
  checkpoints. The live bus only counts until a trip is recorded, so a bus
  parked at the depot no longer stretches the view; rare detours don't either.
- Use finer zoom steps and pixel padding so the route fills the map, and
  refit if the panel changes size until the user moves the map.
- Keep the panel to the window height on desktop. It used to grow with the
  checkpoint list, running the map off-screen and off-centring the route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T13:46:25.954814Z cc93548 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aniceberg
aniceberg merged commit 934af79 into main Nov 4, 2026
6 checks passed
@aniceberg
aniceberg deleted the fit-map-to-route branch November 4, 2026 13:45
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