Skip to content

Show "No service" and the right 3rd train on TfL boards - #6

Merged
Woll78 merged 1 commit into
masterfrom
tfl-board-fixes
Oct 12, 2026
Merged

Woll78 merged 1 commit into
masterfrom
tfl-board-fixes

Conversation

@Woll78

@Woll78 Woll78 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes two TfL Tube board display bugs. 1 commit; 284 tests passing.

  • No trains: the board was left blank instead of showing "No service" like the other boards. (A failed fetch still shows "Data unavailable", so the two cases look different.)
  • Exactly 3 trains: the bottom row showed the 2nd train again, labelled "3". It now shows the 3rd train.

Tests in test/test_tfl_tube_view_model.py cover both cases, plus a check that trains are shown in arrival order.

With no trains the TfL board was left blank instead of showing "No
service" like the other boards. With exactly three trains the bottom
row showed the 2nd train again, labelled "3".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Woll78
Woll78 merged commit 78d70ed into master Oct 12, 2026
2 checks passed
@Woll78
Woll78 deleted the tfl-board-fixes branch October 12, 2026 15:31
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