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

Update selectors and badge styles #235

Merged
merged 18 commits into from
Jul 14, 2023
Merged

Conversation

Lykhoyda
Copy link
Collaborator

@Lykhoyda Lykhoyda commented Jul 4, 2023

closes #162

@Lykhoyda
Copy link
Collaborator Author

@Tbaut the styles of Select and Autocomplete are updated. There could be minor misalignment with the design. The short version where we display only the icon is done for "Select" component only. The PR is already big enough, any new updates and features would be better handled in a separate PR.

@Lykhoyda Lykhoyda requested review from Tbaut and asnaith July 10, 2023 13:30
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this huge one. I made my best to review as thoroughly as possible. I'll ask @sweetpea22 to answer some of my comments here, and let's see how we move forward with these particular ones. There are so many changes, it's hard to review everything. Let me know what you want to fix in this PR or not, and we should create issues for those you'd prefer to tackle separately.

packages/ui/src/components/library/InputField.tsx Outdated Show resolved Hide resolved
packages/ui/src/components/selectors/AccountSelection.tsx Outdated Show resolved Hide resolved
packages/ui/src/components/selectors/AccountSelection.tsx Outdated Show resolved Hide resolved
packages/ui/src/components/library/TextFieldStyled.tsx Outdated Show resolved Hide resolved
packages/ui/src/components/EasySetup/BalancesTransfer.tsx Outdated Show resolved Hide resolved
}

Autocomplete.defaultProps = {
iconSize: '1.25rem'
Copy link
Collaborator

Choose a reason for hiding this comment

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

I find the icons way too small in a dropdown, and don't really display nicely with 2 information such as a name and address.
Identicons are a way to identify accounts quickly and need to be large enough for a selection I'd say. Ping @sweetpea22

image

Choose a reason for hiding this comment

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

yes it looks like my design here is wrong, it's too small to look good. I'm thinking to only use the big ones like this and remove the address in the dropdown for tidiness. but i'll give it a go to see how this looks first, brb
Screen Shot 2023-07-11 at 11 59 46 AM
Screen Shot 2023-07-11 at 12 00 11 PM

Copy link
Collaborator

Choose a reason for hiding this comment

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

agreed, cool

@Lykhoyda
Copy link
Collaborator Author

@Tbaut thank you for the detailed review. I updated the design according to the comments, please check again

@asnaith
Copy link
Member

asnaith commented Jul 11, 2023

I took a look through all major screens after the recent changes and I did not notice any issues, nice visual improvements :)

@Lykhoyda
Copy link
Collaborator Author

@Tbaut please take a look. I updated the types for the methods and fixed the long list appearance

Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Thank you so much, this is looking great. I found a couple things that were forgotten, but I think we're good to go after that :)

FilterOptionsState
} from '@mui/base/useAutocomplete/useAutocomplete'
import { theme } from '../../styles/theme'

Copy link
Collaborator

Choose a reason for hiding this comment

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

There is something not right with the identity.
image

To reproduce, click the preview link, watch the address DCZyhphXsRLcW84G9WmWEXtAA8DKGtVGSFZLJYty8Ajjyfa

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How did you put the icon? I wasn't able to watch the address with such name, but I centred and cut the long string name

Copy link
Collaborator

Choose a reason for hiding this comment

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

The check icon is from the on-chain identity retrived automatically. Sorry I didn't mention it but you have to be on Kusama to see it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also add it without giving it a name, that works. This is now displayed this way, which is unreadable. The name should be on 1 line and the address on another
image

@@ -140,6 +148,10 @@ export const theme = createTheme({
primary: '#F1F5F9',
secondary: '#F8FAFC'
},
proxyBadge: {
pure: '#4C66AA',
multi: '#94A3B8'
Copy link
Collaborator

@Tbaut Tbaut Jul 13, 2023

Choose a reason for hiding this comment

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

The multi is still using the inaccessible color, please use the ones I linked.
image

edit: this https://www.figma.com/file/4dQC9kxf5uxCrAjpkzAK0D/Multix?node-id=502%3A15616&mode=dev
which corresponds to this I believe

border-radius: 0.9375rem;
border: 1px solid var(--gray-400, #E6ECF1);
background: var(--gray-300, #F1F5F9); 

renderInput={(params) => (
<TextField
{...params}
label="Signing with"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I realized that we lost this quite important information, as users may not understand what this account selection is made for. Let's create an issue if you want to tackle this outside of this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure I completely understand how you want to display it. It would be better to see the design first. Also, I would prefer to make any changes in the following issues.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah it's fine as a separate issue. We need to adapt the 2 cases where the label was pretty useful, those are in the multisig creation, that's the most important, and the transaction signing.

In the first case, users are most probably new to Multix and may have no idea what this dropdown is doing. In that case, we need to add a title "Signing with" above it.
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer that issue focus on one subject, otherwise, it's not enjoyable to work in one huge PR

Regarding this in particular, I totally agree. Please open an issue and we can tackle it in a dedicated PR.

The bug I mentioned here should however be fixed before we merge #235 (comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Tbaut the bug you mentioned is fixed

packages/ui/src/components/library/Autocomplete.tsx Outdated Show resolved Hide resolved
@Tbaut
Copy link
Collaborator

Tbaut commented Jul 13, 2023

There is another badge color that has been forgotten, and the background is still red, here:

background-color: ${theme.custom.identity.red};
}

image

@Lykhoyda
Copy link
Collaborator Author

label="Signing with"

It's not a big deal to change but we have a lot of small stuff to fix or adjust, so the story is open for a long time. I would prefer that issue focus on one subject, otherwise, it's not enjoyable to work in one huge PR. It's not only about this badge but in general.

@Tbaut Tbaut changed the title Lykhoyda/update selectors styles Update selectors and badge styles Jul 14, 2023
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

nice, that was yet another big one, thank you!

@Tbaut Tbaut merged commit 56d070a into main Jul 14, 2023
5 checks passed
@Tbaut Tbaut deleted the lykhoyda/update_selectors_styles branch July 14, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change address dropdown/selector design
5 participants