Skip to content

Conversation

Zhao-Andy
Copy link
Contributor

@Zhao-Andy Zhao-Andy commented Feb 7, 2019

What type of PR is this? (check all applicable)

  • Feature

Description

This adds notifications for organizations! 🎉

Implementation details:

  • Anyone who is a member of the organization can view the org's notifications.
  • Any org member who views the org notifications will mark them as read.
  • The routes are: /notifications/org/:org_id and /notifications/comments/:org_id. This keeps it flexible for people who belong to multiple orgs.
  • There is no filter for posts because orgs can't follow people (and therefore cannot receive notifications for new posts).
  • Orgs can receive new comment and reaction notifications on their org posts, as well as notifications for new followers.
  • Org notifications are not counted in the bell icon.
  • Notifications can belong to either a user or an organization. One or the other, not both. I could add a database constraint but that would require some custom SQL. Not sure if it's completely necessary.

One feature I forgot -- I remembered just now while writing is -- is the ability for orgs to send a new post notification to their followers. I can add this in if we want. Don't think it would take too much time. Just added this 👍

Related Tickets & Documents

Resolves #1222

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Mobile View

Mobile View

Desktop View

Desktop View

[optional] What gif best describes this PR or how it makes you feel?

Tada!

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Feb 7, 2019
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 25, 2019
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 25, 2019
@benhalpern benhalpern merged commit 5ace9a5 into forem:master Feb 25, 2019
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: unreviewed bot applied label for PR's with no review labels Feb 25, 2019
Glennmen added a commit to Glennmen/dev.to that referenced this pull request Feb 26, 2019
* master: (31 commits)
  Fix typo in badge show page and fix unrelated badge missing word (forem#1899)
  Add additional streak badge rewarding (forem#1896)
  Organization Notifications (forem#1762)
  Fix linting issues in app/views/notifications (forem#1894) [ci skip]
  Fix linting issues in app/views/organizations (forem#1895)
  Fix linting issues in app/views/admin (forem#1871) [ci skip]
  Fix linting issues in app/views/internal (forem#1882) [ci skip]
  Fix linting issues for app/views/internal/articles (forem#1873)
  Fix linting issues in app/views/mailers (forem#1889) [ci skip]
  Fix linting issues in app/views/layouts (forem#1884) [ci skip]
  Fix linting issues in app/views/fields (forem#1862) [ci skip]
  Disable useless assignment linting in views (forem#1886) [ci skip]
  Fix linting issues in app/views/giveaways (forem#1863)
  Fix linting issues in app/views/events (forem#1860) [ci skip]
  Fix linting issues in app/views/devise (forem#1858) [ci skip]
  Fix linting issues in app/views/comments (forem#1853) [ci skip]
  Fix linting issues in app/views/email_subscriptions (forem#1859) [ci skip]
  Fix linting issues in app/views/feedback_messages (forem#1861)
  Fix linting issues in app/views/chat_channels (forem#1852) [ci skip]
  Fix linting issues in app/views/blocks (forem#1851) [ci skip]
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants