-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add waypoints list and add stop button #23698
Conversation
@shawnborton may I please have an early review of this? Here's what I have so far. Do you have any recommendations? May I please also have the following icons as .svg files? The "hamburger" Expensicon for the drag handles on the waypoints and the Maki icon "marker". I think we should use a filled white dot for the start waypoint, (or maybe a white circle), the gray dot for the stops, and a gray (or red?) marker for the finish. I think it's nice to be able to match them up between the waypoints in the list and the icons on the map in the future. Screen.Recording.2023-08-02.at.5.58.32.PM.movOooh I think it looks a bit better with a gradient from transparent to the background color vs black. Screen.Recording.2023-08-02.at.6.12.58.PM.mov |
Will work on getting the icons now. A couple of questions in the meantime:
|
Also, looks like you are using the wrong icon for drag handles in your mocks - we have an icon for drag handles already: Here are the icons you need though: distanceicons.zip You can use the dot indicator icon that already exists for the circle. |
There will be a map in the future so I want to set it up for that now. It's behind a beta so no one will see this until it's complete anyways.
Yeah copy that, I'll get it updated soon.
Ah ok. Thanks for sending the icons! All the other points sounds good and I'll get them updated and check with you again. I'm thinking that I should reduce the spacing around the dot icon to make it match the mock more closely, do you agree? |
Let's try without modifying the icon size so we can keep them all consistent at 20x20. If we need to make a new dot indicator (smaller), we totally can. But let's first go with consistency. |
👀 |
I don't know if that's a large enough difference to be worth investigating and fixing it right now. I would like to leave it as is. Maybe we do a follow up though if it's a problem? What do you think @shawnborton? |
Yeah I saw that the mockup is different but I think it makes sense to change in this use case.
The drag handle icon is passed to the menu item component without specifying an iconFill so it is using the default color in the context of that component. App/src/components/DistanceRequest.js Lines 112 to 119 in 58f6ab5
In the component we set the color based on the user's interaction, and that's fairly complicated. Overall I think we should leave the drag handle icons with their color based on the interaction on it. I think it makes sense to set a static color on the waypoint icons because they aren't interactive. App/src/components/MenuItem.js Lines 164 to 177 in 8131df5
Do you agree with that or do you think about it differently @shawnborton? |
Thanks for the feedback. I responded to everything here and I would appreciate another review. |
<ScrollView | ||
onContentSizeChange={(width, height) => setScrollContentHeight(height)} | ||
onScroll={updateGradientVisibility} | ||
scrollEventThrottle={16} |
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.
Should this value need to be a CONST?
export default withOnyx({ | ||
// We must provide a default value for transactionID here, otherwise the component won't mount | ||
// because withOnyx returns null until all the keys are defined | ||
transactionID: {key: ONYXKEYS.IOU, selector: (iou) => (iou && iou.transactionID) || ''}, |
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.
NAB, could use lodashGet
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.
LGTM. Tests pass well!
Just a couple of NABS
|
||
baseMenuItemHeight: 64, |
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.
NAB
- Why not use the existing
optionRowHeight
orlistItemHeightNormal
- If it's specific to a component why do we have a generic name
baseMenuItemHeight
? - Unnecessary line break
@neil-marcellini We should have a follow-up for this, as it is inconsistent something that we need to address. It's not pressing here but let's just create an issue ourselves to save some bounty on reporting, thanks! |
I think that makes sense, but do you have updated screenshots I can review? Again, I think the drag handles should just use our standard icon color and we can make the waypoint icons use something else. |
I created a follow up issue here to have the fade out shade addressed #24447 along with the other NAB comments that Santhosh-Sellavel left. I'm going to merge this since it seems like the concerns are addressed except for the color of the drag handles. I'll then address the drag handles color change in my PR and ideally get that merged today so it should be live at the same time. This just allows me to unblock the other PRs that are held on this since we're still aiming to get this done by a deadline but should not affect design quality |
✋ 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/thienlnam in version: 1.3.54-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.54-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.54-13 🚀
|
Details
Fixed Issues
$ #22700
PROPOSAL: N/A
Tests
Offline tests
Sign in then go offline and run the tests above
QA Steps
Same as tests
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
web.mov
Mobile Web - Chrome
Chrome.mov
Mobile Web - Safari
Safari.mp4
Desktop
desktop.mov
iOS
ios.mov
Android
Android1.mov