-
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
[$250] Category - On deleting a category, full category list moves #53281
Comments
Triggered auto assignment to @JmillsExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On deleting a category, full category list moves in android but not in mweb. What is the root cause of that problem?In some conditions, in App/src/pages/workspace/categories/CategorySettingsPage.tsx Lines 122 to 126 in 03639a9
When navigating back, category list still hold the data before deleting, then updated with new value after onyx data is updated, which causes list move. Similar problem appears in Screen.Recording.2024-11-29.at.06.44.33.movAnd possibly from Distance Rate Page, Tax page, and Report Fields page as well. What changes do you think we should make in order to solve the problem?Wrap App/src/pages/workspace/categories/CategorySettingsPage.tsx Lines 122 to 126 in 03639a9
const deleteCategory = () => {
Category.deleteWorkspaceCategories(policyID, [categoryName]);
setDeleteCategoryConfirmModalVisible(false);
InteractionManager.runAfterInteractions(() => {
navigateBack();
});
}; Apply the same for other pages mention in RCA. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.On deleting a category, full category list moves What is the root cause of that problem?This happens as the navigation action runs before the Onyx update occurs: App/src/pages/workspace/categories/CategorySettingsPage.tsx Lines 122 to 126 in 03639a9
What changes do you think we should make in order to solve the problem?We will wrap the Navigation in const deleteCategory = () => {
setDeleteCategoryConfirmModalVisible(false);
Navigation.setNavigationActionToMicrotaskQueue(navigateBack);
} We will check and fix delete behaviour in similar lists. Result:BeforeScreen.Recording.2024-11-29.at.5.42.45.AM.movAfterScreen.Recording.2024-11-29.at.5.45.25.AM.mov |
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
Pretty small "bug" though I'll open it up to the community in the name of polish. |
Job added to Upwork: https://www.upwork.com/jobs/~021864244368136739648 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
@JmillsExpensify, @getusha Huh... This is 4 days overdue. Who can take care of this? |
Awaiting proposal reviews. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Reviewing |
Triggered auto assignment to @carlosmiceli, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thank you for assigning! Raising PR soon |
@JmillsExpensify @carlosmiceli @neonbhai @getusha this issue is now 4 weeks old, please consider:
Thanks! |
@neonbhai any updates? |
@JmillsExpensify, @carlosmiceli, @neonbhai, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Same as last week, waiting for updates from @neonbhai |
Apologies for the delay here 🙇 |
This issue has not been updated in over 15 days. @JmillsExpensify, @carlosmiceli, @neonbhai, @getusha eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This is still being worked on and is awaiting a review from @getusha |
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: 9.0.68-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
On deleting a category, full category list must not move.
Actual Result:
On deleting a category, full category list moves in android but not in mweb.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6679383_1732819702957.az_recorder_20241129_000941.mp4
Bug6679383_1732821765430.az_recorder_20241129_005046.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getushaThe text was updated successfully, but these errors were encountered: