-
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
Adds Violations Requirements to MoneyRequestConfirmationList #31380
Adds Violations Requirements to MoneyRequestConfirmationList #31380
Conversation
This is resolved. |
@@ -699,6 +698,7 @@ function MoneyRequestConfirmationList(props) { | |||
titleStyle={styles.flex1} | |||
disabled={didConfirm} | |||
interactive={!props.isReadOnly} | |||
rightLabel={Permissions.canUseViolations() && Boolean(props.policy.requiresCategory) ? translate('common.required') : ''} |
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.
Everything looks good, but I need to make sure we're setting requiresCategory
and requiresTag
in the policy object in Onyx
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.
@cead22 is that something to be addressed here or in a separate issue?
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 confirmed this is how this is supposed to be 👍
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.
@cead22 just following up here. I'm rewriting the testing instructions and I've set the proper requirements in old Dot to have categories and tags be required, however I'm not seeing requiresTags
or requiresCategories
coming through anywhere on the props from Onyx, in the policy object or otherwise. props.policyTags.Tag.required
comes through correctly but that's it.
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.
Yeah that's fine, maybe we can skip QA steps that depend on those values being true for now, since the backend change for that isn't ready yet
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.
Alright @cead22, I updated the test cases and made a note in the QA section that links to this thread.
@cdanwards can you update your tests and QA sections
|
@shawnborton can you please take a look and see if we need different styles on the |
Hi @cead22, I need to test another relatively complex modal refocusing issue first. Could you please un-assign me here or assign another C+ if needed? 😄 |
Yup, we do need some style adjustments. The text should be using our textSupporting color, and it should be in our label font size (13px). |
@cdanwards after pulling main, app crashes
|
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.
use usePermissions()
hook.
Check #31420 for reference.
@situchan thanks for the review! I'll get it updated. |
…ions/required-confirmation-list
Reviewer Checklist
Screenshots/VideosiOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.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.
✋ 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/cead22 in version: 1.4.2-0 🚀
|
Hello @cdanwards, can you please help us, where I can set the |
@izarutskaya apologies! If you're able to access the |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.2-3 🚀
|
Details
Fixed Issues
$ #31090
PROPOSAL:
Tests
Configuring Categories and Tags in Old Dot
For Categories:
Settings > Workspaces > [the workspace] > Categories
.For Tags:
Settings > Workspaces > [the workspace] > Tags
.Test Steps
General Steps:
canUseViolations
Permissions to true within thePermissions
file.Case 1: Neither Categories nor Tags Required
Required
tag.Case 2: Both Categories and Tags Required
Required
tag.Case 3: Only Categories Required
Required
tag and Tags do not.Case 4: Only Tags Required
Required
tag and Categories do not.Additional Steps for Forced Requirement Display
MoneyRequestConfirmationList
, setshouldShowTags
andshouldShowCategories
to true.Boolean(props.policy.requiresCategories)
andBoolean(props.policy.requiresTags)
to true. Note: This will cause an error if not implemented correctly due to normal guards being disabled.Offline tests
Same as Tests
QA Steps
QA should be skipped for now: see here
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(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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop