Skip to content
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

refactor(alert): adapt alert handling to upstream #836

Merged
merged 5 commits into from
Dec 4, 2024

Conversation

hbruch
Copy link

@hbruch hbruch commented Dec 4, 2024

This PR applies upstream changes regarding alerts handling and display.

Besides this, for TimeStore the upstream change to return the unix timestamp instead of moment has been ported.

@hbruch hbruch requested a review from andreashelms December 4, 2024 08:20
@@ -467,7 +439,7 @@ class RoutePageControlPanel extends React.Component {
<FormattedMessage id="route-guide" defaultMessage="Route guide" />
</h1>
</div>
{isOnDemandTaxi && <CallAgencyWarning route={route} />}
{route.type === 715 && <CallAgencyWarning route={route} />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should keep isOnDemandTaxi here to point out when this warning is displayed.

const isOnDemandTaxi = route.type === 715;

Copy link
Collaborator

@andreashelms andreashelms left a comment

Choose a reason for hiding this comment

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

Currently application crashes with error:

TypeError: context.getStore(...).getCurrentTime(...).unix is not a function at eval (IndexPage.js:691:73)

@hbruch
Copy link
Author

hbruch commented Dec 4, 2024

Thanks, there were indeed some changes missing...

@hbruch hbruch requested a review from andreashelms December 4, 2024 12:51
@hbruch hbruch force-pushed the alerts-upstream-merge branch from f092457 to 401cc5d Compare December 4, 2024 15:33
@hbruch hbruch merged commit fee6795 into next Dec 4, 2024
10 checks passed
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