Repository navigation
Conversation
… after an update `TKUITripSegmentsView` re-applies its configuration when its size changes, e.g., on rotation, but held on to the segments themselves. A real-time update with new template hash codes deletes those segments' references, after which they return defaults, so every segment showed as non-transit with "1" minute. It now captures what it shows when configuring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trip overview's title was only configured when creating the card, so it kept the initial times, and segments that a real-time update could replace. It now follows the same updates as the rest of the card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ges templates The trip overview's rows were identified by their segment's template hash code. A real-time update with new templates hence gave every row a new identity, which the table animated as deleting all rows and inserting new ones. Rows are now identified by their segment's position, which `TKSegment` now captures, as an update can delete the reference it used to read it from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Written by Claude on behalf of Adrian. Suggested squash-merge message: |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…t changes Where the segments view gets its width from its content, as in the trip overview's title, it stopped measuring at the first segment that didn't fit its initial size, and didn't ask for more when configured again with wider content, e.g., a real-time departure. It then showed fewer details than fit, down to only icons. It now measures everything, rounded up to whole points, and invalidates its intrinsic size when that changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trip overview only refreshed its map when showing a different trip or once the services' content was fetched, so departure times on the map stayed as they were then. Real-time updates can also replace the segments that the map's annotations are. The map now refreshes with every real-time update, too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… updates The results only rebuilt when their trip groups changed, or when something posted `.TKUIUpdatedRealTimeData`, which neither the results' own nor the trip overview's real-time updates do. These change trips in place, so rows showed the new times in the old order. The results now also rebuild when the request's trips change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Otherwise a narrow "1" can be what lets one trip show its details while the next one in the list drops them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fersagui
approved these changes
Dec 4, 2026
fersagui
left a comment
Member
There was a problem hiding this comment.
Reviewed with AI help and tested on the simulator.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a number of glitches for the routing results and trip overview cards, encountered during testing:
The header shows "walk 1 > bus 1 > walk 1" (and doesn't update with real-time data). Regression fix for an issue caused by #446,
TKUITripSegmentsViewre-applies its configuration whenever its size changes, e.g., on rotation, but held on to theTKSegments it was configured with. Once their references are deleted, those segments quietly return defaults: no service colour or fixed departure time, so the bus counts as non-transit, and both times fall back to "now", so every leg shows "1" minute. The view now captures what it shows when configuring. Separately, the overview's title was only configured when creating the card. It now follows the same updates as the rest of the card, so its times and segments stay current, including real-time times.The header drops details it has room for. The title's segments view gets its width from its content, but it stopped measuring at the first segment that overflowed its initial (nib) width, and it never asked for more when configured again. So the header hid walking distances it had room for, and once real-time made the departure pill wider, it fell back to icons only. It now measures everything, rounded up to whole points as layout snaps to pixels, and invalidates its intrinsic size when that changes.
Rows jump during real-time update. The trip overview's rows were identified by their segment's template hash code. With new templates every row got a new identity, so the table animated it as "delete all rows, insert new ones", with collapsed and overlapping rows for a moment. Rows are now identified by the segment's position.
TKSegment.indexis now captured when building the segment, liketemplateHashCode: reading it live from the deleted reference returns 0 for every old row, which makes the diff throwduplicateItem.The map's departure times don't update with real-time data. The overview only refreshed its map when showing a different trip, or once the services' content had been fetched, so the map's semaphores kept the times from then while the list moved on. It now also refreshes with every real-time update, which also replaces annotations whose segments an update replaced. The view model takes the real-time stream as an optional parameter, so tests can feed it updates.
The results list can show trips out of order. The results only rebuilt their sections, which sort a group's trips by time, when the trip groups changed or when something posted
.TKUIUpdatedRealTimeData. Real-time updates change trips in place and post nothing, so rows showed the new times in the old order, e.g., a delayed 14:00 departure listed above a 13:55 one. The results now also rebuild when the request's trips change, whichever update changed them.TKUITripSegmentsViewSizingTestcovers the sizing,TKUIRoutingResultsRealTimeTestthe results' rebuilding.TKUITripRealTimeUpdateTestparses a trip, updates it from the same response with every hash code shifted, and checks both. Each test fails onmainfor the reported reason.Manual testing
🤖 Generated with Claude Code