-
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
Show child tags indented on the Tag list #32337
Conversation
There is no checkbox for this. The checkbox is to verify that there are no errors in console in the template. Please do not modify the template significantly. I appreciate adding unit tests and the test for checking category indentation. Please add this as another point as "Verify that tags with the format parent: child are showing indented" after "Select Tags" like
Sample guidelines for test steps are here Checkbox in QA tests section is not ticked. Also that checkbox is for no errors in console. |
Please fetch main because this test is failing. |
Reviewer Checklist
Screenshots/Videos |
@@ -753,7 +753,7 @@ function sortTags(tags) { | |||
* @param {Boolean} [isOneLine] - a flag to determine if text should be one line |
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.
Please change the function description to a more generic description instead of one specifically for category to something like
"Builds the options for the tree hierarchy via indents"
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.
@wlegolas please check the suggestions. |
…ion tree when there is tags in the parent:cuild format
…the OptionsListUtils
d1009da
to
22dfe65
Compare
Hi @c3024, thank you for your points, I changed the PR comment with your suggestions. |
Hi, @c3024 I didn't add tests for checking category indentation because the test below already validates the category indentation. App/tests/unit/OptionsListUtilsTest.js Lines 997 to 1010 in 1682be4
Have you seen another type of test that the test above doesn't cover? |
…archy indentations
Thanks @wlegolas for the changes.
Sorry for being unclear. I meant the regression test video for categories added in the Screenshots/Videos section. Thank you for adding a video verifying category as well after the change. |
LGTM |
Hi @neil-marcellini if you have any questions or suggestions, please let me know. |
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.
Looks great thank you!
✋ 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/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Details
getTagsOptions
to generate the Tag options indented if the tag is in the formatparent: child
parent: child
getCategoryOptionTree
togetIndentedOptionTree
in the OptionsListUtilsFixed Issues
$ #31753
PROPOSAL: #31753 (comment)
Tests
Pre-condition: The Workspace has Tags with the format
parent: child
parent: child
are showing indentedOffline tests
Pre-condition: The Workspace has Tags with the format
parent: child
parent: child
are showing indentedQA Steps
Pre-condition: The Workspace has Tags with the format
parent: child
parent: child
are showing indentedPR 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
test-evidence-Android-Native.mov
Android: mWeb Chrome
test-evidence-Android-mWeb-Chrome.mp4
iOS: Native
test-evidence-iOS-Native.mp4
iOS: mWeb Safari
test-evidence-iOS-mWeb-Safari.mp4
MacOS: Chrome / Safari
Chrome:
test-evidence-MacOS-Chrome.mp4
Safari
test-evidence-MacOS-Safari.mp4
MacOS: Desktop
test-evidence-MacOS-Desktop.mp4
MacOS: Chrome - Regression testing for Categories
regression-testing-for-categories.mov