Skip to content

Added avvisi tab for Trentino trasporti routes#7

Open
mattiacoll wants to merge 9 commits intomatteocontrini:mainfrom
mattiacoll:Avvisi
Open

Added avvisi tab for Trentino trasporti routes#7
mattiacoll wants to merge 9 commits intomatteocontrini:mainfrom
mattiacoll:Avvisi

Conversation

@mattiacoll
Copy link
Contributor

Issue

In the past few days there were disruptions to the routes due to either strikes or sporting events in the city, for the website it's not entirely if my route will have any disruption or not.

Proposed solution

The /routes endpoint exposes a news section for each route providing additional information regarding any disruption to that route. Therefore i tired adding a section right below the stop to show the news related to the lines for that stop.

If there are no news to be shown the button doesn't appear (like now).
I haven't checked in the trains api if there is something similar but i reckon this functionality could also be extended to that part.

Any feedback is more than welcome.

Attached you can see the preview

Closed Open
avvisi avvisi-open

@mattiacoll
Copy link
Contributor Author

Upon further investigation on the trains side, there seems to be an alert in the footer of the page.

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