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

add notification menu to header #111

Merged
merged 5 commits into from
Dec 12, 2024
Merged

Conversation

BrandonSharratt
Copy link
Collaborator

*Issue:*bcgov/entity#24636

Description of changes:

  • Added Notification bar to header, on xl viewpoint and above it shows the word notifications, smaller and it shows just the bell (this matches the existing header)
  • Added api call to get the number of notifications
  • Used translations to change what the text is in the menu based on the number of notifications (again matching current functionality)
  • If a notification exists it links you to the team page as it does currently
  • Otherwise it says no notifications
  • Added ability for menu to have a sublabel to mimic the existing menu

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

@bcgov bcgov deleted a comment from bcregistry-sre Dec 11, 2024
@BrandonSharratt
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-111-htmvkuct.web.app

@severinbeauvais
Copy link
Collaborator

Broken unit test?

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Approved but please ensure there's another ticket for What's New, and please fix the broken unit test before you merge.

@BrandonSharratt
Copy link
Collaborator Author

/gcbrun

Yes I was working on the unit test a11y didn't like the header without the aria-label

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-dashboard-dev--pr-111-htmvkuct.web.app

@BrandonSharratt BrandonSharratt merged commit a3d0c6d into bcgov:main Dec 12, 2024
6 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.

4 participants