-
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
[Pay meow][$250] "you haven't created any categories" appear for a moment when opening categories in workspace settings #44224
Comments
Triggered auto assignment to @VictoriaExpensify ( |
I reported this issue |
ProposalPlease re-state the problem that we are trying to solve in this issue.after opening the workspace categories, an empty state (You haven't created any categories) is displayed instead of a loading state What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
or
|
ProposalPlease re-state the problem that we are trying to solve in this issue."you haven't created any categories" appear for a moment when opening categories in workspace settings What is the root cause of that problem?From an old account or one without cached data, sometimes we open the category page and the data is not loaded yet.
This leads to a wrong value on
What changes do you think we should make in order to solve the problem?As per the code pattern in the app, we need to use the same approach used in other components.
As we do in other components, it's better to use - const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policyId}`);
+ const [policyCategories, policyCategoriesResult] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policyId}`);
+ const isLoadingPolicyCategories = isLoadingOnyxValue(policyCategoriesResult);
+ const isLoading = !isOffline && isLoadingPolicyCategories;
- const shouldShowEmptyState = !categoryList.some((category) => category.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) && !isLoading;
+ const shouldShowEmptyState = isEmptyObject(policyCategories) || !categoryList.some((category) => category.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) && !isLoading; What alternative solutions did you explore? |
Job added to Upwork: https://www.upwork.com/jobs/~01ad610832f3c79921 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
I was able to recreate this, agree it's not great but it is a pretty low priority. |
@VictoriaExpensify, can I be C+ here since I reported this issue and already have context ? |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rayane-djouah |
No problem, please go ahead |
@dominictb @devguest07 @devguest07 @dominictb
However, your proposal is a bit redundant but it's correct. We just need to check if
But anyway 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
NA
This is a minor issue
|
@VictoriaExpensify |
@VictoriaExpensify |
So sorry for the delay here! Automation didn't work and I hadn't been made the owner, so I missed it. Everything's paid up now: Payment Summary
Thanks for your work, everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.1-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @ZhenjaHorbach
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718993745779499
Action Performed:
Expected Result:
List of categories appear
Actual Result:
after opening the workspace categories, an empty state (You haven't created any categories) is displayed instead of a loading state
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
2024-06-21.20.28.20.mov
Recording.238.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @VictoriaExpensifyThe text was updated successfully, but these errors were encountered: