Skip to content
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

Split members to contributors & watchers in the side panel - UI only #3395

Merged

Conversation

chinins
Copy link
Contributor

@chinins chinins commented May 13, 2022

Description

This PR splits members in the side panel into contributors & watchers.

Screenshot 2022-05-14 at 12 02 55

Screenshot 2022-05-13 at 21 32 55

Screenshot 2022-05-13 at 21 27 36

New stuff

  • add MembersSubsection file to generalise code
  • show the caret icon with link to the members page as the last "avatar" when there are more than 15 members in the subgroup
  • add tooltips

TO DO
I have a warning in my terminal (screen shot below) and I don't understand the reason for it. I know that it's coming from this line (line 57 in ColonyMembers.css):
background-color: color-mod(var(--action-secondary), alpha(12%));
But I use it exactly the same as in other places. I'll keep investigating but I ran out of ideas for now. Maybe somebody knows why I have the warning?

Screenshot 2022-05-14 at 12 03 37

Resolves #3378

@chinins chinins self-assigned this May 13, 2022
@chinins chinins requested a review from a team May 13, 2022 19:56
@chinins chinins marked this pull request as ready for review May 13, 2022 19:56
letter-spacing: var(--spacing-medium);

&:hover {
background-color: color-mod(var(--action-secondary), alpha(12%));
Copy link
Contributor

@dit7ya dit7ya May 16, 2022

Choose a reason for hiding this comment

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

That comma is extra and is what causes the invalid color adjuster error.

isContributors,
colony,
currentDomainId = COLONY_TOTAL_BALANCE_DOMAIN_ID,
maxAvatars = 12,
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe extract the constant out somewhere or set as a default since it is used twice?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, the default value 12 should be a const, but I like the approach of having the number of avatars configurable via props

Copy link
Contributor

@dit7ya dit7ya left a comment

Choose a reason for hiding this comment

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

Looks good to me! Left some optional notes.

Copy link
Member

@arrenv arrenv left a comment

Choose a reason for hiding this comment

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

Looking good @chinins

The margin above the "Watchers" needs to be reduced by 10px, as it has been done with the "Enabled extensions" heading, due to the margin under each avatar.

Also, it looks like you added in the carets, however, after consolidating the designs into the one spec, it was confirmed that the numbers was the correct approach, i.e. what was already in the DApp. This is my fault, so, my apologies for not knowing about the extra designs before handing it off.

See the spec here - https://www.figma.com/file/qQoBbyyDXkuHwoqHIOGjEu/Colony-Simplified?node-id=6736%3A91869

@rdig
Copy link
Member

rdig commented May 16, 2022

I have a warning in my terminal (screen shot below) and I don't understand the reason for it. I know that it's coming from this line (line 57 in ColonyMembers.css):
background-color: color-mod(var(--action-secondary), alpha(12%));
But I use it exactly the same as in other places. I'll keep investigating but I ran out of ideas for now. Maybe somebody knows why I have the warning?

@chinins remove the the colon , between the color and the alpha, and your warning should go again.

From this:

background-color: color-mod(var(--action-secondary), alpha(12%));

To this

background-color: color-mod(var(--action-secondary) alpha(12%));

Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

Left some comments, but this is some good work here! 💯

isContributors,
colony,
currentDomainId = COLONY_TOTAL_BALANCE_DOMAIN_ID,
maxAvatars = 12,
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, the default value 12 should be a const, but I like the approach of having the number of avatars configurable via props

Copy link
Contributor

@ArmandoGraterol ArmandoGraterol left a comment

Choose a reason for hiding this comment

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

Question: I see that members with no rep are included in the contributor's section. Is that intentional? From what I understood, the contributors was supposed to be only for admin and members with rep.

FireShot Capture 595 - Actions - Colony - wonker - localhost

@chinins
Copy link
Contributor Author

chinins commented May 17, 2022

Question: I see that members with no rep are included in the contributor's section. Is that intentional? From what I understood, the contributors was supposed to be only for admin and members with rep.

FireShot Capture 595 - Actions - Colony - wonker - localhost

It's a UI only issue - says in the PR title :)

@ArmandoGraterol
Copy link
Contributor

It's a UI only issue - says in the PR title :)

My bad! I didn't interpret it that way

Copy link
Contributor

@ArmandoGraterol ArmandoGraterol left a comment

Choose a reason for hiding this comment

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

Looking great! I think the others already pointed out the things that perhaps need a change so I'm just going to approve as everything else looks good to me

@chinins chinins force-pushed the feature/3378-update-members-in-aside branch from ac17825 to 0401163 Compare May 18, 2022 16:35
@chinins
Copy link
Contributor Author

chinins commented May 18, 2022

Looking good @chinins

The margin above the "Watchers" needs to be reduced by 10px, as it has been done with the "Enabled extensions" heading, due to the margin under each avatar.

Also, it looks like you added in the carets, however, after consolidating the designs into the one spec, it was confirmed that the numbers was the correct approach, i.e. what was already in the DApp. This is my fault, so, my apologies for not knowing about the extra designs before handing it off.

See the spec here - https://www.figma.com/file/qQoBbyyDXkuHwoqHIOGjEu/Colony-Simplified?node-id=6736%3A91869

@arrenv, I've updated it. Please, have a look and give your blessing for me to merge :)

@chinins chinins requested a review from arrenv May 18, 2022 20:53
Copy link
Member

@arrenv arrenv left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice one!

@chinins chinins merged commit 4a373f1 into feature/contributors-vs-watchers May 19, 2022
@chinins chinins deleted the feature/3378-update-members-in-aside branch May 19, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants