Skip to content

Attach an agencyName to each monitored trip alert #1450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Aug 6, 2025

Description

Requires ibi-group/otp-middleware#334.

This PR tweaks the alerts display for a monitored trip, so that the applicable agency name is shown in the alerts link, similar to what is currently happening with the alerts in the itinerary results.

PR Checklist

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?
Before After
before screenshot after screenshot

{alerts.map((alert) => (
<AlertsBody
agencyName={alert.agencyName}
alerts={[alert]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are there any side effects caused by going from one AlertsBody to multiple for each alert?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe slight padding/offset differences from sequencing multiple AlertsBody instead of one. AlertsBody itself does not perform any side effects.

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