-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Account Settings] Header: icons, height, and font changes #35564
[Update Account Settings] Header: icons, height, and font changes #35564
Conversation
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@mountiny Can you trigger an adhoc build to check the icons on physical devices? |
Converting to draft, as I will solve this issue in this PR as well. Going to reopen it in a moment. |
The PR is ready for review.
Got confirmation: |
This reverts commit 02f327e.
@shawnborton oh boy alright, this is starting to get a little messy. I think we need to SIMPLIFY all these padding and spacing values to make this a touch less headache inducing. Here's what I'm measuring in the Figma comps: Here's what I think we should do: I agree that we should adjust the chat headers on desktop so that they're 80px. If we simply the padding values (as in my proposal) this will mean that all the avatars sit perfectly in line, 20px off the top of the viewport. Let me know if this doesn't make any sense or if you'd like to take the convo to Slack. I just think we need to streamline as many of these values as we can so that it's easier to keep track of what's "right". |
Super super down with that! I agree that it's a nice simplification. |
If we reach a consensus, please update the Figma designs, and post an update with changes, so I can update the PR. |
Hey, can I ask for the final summary of the decisions? As in this thread, we are talking about 80px on desktop, while in this issue we've decided to 72px. I'm a bit confused.
|
@shubham1206agra can you explain a bit more? If you're referring to what I'm showing in my screenshots here, it is to be expected and I don't think it's an issue. It stems from all our illustrations using a fixed size of 48x48px and having to optically resize each illustration inside those bounds to make them visually feel about the same size. You'll notice a similar thing happening with the lock illustration on the security page because that illustration is much taller than it is wide. If you're talking about something else—please let me know! |
I can align it in InkScape, but it would be better to fix it on Figma as well. |
Can you inspect and show us how the views are all lining up? As long as everything is vertically centered, I think we're fine. I don't think we need to modify the svgs... |
Ahh gotcha! Thanks for pointing that out. I just updated it in Figma but I'll attach the SVG here as well. @shawnborton We did actually need to edit the SVG—it was not quite right and I think this is better now. |
Can you show me a before/after? I'm not disagreeing, but I don't think I am seeing it so just want to make sure I can spot the misalignment. |
I've downloaded it from Figma, as it was updated (I guess)? |
It's weird because basically that "user" shape was using a lot of sub-pixel values so it couldn't sit in the center properly. I tweaked the sizing of it a bit so it could sit on the pixel grid a bit better—but the change from before and after is going to be pretty subtle.
Haha yes, I believe you grabbed it after I updated it there. |
Cc @shubham1206agra ready! |
Looks fine to me now. I will post the checklist in the morning. |
@shawnborton Can you confirm the height here? |
I think all of those are going to be changed with the upcoming account settings and simplified collect project. I think @kosmydel might be able to confirm that. |
Reviewer Checklist
Screenshots/Videos |
I haven't changed the Workspace Settings at all, as there are no illustrations. This is probably a part of future project. |
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 the changes, lets update the name variable in a follow up
@@ -50,6 +52,9 @@ import MoneyBadge from '@assets/images/simple-illustrations/simple-illustration_ | |||
import MoneyIntoWallet from '@assets/images/simple-illustrations/simple-illustration__moneyintowallet.svg'; | |||
import MoneyWings from '@assets/images/simple-illustrations/simple-illustration__moneywings.svg'; | |||
import OpenSafe from '@assets/images/simple-illustrations/simple-illustration__opensafe.svg'; | |||
import PalmTree from '@assets/images/simple-illustrations/simple-illustration__palmtree.svg'; | |||
import Profile from '@assets/images/simple-illustrations/simple-illustration__profile.svg'; | |||
import QrCode from '@assets/images/simple-illustrations/simple-illustration__qr-code.svg'; |
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.
Naming styling, can be fixed in a follow up
import QrCode from '@assets/images/simple-illustrations/simple-illustration__qr-code.svg'; | |
import QRCode from '@assets/images/simple-illustrations/simple-illustration__qr-code.svg'; |
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.
Going to rename it here.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
There is one regression comming from this PR: missing background color of illustration in workspace empty state. It's going to be fixed in this PR. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.39-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.39-8 🚀
|
Details
This pull request adds icons to the
HeaderWithBackButton
component and uses it to add icons to screens in the Account Settings menu. It also adjusts header heights with new designs and applies new fonts.Fixed Issues
$ #35609
$ #35571
$ #35632
PROPOSAL: N/A
Tests
Offline tests
Turn off network, verify the icons work.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/cb156757-4de1-4bc0-89bb-00e0ab28fa7a
Android: mWeb Chrome
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/a8ba84df-743b-491d-8eed-b376a9486605
iOS: Native
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/1377c268-f3dd-4294-8090-aa60905c4dfd
iOS: mWeb Safari
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/8ec29a34-b4bb-471a-82bd-ca4da0aeab26
MacOS: Chrome / Safari
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/a20a6ae9-aa5e-4700-b6a1-eb93d711f5ee
MacOS: Desktop
Before font & height changes:
https://github.com/Expensify/App/assets/104823336/9f750591-467a-41c7-938f-e39c2da318c0