-
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
[HOLD for payment 2024-03-26] [$500] Category - Unselected subcategories are indented w/o parent when there is <8 categories #37774
Comments
Triggered auto assignment to @JmillsExpensify ( |
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave6 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unselected subcategories are indented w/o parent when there is <8 categories What is the root cause of that problem?We build the option tree for < 8 list (small list) without enabling the App/src/libs/OptionsListUtils.ts Line 1008 in e3b10f7
What changes do you think we should make in order to solve the problem?We have many approaches for this:
To do this, we need to divided the section into two child sections, all with empty title:
Suggested code changeif (numberOfVisibleCategories < CONST.CATEGORY_LIST_THRESHOLD) {
categorySections.push({
title: '',
shouldShow: false,
indexOffset,
data: getCategoryOptionTree(selectedOptions, true),
});
indexOffset += selectedOptions.length;
categorySections.push({
title: '',
shouldShow: false,
indexOffset,
data: getCategoryOptionTree(enabledWithoutSelectedCategories),
});
return categorySections;
}
We handle those logics inside here. What alternative solutions did you explore? (Optional)We can combine those two approaches to follow whichever we want. Let's see what design team weigh in here. |
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Job added to Upwork: https://www.upwork.com/jobs/~011bca94c973f91072 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
Added the external label. We already have one proposal above. |
Note that I had proposal here #37774 (comment). |
Revise Display Logic: Modify the logic that controls the display of parent and child categories to ensure the selected subcategory appears alongside its parent category in the "Parent: Child" format. UI Component Update: Update or create a new UI component that accurately handles and displays the hierarchy of categories and subcategories, including clear visual indicators for understanding category structure. Cross-Platform Testing: Ensure the solution is tested across all supported platforms (Android, iOS, MacOS, etc.) to confirm the issue is resolved universally. Automated Testing: Add or update existing automated tests to verify the correct display of categories and subcategories, preventing future regressions. |
📣 @Voloda911! 📣
|
I think the smaller list selection should be consistent with the larger list like shown in the picture in approach 1 in this proposal here. Approach 1 works well for this. Proposal here by @gijoe0295 looks good to me. 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Agreed on the first approach outlined by @gijoe0295 |
❌ There was an error making the offer to @c3024 for the Reviewer role. The BZ member will need to manually hire the contributor. |
❌ There was an error making the offer to @gijoe0295 for the Contributor role. The BZ member will need to manually hire the contributor. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-26. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hi @JmillsExpensify Can you please send me a new offer on this job? There're some errors on Upwork site that I cannot accept the existing one. |
@JmillsExpensify We're good for payment. Also please send me a new offer as per ^. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test Proposal
👍 or 👎 |
@JmillsExpensify, @amyevans, @c3024, @gijoe0295 Huh... This is 4 days overdue. Who can take care of this? |
Payment summary:
|
Offer sent to contributor. @c3024 please send your Upwork profile and I'll send an offer as well. |
@JmillsExpensify thanks. Here's my profile link |
Thanks! Both contributor contracts paid, and regression test request has been created, so I'm closing this one. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.47-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4381052
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The selected category will be displayed at the top in Parent: Child format, while the parent category remains for other unselected subcategories
Actual Result:
The parent category moves to the top, and the other two unselected subcategories are indented without parent
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6403074_1709658748482.20240305_175051.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: