-
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
Styling fixes for ReportPreview/MoneyRequestPreview #36278
Conversation
@shawnborton would you mind taking a look at the screenshots I added? Let me know if anything else needs changing! |
Looking good! The only thing I see is that the green button feels just slightly far away from the text above it? How much space is there? cc @Expensify/design for a quick review too! |
@shawnborton there's a gap of 16 and it looks like the button has a margin-top of 12px |
Agree with Shawn—but these are looking good! |
@shawnborton @dannymcclain updated! |
Feeling good to me! I just fired up a test build so we can test more easily as well. |
@gedu please merge main Build not posted 🤔 |
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's no padding
Screen.Recording.2024-02-13.at.9.21.01.PM.mov
@situchan not sure what caused that bug- mine look alright |
oof I pushed to my old branch, give me a sec! |
Cool cool, and before we merge, can we do a test build so we can take these for a spin with our account data first? Thanks! |
Updated and triggered a test build |
@shawnborton I actually was about to message you to double check on that lineheight, I'll push that now! |
@shawnborton this is
I can switch to
|
H1 sounds good, but I think the font size should be 22px based on our Figma designs. So we might need to update that globally too. |
I'm good with those updates to the H1 even if they need to be made globally. @Expensify/design We should make sure our type styles in Figma have explicit line heights set so we all know what they should be (H1 & H2 styles currently have their line-heights set to |
Agree! I think we should do 28px line height for h1, and 24px line height for h2. I can push those changes to Figma quickly! |
This comment was marked as outdated.
This comment was marked as outdated.
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.
🟢 code looks okay
I'll wait for design team's final review of the latest build
Here's video of visual difference (main vs this branch) Screen.Recording.2024-03-01.at.12.14.21.AM.mov |
Thank you everyone, going to merge this one! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.47-0 🚀
|
@grgia could you help with pending expensify card transaction? |
@roryabraham @situchan We are not sure how to have "pending expensify card transactions", It would be great if you could validate internally. Thanks! |
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.47-10 🚀
|
Details
ReportPreview
✅ Fixes Text line height
✅ Fixes Gaps
✅ Fixes Counter Highlight Color
MoneyRequestPreview
✅ Fixes Text line height
✅ Fixes Gaps
ReportPreview Subtitle Copy Change
✅ Add support for displaying
# of pending
in the Report PreviewFixed Issues
$ #33979
PROPOSAL:
Tests
Verify that no errors appear in the JS console
See QA steps
Note for C+: to add a pending card transaction, simply set transaction.status to 'Pending' for a transaction on the report via onyx console
QA'd UI with design
Offline tests
QA Steps
Verify that no errors appear in the JS console
Create a report with 2 manual requests, go to the parent chat report and locate the report preview
Verify that copy reads "2 requests"
Add 1 Pending ECard transaction
Verify that copy reads "2 requests, 1 pending"
Add 1 Scanning transaction
Verify that copy reads "2 requests, 1 scanning, 1 pending"
Delete the ECard transaction
Verify that copy reads "2 requests, 1 scanning"
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop