Add Vasttrafik widget with translations and styling #1065

Merged
a22erigr merged 7 commits from vasttrafik-clean into team_2_week_7 2026-05-25 13:48:17 +00:00
Collaborator

Vasttrafik Card Implementation

This PR adds a new Vasttrafik dashboard card with support for displaying departures and arrivals from Skövde Resecentrum.

Added

  • Vasttrafik frontend widget/card
  • Vasttrafik backend service and API integration
  • Dashboard integration
  • Tooltip support
  • Swedish and English translations
  • Styling improvements to better match existing dashboard cards
## Vasttrafik Card Implementation This PR adds a new Vasttrafik dashboard card with support for displaying departures and arrivals from Skövde Resecentrum. ### Added * Vasttrafik frontend widget/card * Vasttrafik backend service and API integration * Dashboard integration * Tooltip support * Swedish and English translations * Styling improvements to better match existing dashboard cards
Collaborator

Can review this, assign me

Can review this, assign me
b24idalu requested changes 2026-05-21 08:41:54 +00:00
Dismissed
b24idalu left a comment
Collaborator

Review on #1065

Whats been done

Implemented västtrafikview

Tested on Windows using Chrome & Firefox

  • App starts
    • Card is appearing in addcard modal
    • Translation works
    • Getting a 404 error on departure and arrivals.

Inspected following files

  • Per prior review (#958), code looks good and is up to standard.

What needs to be done

  • The styling does not match how the other cards look, they have a title and under that a line which is not presented in the västtrafik card.image
  • The Docker is not building since it is not added to the rebuild script, causing the 404 error.
  • Could add an icon for the view in the addcardmodal.
  • Buttons are not matching the theme/mode. They also "disappear" when they are not selected (become white with white text in darkmode)
  • "Skövde resecentrum" disappears in darkmode because the text is too dark.

Conclusion

  • Is not ready for merge yet
  • Should parking be changed to travel?
# Review on #1065 ## Whats been done Implemented västtrafikview ### Tested on Windows using Chrome & Firefox + App starts + Card is appearing in addcard modal + Translation works + Getting a 404 error on departure and arrivals. ### Inspected following files + Per prior review (#958), code looks good and is up to standard. ## What needs to be done - The styling does not match how the other cards look, they have a title and under that a line which is not presented in the västtrafik card.![image](/attachments/8cf46738-ed20-49d1-9db8-e862e237280c) - The Docker is not building since it is not added to the rebuild script, causing the 404 error. - Could add an icon for the view in the addcardmodal. - Buttons are not matching the theme/mode. They also "disappear" when they are not selected (become white with white text in darkmode) - "Skövde resecentrum" disappears in darkmode because the text is too dark. ## Conclusion + Is not ready for merge yet + Should parking be changed to travel?
b24idalu requested changes 2026-05-22 06:48:36 +00:00
Dismissed
b24idalu left a comment
Collaborator

Review on #1065

Whats been done

Made västtraffik card work

Tested on Windows using Chrome & Firefox

  • App starts
    • Data is being displayed and everything is looking nice

Inspected following files

  • All files follow code standard and are well commented

What needs to be done

  • Card is a bit too small, it does not show all departures/arrivals in its original state
  • The buttons for departures/arrivals clash with darkmode, recommended to use theme colors to make them stand out in every theme

Conclusion

  • Almost ready to merge, just the card size and button colors left to fix
# Review on #1065 ## Whats been done Made västtraffik card work ### Tested on Windows using Chrome & Firefox + App starts + Data is being displayed and everything is looking nice ### Inspected following files + All files follow code standard and are well commented ## What needs to be done + Card is a bit too small, it does not show all departures/arrivals in its original state + The buttons for departures/arrivals clash with darkmode, recommended to use theme colors to make them stand out in every theme ## Conclusion + Almost ready to merge, just the card size and button colors left to fix
Author
Collaborator

Thanks for the review! I’ll fix those issues right away.

Thanks for the review! I’ll fix those issues right away.
Author
Collaborator

Jag ska bara fixa konflikten

Jag ska bara fixa konflikten
a22erigr force-pushed vasttrafik-clean from af897b1201 to 3bcce53f81 2026-05-25 12:13:45 +00:00 Compare
Collaborator

bild

![bild](/attachments/331a262e-6d7e-40ff-a1fb-d5417366ed8c)
26 KiB
b24idalu approved these changes 2026-05-25 12:45:45 +00:00
Dismissed
b24idalu left a comment
Collaborator

Looks good, everything compiles and displays. Is ready to merge!
Note that it may be good to change the card size at some point to the size of for example schedule, so that all information can be displayed immediately.

Looks good, everything compiles and displays. Is ready to merge! Note that it may be good to change the card size at some point to the size of for example schedule, so that all information can be displayed immediately.
b24idalu requested changes 2026-05-25 12:56:02 +00:00
Dismissed
b24idalu left a comment
Collaborator

One missing feature noted, waiting on a new commit

One missing feature noted, waiting on a new commit
b24idalu approved these changes 2026-05-25 13:43:32 +00:00
b24idalu left a comment
Collaborator

Extra features did not get managed to get pushed, but solution works and looks good.

Extra features included:

  • Displaying buses departures/arrivals.
  • Different card size since current one does not display all information without one having to scroll
  • Button color change since current blends in in darkmode
Extra features did not get managed to get pushed, but solution works and looks good. Extra features included: - Displaying buses departures/arrivals. - Different card size since current one does not display all information without one having to scroll - Button color change since current blends in in darkmode
Collaborator

A new issue will be crated to revolve the missing features

A new issue will be crated to revolve the missing features
a22erigr merged commit 323168d445 into team_2_week_7 2026-05-25 13:48:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!1065
No description provided.