Skip to content

feat: Live Icon for Departures#2948

Merged
deanshi merged 1 commit intomainfrom
deanshi/live_icon_lcd_screens
Mar 26, 2026
Merged

feat: Live Icon for Departures#2948
deanshi merged 1 commit intomainfrom
deanshi/live_icon_lcd_screens

Conversation

@deanshi
Copy link
Copy Markdown
Contributor

@deanshi deanshi commented Mar 18, 2026

Asana task: Implement "live" icon on LCD Screen departures

Description

  • Live Icon for departures added next to the time
  • Crowding icon resized to allow for both icons to fit in cases where we have them
  • Increased the departure time div size for departures, decreased the headsign size on both LCD and DUP screens
  • Added shortenedHeadsign logic to LCD for handling long timestamped cases
Screenshot 2026-03-18 at 3 17 29 PM Screenshot 2026-03-18 at 3 17 35 PM Screenshot 2026-03-18 at 3 19 38 PM Screenshot 2026-03-23 at 11 45 07 AM Screenshot 2026-03-23 at 11 45 11 AM Screenshot 2026-03-18 at 3 21 14 PM Screenshot 2026-03-23 at 11 45 25 AM Screenshot 2026-03-23 at 11 45 29 AM

@deanshi deanshi marked this pull request as ready for review March 20, 2026 15:06
@deanshi deanshi requested a review from a team as a code owner March 20, 2026 15:06
@digitalcora
Copy link
Copy Markdown
Contributor

@deanshi Your DUP screenshot shows "real-time" ferry departures... but we don't have real-time tracking of ferries at all (not yet anyway). So I think something's off with the implementation 😅

@deanshi
Copy link
Copy Markdown
Contributor Author

deanshi commented Mar 23, 2026

@deanshi Your DUP screenshot shows "real-time" ferry departures... but we don't have real-time tracking of ferries at all (not yet anyway). So I think something's off with the implementation 😅

Updated the logic to exclude ferries (and also fix scheduled rail departures that do not have a prediction) and updated the screenshots!


.departure-time__timestamp {
display: inline-block;
text-decoration: inherit;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

@deanshi deanshi Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to some Stack Overflow and some docs, text-decoration doesn't get inherited when we set display: inline-block without explicitly defining the inherit here for the strikethrough text. I think if we wanted to, we could adjust how some of this CSS is structured but I figured this would be the simplest way.

Departures.serialize_times_with_crowding([departure], bus_shelter_screen, now)
end

test "is not live data for scheduled ferry", %{dup_screen: screen} do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case seems superfluous now as it's exercising the same code path as the one just below.

- Live Icon for departures added next to the time
- Crowding icon resized to allow for both icons to fit in cases where we
  have them
- Increased the departure time div size for departures, decreased the headsign
  size on both LCD and DUP screens
- Do not show the live icon for ferry departures and scheduled rail
  departures
@deanshi deanshi force-pushed the deanshi/live_icon_lcd_screens branch from ca45c38 to e48f0e1 Compare March 26, 2026 21:17
@deanshi deanshi merged commit 3d11f35 into main Mar 26, 2026
13 checks passed
@deanshi deanshi deleted the deanshi/live_icon_lcd_screens branch March 26, 2026 21:25
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