TaM Montpellier integration: proposal to make the „Departures“ widget more readable

Hi @Will_71,

Thanks for the TaM integration!

I found the « TaM Departures » widget a bit hard to read at a glance. Each line chained 4 to 6 numbers with a single unit at the end, mixed with times. For example 1 · 15 · 31 · 46 min · 11:07. And a next-day entry just appeared as 04:50: seen at 10:07 AM, one could think it was already past.

So I opened a PR: #2

What it changes:

Before After
1 · 15 · 31 · 46 min · 11:07 1 min · 15 min
Approaching · 15 · 30 · 45 min Approaching · 15 min
9 min · canceled 23:23 · 23:53 9 min · canceled 23:23
04:50 (seen at 10:04) tomorrow 04:50
  • The next two departures for each line, like on the screens at the stops, each with its unit. Beyond one hour of waiting, the time is displayed.
  • The day when the departure is on another day: « tomorrow 04:50 », then the day of the week beyond. A night bus at 00:30 seen at 22:44 remains « 00:30 », since it’s the same service day.
  • Canceled trips are still displayed, and the line still turns orange.

No identifiers or settings change, so nothing to reconfigure for users. Tests, ESLint, and Prettier pass. The docs for the four languages are up to date, and the widget images have been regenerated.

If you prefer three departures instead of two, or another format, let me know and I’ll adapt. It’s a constant to change.

Thanks again for the work on this integration :folded_hands:

Okay, I’ll check it out tonight