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

Improve blocked alert #1324

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Improve blocked alert #1324

merged 1 commit into from
Jan 10, 2024

Conversation

Eddasol
Copy link
Contributor

@Eddasol Eddasol commented Jan 9, 2024

  • Moved to alertContext such that the banner will be updated regardless of viewed paged
  • Removed setAlert from dependency in useEffect to fix warning (see linked issue)
  • Only call setAlert when blockedRobotNames are changed such that the banner can be dismissed. Will reappear if changes to which robots are blocked or if page is refreshed
  • Updated banner to display alternative text if more than on robot is blocked

@Eddasol Eddasol added bug Something isn't working frontend Frontend related functionality labels Jan 9, 2024
@Eddasol Eddasol self-assigned this Jan 9, 2024
@Eddasol Eddasol linked an issue Jan 9, 2024 that may be closed by this pull request
Copy link
Contributor

@UsamaEquinorAFK UsamaEquinorAFK left a comment

Choose a reason for hiding this comment

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

tested - lgtm. Just look at that one comment.

@Eddasol Eddasol merged commit 50e380d into equinor:main Jan 10, 2024
8 checks passed
@Eddasol Eddasol deleted the blocked-alert branch January 10, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Frontend related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with blocked alert
2 participants