-
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
[FIX]: Inconsistent behavior when saving existing name without edit and unnecessary API
calls
#38757
Conversation
@eh2077 I will be the C+ here. Sorry for the wrong ping. |
Friendly bump @shubham1206agra |
@GandalfGwaihir Can you merge main here? |
oh yes @shubham1206agra :) |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-26.at.6.34.23.PM.movAndroid: mWeb ChromeScreen.Recording.2024-03-26.at.6.07.57.PM.moviOS: NativeScreen.Recording.2024-03-26.at.6.17.17.PM.moviOS: mWeb SafariScreen.Recording.2024-03-26.at.6.02.32.PM.movMacOS: Chrome / SafariScreen.Recording.2024-03-26.at.5.59.45.PM.movMacOS: DesktopScreen.Recording.2024-03-26.at.6.12.55.PM.mov |
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.
Thanks, very close @GandalfGwaihir
@mountiny, updated the docs, can you review this again please |
@GandalfGwaihir Fix lint here. |
done @shubham1206agra 👍 |
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.
I would say we could add that comment above the editTAg useCallback but its fine
Thank you for working on this 🚀
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Test were passing |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
We were getting inconsistent errors for
tags
andcategories
, fixed that over here, and also fixed unnecessaryapi
calls which were made without any edit to the text savedFixed Issues
$ #38668
PROPOSAL: #38668 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Precondition:
Observe that when the name is being edit but no change has been done, it do nothing and the modal just closes and the API call is skipped
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
MacOS: Chrome / Safari
Untitled.Project.mp4
MacOS: Desktop
issue38668-macDesktop.mp4
iOS: mWeb Safari
WhatsApp.Video.2024-03-21.at.11.34.14.PM.mp4
iOS: Native
WhatsApp.Video.2024-03-21.at.11.34.11.PM.mp4
Android: Native
simplescreenrecorder-2024-03-21_23.30.06.mp4
Android: mWeb Chrome
simplescreenrecorder-2024-03-21_23.30.22.mp4