Allow (un)following someone in the user popover
Compare changes
- Peter Hegman authored
spec/frontend/api/user_api_spec.js
0 → 100644
+ 50
− 0
This MR is a suggestion to make it possible for users to follow and unfollow users via the user popover on notes, issues, and more. This makes it easier to follow people and reduces the friction of having to go to the user's profile. It also allows you to quickly determine whether you are following someone.
The (un)follow actions are optimistically atomic and will change instantly after the user clicks on the button. If an error occurs, the button is changed back.
Inspired by #346623 and Twitter's user popover.
Before | Follow | Unfollow | Signed out or same user |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
bin/rails c
Feature.enable(:follow_in_user_popover)
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
/closes #353362 (closed)