codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.
https://mapletestimony.org
MIT License
44 stars 114 forks source link

Add Follow Button for Individual Users #1592

Open Mephistic opened 1 month ago

Mephistic commented 1 month ago

Problem

As part of our social layer work, we want to give users the ability to "follow" Organizations and other Users so they can be notified when orgs/users they're interested in publish new testimony. We currently have the follow button set up (behind a feature flag) for Organizations, but do not have a corresponding button for regular Users.

We would to add the "Follow" buttons that currently exist for Organizations to regular User content as well.

For now, let's say we'll continue to use the same "followOrg"/"unfollowOrg" firebase functions for users as well (since orgs are just a type of user) - we'll check in with Arun to see how we want to handle this going forward (might make sense to rename the firebase function if we're going to support more kinds of user).

Success Criteria

Additional Links

simk209 commented 5 days ago

I'm going to hold off on this until Laura does some work on issue 1592 to lower the risk we run into weird issues due to working on it simultaneously.