-
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
Add option to delete stop #25984
Add option to delete stop #25984
Conversation
@allroundexperts 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] |
Hey @hayata-suenaga @allroundexperts, the PR is open but I need to confirm the following scenarios before adding test proofs -
Are these okay or should any of these use
|
Regarding point 2, if we allow deleting start/finish points, at the moment -
finish_delete.mp4finish_point_delete.mp4 |
Reviewer Checklist
Screenshots/VideosWebscreen-recording-2023-08-28-at-33258-pm_ZcA0USoo.mp4Mobile Web - ChromeScreen.Recording.2023-08-28.at.3.38.10.PM.movMobile Web - SafariScreen.Recording.2023-08-28.at.3.43.11.PM.movDesktopScreen.Recording.2023-08-28.at.3.39.35.PM.moviOSScreen.Recording.2023-08-28.at.3.41.32.PM.movAndroidScreen.Recording.2023-08-28.at.3.35.51.PM.mov |
Bump on these questions @hayata-suenaga! |
@Nikhil-Vats sorry for the late response 🙇
Let's use
When there are only two waypoints (start and finish), let's hide the three dot button When there are several waypoints, even start or finish waypoints can be deleted. My only concern is that we're doing some weird stuff with how we store waypoints (I think waypoints are stored in an object with each key being |
Hey @hayata-suenaga @allroundexperts, I have requested for spanish translations on slack -
Can we also add the I have also pushed the latest code to hide the three dots menu when there are only 2 points (start and finish). Regarding the concern of how we are storing, I will check on that right now and continue to test it and upload test proofs in a few hours. |
@allroundexperts I have noticed one bug on main while testing which is that the confirm modal doesn't open when we first click delete workspace, it opens second time but then third time it doesn't open. This doesn't happen on staging so it is from a recent PR and it is also affecting our delete waypoint testing on mobile browsers. This test video is from main without our changes so we know it is not from this PR. I will create a separate issue for this on slack. Screen.Recording.2023-08-27.at.3.00.32.AM.mov |
@Nikhil-Vats Can you please report this (if it hasn't been reported previously) and post a link for the report here? As long as its present on main, it shouldn't block this PR. |
thank you for your attention to the guideline. I really appreciate it. In this case, because the change is very simple, I don't think we need marketing approval for this. But we still need Spanish translation confirmation.
so currently, when you first click the dot menu on the Waypoint Editor page, the menu popup doesn't appear? |
@hayata-suenaga the menu pop up will appear but when we click Delete waypoint it won't show the confirmation modal. When we do it second time then it will show. This is happening for other confirmation modals as well. This is only happening on mobile browsers, not on desktop. I will check for mobile apps. |
@hayata-suenaga one more question, should we wait for Spanish translation to add test proofs and merge PR? Or can we add test proofs and merge this PR and I can create a follow up PR as soon as we get Spanish translation? |
you can record the screen or take screenshots before Spanish translation is approved. We should probably wait for Spanish translation before merging though but again, we can do all the testing before Spanish |
@Nikhil-Vats by the way, did you have time to report the bug? (if you can find the PR that caused the regression, that's 💯 |
I will report the bug right now and try to find the root cause today. |
@allroundexperts @hayata-suenaga Bug report added here. |
@Nikhil-Vats Before working on that, can you please add the screen recordings so I can test as well. |
Sure @allroundexperts , on it. |
Hey @hayata-suenaga @allroundexperts, all test proofs added and checklist completed. I noticed on further testing that not just the confirmation modal, many menus, pages don't open on first click. For ex - Notice the behaviour of clicking 'Request money' in the video below, it never works first time and always works the second time. So this problem is not just with the confirmation modal. This happens on mobile apps and mobile browsers. This video is from main which you can verify because there is no option to delete the waypoints even when there are more than 2 points. click_bug.mp4 |
@allroundexperts Now, I will work to find out which PR caused this because this will become a major deploy blocker since it affects everything mobile and a lot of menu/pages possibly. Also, you will notice in iOS native test video that the delete confirmation modal doesn't open at all. I tried multiple times it is the same behaviour but this is also because of the aforementioned bug and not this PR because you can try on main with delete workspace and there also the confirmation modal will never open. |
@allroundexperts @hayata-suenaga Found the PR. The issue is already identified as it is affecting multiple flows - #25998. There was only 1 change, BaseModal was changed to functional component, when I revert it everything works as expected. |
I noticed one more CSS issue on android browser where it is difficult to click the finish point when there are more than 2 points. @hayata-suenaga you can check the test proof for chrome mobile to see it. Should I create a separate bug report for it? |
@hayata-suenaga I think I already reported the same issue here as well. Let's create a bug ticket for that as well! |
Hey @hayata-suenaga, I have fixed the merge conflict. Since so many people are working on this file, can we merge it quickly otherwise I am afraid we will keep running into conflicts. I have tested the feature locally and the other feature which it had conflicts with and both work fine. And, the conflicts were simple so we didn't touch the code of the other feature. Also, lint is failing on this PR but it is passing locally. and the reason for failing lint in this PR is because there was a prop added in the other PR which was not added in propTypes so it is not related to this PR. |
I have added a comment on the other PR. |
So the lint is failing on main? |
@hayata-suenaga looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
As per this comment, we're merging the PR without lint test succeeding. @Nikhil-Vats are you suggesting that this PR caused the lint error? |
Yes @hayata-suenaga , I have put a comment on that PR so that the authors can confirm. |
I didn't see your coment @Nikhil-Vats can you link it? now I'm afraid that the lint error will fail tests on main 😨 |
@hayata-suenaga I've commented here |
I can create a quick fix PR for the lint failure if this is super urgent. |
@allroundexperts yep let's open a PR |
Sure thing. Creating now. |
Draft PR #26124 Filling in the checklist. |
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.59-0 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.60-0 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.60-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.60-3 🚀
|
const currentWaypoint = lodashGet(transaction, `comment.waypoints.waypoint${waypointIndex}`, {}); | ||
const waypointAddress = lodashGet(currentWaypoint, 'address', ''); | ||
const totalWaypoints = _.size(lodashGet(transaction, 'comment.waypoints', {})); | ||
// Hide the menu when there is only start and finish waypoint | ||
const shouldShowThreeDotsButton = totalWaypoints > 2; |
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 caused a regression in #35644 , The delete option should not be displayed for empty waypoints.
Details
Adds the option to delete a stop using three dots menu with confirmation modal.
Fixed Issues
$ #25901
PROPOSAL: #25901 (comment)
Tests
Delete stop
there. Click on it.Offline tests
Same as above.
QA Steps
Same as above.
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
25984_web.mp4
25984_web_offline.mp4
Mobile Web - Chrome
25984_mweb_chrome.mp4
Mobile Web - Safari
25984_mweb_safari.mp4
Desktop
25984_desktop.mp4
iOS
25984_ios.mp4
Android
25984_android.mp4