-
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
#26793: Edit a tag in a money request #27950
#26793: Edit a tag in a money request #27950
Conversation
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.
Left a few comments. In general LGTM.
Reviewer Checklist
Screenshots/VideosWebchrome-desktop-2023-09-22_15.01.48.mp4Mobile Web - Chromeandroid-chrome.mp4Mobile Web - Safariios-safari-2023-09-22_15.46.46.mp4Desktopmac-desktop-2023-09-22_16.01.18.mp4iOSios-native-2023-09-22_15.50.17.mp4Androidandroid-native.mp4 |
Tests well, I'm only seeing a small issue so far on mWeb where after refreshing on the edit tag page (or accessing via deeplink) and then selecting a tag, the app navigates back to the home screen (the tag does get set though!): android-chrome-deeplink.mp4 |
No other issues have come up in testing and code LGTM so happy for this to be merged without me once the above is addressed! |
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.
Looking super solid! Just a few minor comments
Oh and one more thing - let's update the QA steps to indicate there are pre-reqs (be on the newDotTags beta and have tags on your policy) |
Checking this now |
Fixed 👍 This bug was also present in the categories, so now it should be fixed in both places. |
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.
Nice! 🚀
✋ 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/amyevans in version: 1.3.75-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
shouldEnableMaxHeight | ||
> | ||
<HeaderWithBackButton | ||
title={tagName || translate('common.tag')} |
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.
Hi, we should have set the tag name here too -
Line 1776 in 27e2efb
return getProperSchemaForModifiedExpenseMessage(reportActionOriginalMessage.tag, reportActionOriginalMessage.oldTag, Localize.translateLocal('common.tag'), true); |
it would have prevented issue #30377 (comment)
Details
Adds support for editing a tag on a money request.
Note: There's no backend support yet for editing a tag or the recently used tags. This requires permissions for tags, mock data setup (see setup below) and the editing won't be saved, just using optimistic data.
Mock data
AuthScreens
add the following code to thecomponentDidMount
:Fixed Issues
$ #26793
Tests
These tests have prerequisites:
Offline tests
Same as above
QA Steps
These tests have prerequisites:
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
ws_t.mp4
w_t.mp4
Mobile Web - Chrome
mc_t.mp4
Mobile Web - Safari
ms_t.mp4
Desktop
desk_t.mp4
iOS
ios_t.mp4
Android
android_t.mp4