feat: address remaining design inconsistencies for distance requests - #28110
Conversation
|
@dannymcclain @situchan One of you needs to 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] |
|
@situchan I added a 16px top margin for the Request button at the bottom of the confirmation page, since there was very little spacing after removing the bottom margins from the push-to-page rows. This is what it looks like on iOS Safari where it's noticeable. |
|
I think we want just 8px above the bottom-docked buttons? |
@shawnborton Here's what it looks like with 8px. |
|
Awesome, can you show what it looks like when the form might overlap below the bottom-docked button? |
Sorry, I'm not quite sure what the form overlapping below means. Do you mean the form going all the way beyond the viewport to the bottom of the screen? Here are a couple of screenshots (one with categories and tags enabled to occupy more vertical space, and the other without). |
|
Nice, yeah I think that looks good, although for these kinds of flows, do we want the green button to always be docked to the bottom of the viewport? And then all of the content would scroll behind it? |
I wasn't a part of the discussions concerning this, but I remember from the distance request issues I've worked on, after a few iterations, we settled for the button to start docked at the bottom, but should be scrollable along with the main content, if the content ever got up to that point. |
|
Okay that makes sense to me, just tested other create flows and they do the same. Thanks for confirming. I say what you have looks good to me. |
|
@situchan bump on review. |
|
Code looks good. I will test in a few hrs |
|
@situchan bump. Hoping we can get this done and merged before the 3-day limit as today is already the 3rd day. Thanks. |
|
|
I feel space between Category and Billable is smaller. @shawnborton what do you think? Screen.Recording.2023-09-27.at.4.47.42.PM.mov |
situchan
left a comment
There was a problem hiding this comment.
Let's add styles.mt2 to Billable View here:
Done. |
Reviewer Checklist
Screenshots/VideosMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movAndroidandroid.mov |
Yeah, I think we maybe need to give the billable row some vertical margin to make it feel like it has the same height as all of the other push rows. Can we make it so that the billable row is basically the same width/height as every row above it, and the content (label + toggle) is vertically centered within that area? cc @Expensify/design |
Agree, but maybe we can do that as follow-up to apply same height to all switch views by making a new common component.
|
|
I suppose we could but we need to at least fix it here right? |
yes |
|
@akinwale let's do that on this page only for now |
Pushed a new commit. Modified the styles to make it the same height as the push-to-page rows. |
|
Looks good. @joelbettner all yours! Screen.Recording.2023-09-28.at.10.30.14.AM.mov |
|
✋ 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/joelbettner in version: 1.3.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|










Details
Updates the margin and padding styles for distance and money requests.
Fixed Issues
$ #27052
PROPOSAL: #27052 (comment)
Tests
Offline tests
Same as tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android