-
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
[CP Staging] Update submit function in initial report field value #48109
[CP Staging] Update submit function in initial report field value #48109
Conversation
@ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid build failing consistently.. Sorry Android: mWeb ChromeRecord_2024-08-28-20-48-56.mp4iOS: NativeScreen.Recording.2024-08-28.at.8.58.17.PM.moviOS: mWeb SafariScreen.Recording.2024-08-28.at.8.20.32.PM.movMacOS: Chrome / SafariScreen.Recording.2024-08-28.at.8.13.20.PM.movMacOS: DesktopScreen.Recording.2024-08-28.at.9.17.12.PM.mov |
@cretadn22 There are lint issues |
src/pages/workspace/reportFields/ReportFieldsInitialValuePage.tsx
Outdated
Show resolved
Hide resolved
@cretadn22 Can we just compare
|
@cretadn22, question why does the PR have a number of changes. From the proposal i thought the direction was to just change this line in submitForm
to,
does that change alone not suffice? |
@chiragsalian @ishpaul777 I’ve identified another issue: in the Text report field, if we save the old value, it gets removed. I mentioned this in my proposal.
|
Ahh got it just early return in that case ?
|
@ishpaul777 For List types, we need to remove the old value.
|
it does that already isn't ? Screen.Recording.2024-08-28.at.12.34.28.AM.mov |
@cretadn22 Am i missing something |
@ishpaul777 Please check my comment: #48109 (comment) |
Sorry @cretadn22, I still cannot spot the need for modifying |
@cretadn22 gentle bump, do you mind recording after/before video if i am missing something ? |
Ah thanks for sharing. Yes i see how my code suggestion alone would be incorrect.
Yeah that LGTM. Im also confused by @cretadn22 replies.
So list submit calls submitListValueUpdate With those changes. This condition should be satisfied right,
Can you let us know where it falls short with an example? |
Gentle bump @cretadn22 |
@ishpaul777 Sorry for any confusion earlier. I'm making an update now. |
ad21147
to
7e0703c
Compare
@ishpaul777 @chiragsalian Earlier, I intended to combine the two submit functions into a single function. Sorry if it caused any confusion. |
Lint error @cretadn22 |
Also please merge main |
gentle bump @cretadn22 |
src/pages/workspace/reportFields/ReportFieldsInitialValuePage.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Ishpaul Singh <104348397+ishpaul777@users.noreply.github.com>
I'm here, @ishpaul777. Is there anything else that needs addressing? |
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
[CP Staging] Update submit function in initial report field value (cherry picked from commit 5368e47) (CP triggered by chiragsalian)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/chiragsalian in version: 9.0.25-12 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
Fixed Issues
$ #48106
PROPOSAL: #48106 (comment)
Tests
QA Steps
Offline tests
QA Steps
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
Android: Native
Android: mWeb Chrome
Screen102.mov
iOS: Native
Screen103.mov
iOS: mWeb Safari
Screen101.mov
MacOS: Chrome / Safari
Screen100.mov
MacOS: Desktop
Screen99.mov