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

Feature/mw 38 dashboard unread messages #212

Closed
wants to merge 6 commits into from

Conversation

libaumann
Copy link
Collaborator

@libaumann libaumann commented Jan 4, 2023

Fixes #38

Button now displays "You have (number of unread notifications) unread messages" on dashboard. When there are more than zero of those, the button is highlighted in a darker blue. When new notifications are added while user is on the page, page needs to be refreshed.

PR checklist

  • dev-branch has been merged into local branch to resolve conflicts
  • tests and linter have passed AFTER local merge
  • localization is supported (Guide)
  • another dev reviewed and approved
  • if feature-Branch: Teams PO has approved (show via e.g. screenshots/screencapture/live demo)

Screenshot 2023-01-04 at 19-12-45 Bookkeeper Blue

padding: 5px;
margin: 5px;
margin-bottom: 15px;
.subtitle {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Das sollte mit den neuen Stylesheets nicht mehr nötig sein, oder?

font-size: 16px;
spacing: auto spacing;
margin-bottom: 18px;
<% if user_signed_in? && @user.notifications.where(unread: true).size > 0 %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Der Check, ob der user signed in ist, sollte überflüssig sein, da nur auf das Dashboard zugegriffen werden kann, wenn man signed in ist.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

An der Stelle sind ohne zumindest immer Tests fehlgeschlagen, weil es user nicht kannte


<h3 class="subtitle box"><%= t 'views.dashboard.unread_messages' %></h3>
<% if user_signed_in? %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hier ist der Check auch überflüssig, oder?

@Noel-Bastubbe Noel-Bastubbe deleted the feature/mw-38-dashboard-unread-messages branch January 10, 2023 14:30
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.

Component - Dashboard: Unread Messages
2 participants