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

RWD/my profile and members #4577

Merged
merged 19 commits into from
Oct 23, 2023

Conversation

eshark9312
Copy link
Contributor

@eshark9312 eshark9312 commented Oct 15, 2023

@vercel
Copy link

vercel bot commented Oct 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Oct 21, 2023 8:18am
pioneer-2 ✅ Ready (Inspect) Visit Preview Oct 21, 2023 8:18am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Oct 21, 2023 8:18am

Copy link
Collaborator

@thesan thesan left a comment

Choose a reason for hiding this comment

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

About the my profile page:

Since Pioneer doesn't mobile wallet nothing interesting can be done from a mobile in there. Therefore I think we should hide "My profile" from the mobile navigation.

About the members page:

It looks good over all but the role filter part:
Screenshot from 2023-10-16 19-11-43

is too small compare to the design:
image

As a result the button on the select are a bit squeezed:
image

@@ -65,6 +67,8 @@ export const Modal = ({ onClose, modalHeight = 'm', children, modalSize, isDark,

useEscape(() => onClose())

if ((screenSize === 'xxs' || screenSize === 'xs') && modalSize !== 'xs') return null
Copy link
Collaborator

Choose a reason for hiding this comment

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

However I don't think this is the right place to handle this globally. Instead could you do that in the GlobalModals component please ?

This way some exception can be added for some of the modals. Also instead of just returning null I think a small modal should be shown with a message like:

This action requires a browser extension, please visit this page from a desktop browser
Finally the condition shouldn't be just be the window size because it would mean that if someone reduce their window for a moment they would lose all the data the input in a modal. As a result I think that:

  1. it should check this whether a wallet is connected (if it is nothing should be shown).
  2. instead of checking screenSize, the browser screen.width should be used here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see what you mean, if no wallet is connected so there is no membership, then the banner appears on the top of the screen.

https://www.figma.com/file/EaObQEN95O0IWjSVTUQ5NN/Pioneer-RWD?type=design&node-id=1353-54052&mode=dev

OnboardingoverlayCapture

packages/ui/src/app/GlobalModals.tsx Outdated Show resolved Hide resolved
@thesan thesan merged commit 7481d71 into Joystream:responsive Oct 23, 2023
3 checks passed
@polikosi
Copy link
Collaborator

polikosi commented Oct 26, 2023

tested on: https://pioneer-2-om5olcd78-joystream.vercel.app/#/settings?network-config=https://3.73.121.180.nip.io/network/config.json

My profile

XXS - 320px
✅My profile -> My accounts

⚠️My profile -> My memberships
Active membership should be min 872px.
image

⚠️Invite a member
This page should not be displayed
image
After refreshing the page, I received the following message
image

⚠️Insufficient budget
The user should not receive this message. This modal is not displayed on this screen size.
image

⚠️Add membership
The user should not receive this message. This modal is not displayed on this screen size.
image

⚠️Add membership: Authorize transaction
The same problem. This page should not be displayed.
image

⚠️Add membership: Success modal
The same problem. This page should not be displayed.
image

XS - 425px
✅My profile -> My accounts

⚠️My profile -> My memberships
Active membership should be min 872px.
image

⚠️Invite a member
The same problem. This page should not be displayed.
image

⚠️Insufficient budget
The user should not receive this message. This modal is not displayed on this screen size.
image

⚠️Add membership
The same problem. The user should not receive this message. This modal is not displayed on this screen size.
image

⚠️Add membership: Authorize transaction
The user should not receive this message. This modal is not displayed on this screen size.
image

⚠️Add membership: Success modal
The same problem. This page should not be displayed.
image

SM - 768px
✅My profile -> My accounts

⚠️My profile -> My memberships
Buttoms are stacked verically but should be horizontally.
image

✅Invite a member

✅Insufficient budget

✅Add membership

✅Add membership: Authorize transaction

✅Add membership: Success modal

MD - 1024px
⚠️My profile -> My accounts
Cards should be placed in a 3 columns.
image

✅My profile -> My memberships

✅Invite a member

✅Insufficient budget

✅Add membership

✅Add membership: Authorize transaction

✅Add membership: Success modal

LG - 1440px
✅My profile -> My accounts

✅My profile -> My memberships

✅Invite a member

✅Insufficient budget

✅Add membership

✅Add membership: Authorize transaction

✅Add membership: Success modal

@polikosi
Copy link
Collaborator

My mebers

XXS - 320px

⚠️XS - 425px
Meber type and roles should be staked horizontally
image

⚠️SM - 768px
image

MD - 1024px

LG - 1440px

@eshark9312
Copy link
Contributor Author

eshark9312 commented Nov 1, 2023

@polikosi
I addressed all problem on the last RWD PR, you can check here.

@polikosi
Copy link
Collaborator

polikosi commented Nov 2, 2023

tested on: https://dao-7pvcye50j-joystream.vercel.app

My profile

There is one problem and several remarks

Problem:
❌Add membership: Success modal
Actual result: Page is crashed (i get white screen) after creating membership
Expected result: I receive a modal notification about successful membership creation
image

Remarks:
I think it would be good to move it a little to the left so that the question mark is visible. Screen: 768px, 1024px, 1440px
⚠️Add membership: Authorize transaction
image

⚠️My profile -> My accounts
Cards should be placed in a 3 columns. Screen - 1024px.
image

I think this message is needed where we show nothing. For example: Invite a member modal (screen: 320px, 425px), etc.
image

@polikosi
Copy link
Collaborator

polikosi commented Nov 2, 2023

My mebers

XXS - 320px
⚠️Top and bottom padding should be set to 16px
image

⚠️SM - 768px
The search bar and select should be on the same line as "Mebmers"
image

@eshark9312
Copy link
Contributor Author

eshark9312 commented Nov 3, 2023

@polikosi
I pushed a commit to address all but one of the issues above, please check here.
What do you mean with

I think this message is needed where we show nothing. For example: Invite a member modal (screen: 320px, 425px), etc.

This message appears when clicking Invite a member or Add Membership button.

@polikosi
Copy link
Collaborator

polikosi commented Nov 3, 2023

This message appears when clicking Invite a member or Add Membership button.

Yes, that's what I mean.

@polikosi
Copy link
Collaborator

polikosi commented Nov 3, 2023

@eshark9312 Yes, everything is working as expected. Good job, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline qa-tested-ready-for-prod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants