Open carlosmiceli opened 1 week ago
Triggered auto assignment to @abekkala (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Job added to Upwork: https://www.upwork.com/jobs/~021833231500737320464
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External
)
Edited by proposal-police: This proposal was edited at 2024-09-09 19:59:01 UTC.
RHN throws error if tags are deleted by admin while member is selecting.
We show not found page when there are non enabled options here https://github.com/Expensify/App/blob/1b479b0602158fea8eb427fb215a14a18926c58f/src/pages/iou/request/step/IOURequestStepTag.tsx#L80-L81
We should implement empty state component as we did for category step page here
https://github.com/Expensify/App/blob/1b479b0602158fea8eb427fb215a14a18926c58f/src/pages/iou/request/step/IOURequestStepCategory.tsx#L171-L174
and display the empty section when shouldShowTag
is false but we should remove !shouldShowTag
condition from shouldShowNotFoundPage
const isLoading = !isOffline && policyTags === undefined;
const shouldShowEmptyState = !isLoading && !shouldShowTag;
(We might display not found page for non isReportInGroupPolicy
instead of empty section as it might make more sense, we can apply the same change in category page too)
and display tag picker only when !shouldShowEmptyState && !isLoading
and show loading indicator when isLoading
We should also use a new emptyTag
title and subtitle copy
We should also set up edit tag button equivalent to edit category button (with the respective copy text and route to navigate to) here https://github.com/Expensify/App/blob/1b479b0602158fea8eb427fb215a14a18926c58f/src/pages/iou/request/step/IOURequestStepCategory.tsx#L180-L197 The button will appear if the user is an admin
To allow the user to easily create tags and navigate back to money request flow, we can create a similar page to SETTINGS_CATEGORIES_ROOT
with the WorkspaceTagsPage
component (as we did for category by linking the same WorkspaceCategoriesPage in MoneyRequestModalStackNavigator
here )
We will add tag root screen to SCREENS.RIGHT_MODAL.MONEY_REQUEST
and link it to a route like settings/:policyID/tags
and add the screen in MoneyRequestModalStackNavigator
(WorkspaceTagsPage
)
We will pass MONEY_REQUEST_STEP_TAG
route to backTo
to allow the user to come back to the money request tag edit flow ROUTES.MONEY_REQUEST_STEP_TAG
I provided a simple and correct proposal
RHN throws error if tags are deleted by admin while member is selecting
We haven't added Empty View to IOURequestStepTag
Idea: We should show the empty view with the Edit button exclusively for admins, following the same approach we used for the category page https://github.com/Expensify/App/blob/968b610b1cb3f46349ff50587d4a13948d1453b9/src/pages/iou/request/step/IOURequestStepCategory.tsx#L171-L199
Note: In IOURequestStepTag, the isLoading variable is unnecessary because we don't fetchData as we do in IOURequestStepCategory
Step to Implement:
{!shouldShowTag && (
<View style={[styles.flex1]}>
<WorkspaceEmptyStateSection
......
/>
{PolicyUtils.isPolicyAdmin(policy) && (
<FixedFooter style={[styles.mtAuto, styles.pt5]}>
.....
</FixedFooter>
)}
</View>
)}
{shouldShowTag && (
Current Code
)}
### What alternative solutions did you explore? (Optional)
Sorry forgot to notify Updated
But note that my last update is hours before the other proposal above
Ok. thanks everyone for the proposal and suggestions. I am inclined to implement a similar page like category selection.
@FitseTLT Looks like you are suggesting a couple more changes and some of them are enhancements.
Could you please structure your proposal in parts and clean it a bit?
@parasharrajat How about my proposal?
Ok. thanks everyone for the proposal and suggestions. I am inclined to implement a similar page like category selection.
@FitseTLT Looks like you are suggesting a couple more changes and some of them are enhancements.
Could you please structure your proposal in parts and clean it a bit?
@parasharrajat I have organized my proposal as per your request π
@cretadn22 I will review that in sometime.
@FitseTLT's proposal looks good to me. @cretadn22 I don't see any differences in the approach. Your proposal looks identical to @FitseTLT.
:ribbon: :eyes: :ribbon: C+ reviewed
Current assignee @carlosmiceli is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
π£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πΈ
π£ @FitseTLT π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Sorry to miss this, assigned to @FitseTLT !
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:v9.0.30-19 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:Carlos Miceli Slack conversation:
Action Performed:
Expected Result:
There should be an "there are no tags yet" message.
Actual Result:
Workspace member sees an error view in the RHN instead.
Workaround:
Unknown.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/444e3dcc-b6e1-4c9e-b68a-1178abdf3217
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajat