-
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
[WAVE 7] Hold Requests: Individual Money Request Page, Reason Interstitial, Banner #33897
[WAVE 7] Hold Requests: Individual Money Request Page, Reason Interstitial, Banner #33897
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
✋ 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/robertjchen in version: 1.4.43-0 🚀
|
valueType="string" | ||
name="comment" | ||
defaultValue={undefined} | ||
label="Reason" |
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.
@BartoszGrajdek We missed translate here and that created #36826
Do you please mind pushing a quick fix?
We have this another issue where composer stays focussed when Hold Request RHP is open. If anyone is interested in taking it 🙏 #36829 |
{ | ||
type: CONST.REPORT.MESSAGE.TYPE.TEXT, | ||
style: 'normal', | ||
text: `held this money request with the comment: ${comment}`, |
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.
And we're also missing translate here and at L3548 below that caused #36836.
I created a proposal #36829 (comment) |
@MonilBhavsar I can create a PR fixing all the regressions you've mentioned, just let me know if you treat this as a regression as well - I think it is one, but I can already see some proposals there, so I don't want to cause any confusion |
Never mind, I can see that you started working on the translation fixes in your PR. I can work on the composer bug, so I am still waiting for info on that one @MonilBhavsar |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
validate={validate} | ||
enabledWhenOffline | ||
> | ||
<Text style={[styles.textHeadline, styles.mb6]}>{translate('iou.explainHold')}</Text> |
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.
We shouldn't have set styles.textHeadline
style for consistency with other pages.
const validate = useCallback((values: FormOnyxValues<typeof ONYXKEYS.FORMS.MONEY_REQUEST_HOLD_FORM>) => { | ||
const errors: FormInputErrors<typeof ONYXKEYS.FORMS.MONEY_REQUEST_HOLD_FORM> = ValidationUtils.getFieldRequiredErrors(values, [INPUT_IDS.COMMENT]); | ||
|
||
if (!values.comment) { | ||
errors.comment = 'common.error.fieldRequired'; | ||
} | ||
|
||
return errors; | ||
}, []); |
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.
Quite an edge case but when user A opens hold request reason and another user B settles the request in the same time, the user A presses the hold button but gets no feedback nor reason page closes. ref: #37014
#37554 issue is probably a regression from this PR. |
This PR causes a regression #37536. Hold Option should not be shown while report is in Scanning state (Not sure whether it was the case before). Also minor alignment issue. |
reportActionID: createdReportAction.reportActionID, | ||
}, | ||
{optimisticData, successData, failureData}, | ||
); |
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.
We should call Report.notifyNewAction(currentReportID, userAccountID);
here to trigger scroll to bottom. Ref: #49959
Details
Fixed Issues
$ #31300
Tests
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 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4