Skip to content

feat(web): cap departures shown per stop at 4 - #25

Merged
i11v merged 1 commit into
mainfrom
claude/arriving-vehicles-limit-3sqirz
Jul 13, 2026
Merged

feat(web): cap departures shown per stop at 4#25
i11v merged 1 commit into
mainfrom
claude/arriving-vehicles-limit-3sqirz

Conversation

@i11v

@i11v i11v commented Jun 29, 2026

Copy link
Copy Markdown
Owner

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's max prop default changed from 6 to 4.
  • max now means the total number of departures shown (lead included), rather than the count of rows after the lead. The slice was changed from list.slice(1, max + 1) to list.slice(1, max) accordingly, and a comment documents the new semantics.

No other callers pass max explicitly, so the redefinition is contained to the default behavior.

🤖 Generated with Claude Code


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: https://preview-25.tablo.run
fallback: https://tablo-pr-25.i11v.workers.dev

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
i11v force-pushed the claude/arriving-vehicles-limit-3sqirz branch from 5274859 to b616b65 Compare July 13, 2026 19:51
@i11v
i11v marked this pull request as ready for review July 13, 2026 19:57
@i11v
i11v merged commit 134128b into main Jul 13, 2026
2 checks passed
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.

2 participants