feat(web): cap departures shown per stop at 4 - #25
Merged
Conversation
|
🚀 Preview deployed: https://preview-25.tablo.run |
Limit each stop card to at most 4 departures total (lead + rest) instead of 7. `max` now means the total count shown, not the row count after the lead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PXVQTYwcGPUZak9Jrr7bUC
i11v
force-pushed
the
claude/arriving-vehicles-limit-3sqirz
branch
from
July 13, 2026 19:51
5274859 to
b616b65
Compare
i11v
marked this pull request as ready for review
July 13, 2026 19:57
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.
Summary
Limits each stop card to at most 4 departures total (the lead row plus up to 3 more), down from the previous 7.
Changes
StopCard'smaxprop default changed from6to4.maxnow means the total number of departures shown (lead included), rather than the count of rows after the lead. The slice was changed fromlist.slice(1, max + 1)tolist.slice(1, max)accordingly, and a comment documents the new semantics.No other callers pass
maxexplicitly, so the redefinition is contained to the default behavior.🤖 Generated with Claude Code
Generated by Claude Code