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 badge for unread messages #437

Merged
merged 4 commits into from
Oct 6, 2023
Merged

Conversation

rioredwards
Copy link
Contributor

CONCISE description of PR (PR Title)

Add a badge for the inbox icon in the navbar that displays when the user has unread messages (mobile & desktop).


This PR:

Resolves #427 (#427)


The files this PR effects:

Components

NavMenu.jsx (Mobile)
NavbarDesktop.jsx (Desktop)

Other Files

MessageContext.jsx


Screenshots (if applicable):

Add any screenshots/videos here.
Code-for-PDX-Screenshot-Message-Notifications-(Desktop)
Code-for-PDX-Screenshot-Message-Notifications-(Mobile)


Future Steps/PRs Needed to Finish This Work (optional):

Small addition: An indicator for unread emails could also be displayed in the "inbox" tab within the /messages page. This tab could just display the number of unread emails in parentheses. This is how Gmail does it as pictured in the following screenshot:

Code-for-PDX-Screenshot-Gmail-Example

This would be a very simple addition and I would be happy to implement it, if needed!

Copy link
Contributor

@timbot1789 timbot1789 left a comment

Choose a reason for hiding this comment

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

Approved with one suggestion. Nice work!

@rioredwards rioredwards merged commit 486fd5a into Development Oct 6, 2023
2 of 3 checks passed
@rioredwards rioredwards deleted the 427/add-message-icon-badges branch October 6, 2023 04:05
@leekahung
Copy link
Contributor

There seems to be some failed checks before merger happened. If it's just the lint, think someone could open a PR to fix it.

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.

3 participants