-
Notifications
You must be signed in to change notification settings - Fork 113
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
Dashboard: Display contents in 2 columns for large screens #13983
Conversation
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
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.
This looks great! I tested all cards on an 13inch iPad in Simulator, both in Landscape and Portrait mode. I also tested all existing functionalities in the cards and as far as I can tell they work properly.
The logic refactor on the three special cards also works nicely in my test.
I'm unsure about the column placement logic. e.g: if I go to Edit and order cards to be A, B, C, D
, they will be shown as:
A C
B D
But I might be expecting something like this instead:
A B
C D
Because B
being second in the list might mean it's the second most important card to see, and being put at the top is more important visually than at the bottom.
Additionally, if have many cards but I want to put two specific cards at the very top, it's not intuitive to do. The second card will need to be put in the middle of the list.
This is just my hunch and hypothetical situation, though, and in practice I don't know if merchants will be complaining about this. Let's wait for feedbacks.
@hafizrahman Good suggestion! I think it makes more sense to show cards in your preferred order. I've updated the logic in 4835966. Let me know if there's anything else needed to be improved. |
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! The new ordering logic looks great and it does feel more intuitive going from My Store to Edit screen to see how things are ordered.
I found an edge case with the Coupons card where if there's only one coupon like in my case and there's one other card, it seems like it's trying to match the other card's height and showing a stretched height situation:
Next to Performance | Next to Blaze |
---|---|
This happens less if there's more cards in the same column:
I think it's good to fix it in this PR too, because this happens only in two column situation, as far as I can check.
@hafizrahman Good catch! I fixed the layout issue for the coupon card in 59b957f. I also added a check for accessibility font size to avoid creating two columns for the dashboard - the large font size would make it hard to read the contents. Please take another look and let me know if all is good now. |
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 for fixing the coupon card situation, it looks good to me after doing various tests.
a check for accessibility font size to avoid creating two columns for the dashboard
This works nicely, and good thinking for adding it also! This is a good check that I should keep in mind for future layouting.
Closes: #13988
Description
This PR updates the layout of the dashboard screen to display contents in 2 columns to make use of the real estate on large devices.
Changes:
Steps to reproduce
Smoke testing is needed for the update logic of in-app feedback, share store, and new cards notice cards:
Testing information
Tested on simulator iPad 10 Gen and iPhone 15 Pro iOS 17.4 & 18.1 beta:
Screenshots
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: