Skip to content

feat(notifications): add discussions notifications#915

Open
nicolaskempf57 wants to merge 5 commits intomainfrom
feat_add_discussions_notification
Open

feat(notifications): add discussions notifications#915
nicolaskempf57 wants to merge 5 commits intomainfrom
feat_add_discussions_notification

Conversation

@nicolaskempf57
Copy link
Contributor

No description provided.

Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

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

Nice! 👏

{{ title }}
</p>
<p
v-if="notification.details.status === 'new_comment'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we also display from who on new_discussion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was not shown on new_discussion on Figma but we can

Copy link
Contributor

Choose a reason for hiding this comment

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

:user="notification.details.discussion.user"
:with-link="false"
/>
<OrganizationOwner
Copy link
Contributor

Choose a reason for hiding this comment

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

Testing at the moment, seems like the notification shows the user and not the organization even when "answering as" an organization, it may come from the notification itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my bad, it should be about the comment here and not the discussion

@click="markAsRead(notification)"
>
<template v-if="notification.details.status === 'new_comment'">
{{ getLastComment(notification.details.discussion).content }}
Copy link
Contributor

Choose a reason for hiding this comment

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

It's also a limit from the notification itself, but I think the notification may not be about the last comment. Indeed, if we have 3 notifications on a discussion, we'll show the last comment here for every notification.
Maybe we could have the comment id in the notification backend (now that we have an id)?

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