-
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
Update selectors and badge styles #235
Conversation
@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. |
There was a problem hiding this 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/selectors/GenericAccountSelection.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/selectors/GenericAccountSelection.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/selectors/GenericAccountSelection.tsx
Outdated
Show resolved
Hide resolved
} | ||
|
||
Autocomplete.defaultProps = { | ||
iconSize: '1.25rem' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, cool
@Tbaut thank you for the detailed review. I updated the design according to the comments, please check again |
9076a9f
to
c211837
Compare
I took a look through all major screens after the recent changes and I did not notice any issues, nice visual improvements :) |
@Tbaut please take a look. I updated the types for the methods and fixed the long list appearance |
There was a problem hiding this 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' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/ui/src/styles/theme.ts
Outdated
@@ -140,6 +148,10 @@ export const theme = createTheme({ | |||
primary: '#F1F5F9', | |||
secondary: '#F8FAFC' | |||
}, | |||
proxyBadge: { | |||
pure: '#4C66AA', | |||
multi: '#94A3B8' |
There was a problem hiding this comment.
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.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There is another badge color that has been forgotten, and the background is still red, here: Multix/packages/ui/src/components/Transactions/Transaction.tsx Lines 148 to 149 in d5a92cc
|
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. |
There was a problem hiding this 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!
closes #162