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

Design #62

Merged
merged 47 commits into from
Aug 29, 2024
Merged

Design #62

merged 47 commits into from
Aug 29, 2024

Conversation

andreivcodes
Copy link
Contributor

@brusherru
Copy link
Member

It breaks up the mobile version.

Needs to be fixed and tuned for mobile.
Left comprehensive comments in Slack, here are some screenshots for the protocol.

image
image
image
image
image

Does not check accounts with transactions and rewards, vault account with unlocked balance, and how it works on desktop.

@pigmej
Copy link
Member

pigmej commented Aug 5, 2024

I dislike it, honestly. It is way too wide, and functionality is affected by it.

Smidgh is also I guess not defined shortcut too.

@brusherru
Copy link
Member

Well, it's better, but still:

  1. Horizontal scroll on the unlock page.
    The fact that some pages still has this problem, and some not means that something implemented wrong.
    It should be part of basic template / components.

  2. Transaction list still has excessive padding
    image

  3. Regression: Vault account lost the feature that shows unlocked amount (Show available unlocked amount on Vault accounts #46)

  4. I don't like that modals now lost the "darkening" of the underlaying content (or this darkening is almost invisible)
    image
    Also I think such a big paddings are excessive. Let's use the space wisely.

  5. And I totally does not like this part:
    image
    There are two problems:

    • a lot of empty space on mobile because all of this does not fit in a single line
    • address, account name and switch, and it's balance are falling apart and seems not related

    For clarity, here is what we currently have:
    image

    All account related info is grouped in the single block

  6. Rewards looks well enough, but I'd tweak padding a little bit to make it looks more accurate

image
  1. Big amounts looks bad:
    image

  2. Not sure that it makes sense to use a full width of the page on a desktop. It's harder to work with.
    image

Let's work on this better and without rush.
I think there is nothing critical to release the wallet as is, less "fancy" but more solid and logical.
And later release a really good GUI.

@noamnelke
Copy link
Member

One thing I didn't see mentioned is the color choice. I think the "really dark green" and "slightly less dark, but still really dark green" don't have enough contrast between them. I had to turn up the brightness on my display because I wasn't even sure it was two different colors...

Copy link
Collaborator

@monikasmolarek monikasmolarek left a comment

Choose a reason for hiding this comment

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

I've reviewed the figma files and left some feedback there. Once the final layout established and implemented here, I will check this PR as well.

textTransform="uppercase"
fontSize="xx-small"
variant="ghostGreen"
fontSize={{ base: '18px', md: '22px' }}
Copy link
Member

Choose a reason for hiding this comment

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

Let's use named sizes instead of pixels, e.g.:

Suggested change
fontSize={{ base: '18px', md: '22px' }}
fontSize={{ base: 'lg', md: 'x-large' }}

Comment on lines +125 to +134
variants: {
green,
ghostGreen,
white,
ghostWhite,
whiteModal,
whiteOutline,
danger,
outline,
},
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure it is a good solution.

Chakra's theme system supposed that there is variants.
For buttons it is solid, outline, link and ghost.
And then if you want to have different styles — use colorCheme. It provides a variety of different colors, but for the branding we need less, so in this case it might be good to name them like primary, secondary, danger, and mb primaryDark for cases when buttons on dark bg should be different...

But here we have a mix of these, and names are not very clear when which to use. And as I said above, I don't like that all the buttons have the same accents, for example "Add party" and "Add account" looks the same, and which is even more confusing "Cancel" and "Next" the same as well :)

To sum up, I'd like to have:

  1. clear naming,
  2. probably separate variants and colors (if it make sense to avoid having a big amount of variants),
  3. default styles for every component, so we don't need to put variant="whiteModal" in every component

borderColor="gray.200"
bg={isOver ? 'blackAlpha.700' : 'blackAlpha.50'}
p={hasWordInside ? 0 : 2}
bg={hasWordInside ? '#0B221C' : 'brand.darkGreen'}
Copy link
Member

Choose a reason for hiding this comment

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

Btw, now slot does not react when you drag a word over it...
Please bring back the usage of isOver and ensure that the color is differ from bg...

@brusherru
Copy link
Member

I still dislike it, but since we really need to officially release it and we need to have it "branded" — I'm merging it.
Hopefully all defects (design & code) will be fixed very soon.

@brusherru brusherru merged commit b9940e4 into spacemeshos:main Aug 29, 2024
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.

6 participants