-
Notifications
You must be signed in to change notification settings - Fork 21
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
Follow+Notes: Implement Grant Followers modal component #3407
Comments
@caitlinwinner I took the liberty of prescribing behavior for paginating followers within the modal:
If you think that the described behavior sounds good, can we get update the designs accordingly? Otherwise we can discuss! |
@caitlinwinner Another discussion topic: The current designs show "Copy Email" and "Copy All Emails" buttons that look different fro our existing copy button designs (e.g. the "📎 Copy Link" button or what displays next to email addresses in the "Team Status" card on the Grant Details view). Proposal:
|
@TylerHendrickson I don't actually love the copy email behavior that exists in-line in status components. I don't think its super obvious and I would be open to just using plain text for emails here if metrics show what I expect (not much usage). This minimal treatment was a workaround due to limited real estate next to the avatars in status units. Since we have extra space in the modals I think it's advantageous to use buttons as designed, even though it is not 100% aligned with how emails are copied elsewhere in the app. |
@TylerHendrickson re: pagination in the modal, that sounds okay by me. @samserif23 what do you think? Since there is a sticky button at the bottom of the modal we might want to avoid stacking buttons and use a text link for "show more". Second thought, we may not need the "no more followers" text, could instead just hide the "show more" link when there are no more to show. |
@ClaireValdivia Should the current user be excluded from the list of followers (if they follow it) in this modal? |
@greg-adams let's keep the current user listed on the modal. cc @caitlinwinner for awareness if we want to think on something for the future that indicates on the modal if the current user is following. My reasoning to keep the current user on the modal is that I think it could be confusing for the user to be omitted unless we have some other kind of indicator that they are following, and I can't think of much of a downside of having them listed (except for there not being a good reason for them to copy their own email). |
agree |
@greg-adams This looks so good! Some notes as I'm testing in staging: |
@ClaireValdivia @greg-adams Regarding
The user "headline" design implemented in this modal is very similar to the designs for the notes feed; the spec for the notes feed provided in #2960 (eng subtask #3428) says
So perhaps it makes sense to observe the same guidelines for addressing the issue @ClaireValdivia noted above for the Followers modal. Additionally, @greg-adams Do you think it would be worth creating a reusable component for this kind of thing, which could be used in the modal as well as the notes feed? I'm also noticing that the Figma designs use this same heading for items in the Share sidebar block on the Grant Details page (#3240). |
@greg-adams Also, regarding
FYI, the Probably also makes sense to do the same for |
@TylerHendrickson @greg-adams yes, let's match the Notes feed so that the first line is truncated to one line (and therefore the copy email button as a fixed height and width) @greg-adams would it be helpful if I create two additional issues - one for truncating, and one for the avatar color, or would you prefer to continue to work off this issue? |
Thanks all, I've got these updated |
Retested and this is all working as expected, thanks Greg!! |
Subtask of [STORY]: Update 'Status' to 'Follow + Note' feature #2960
Blocked by
Blocks
N/A
Definition of Done
Modal Design Link
"Followed by {{Follower Name}} and {{Count Followers - 1}} others"
) is hyperlinked so that when clicked, the new "Grant Followers" modal displays.Implementation details
GET /:grantId/followers
route implemented in Follow+Notes: Expose ability to retrieve grant followers via Finder API #3399 supports requests to fetch (paginated) followers of a grant within the same organization as the currently-authenticated user. This endpoint should provide all data necessary to populate this modal (name, email, team name of following users, plus timestamp of the follow).CopyButton
component defined inpackages/client/src/components/CopyButton.vue
.The text was updated successfully, but these errors were encountered: