Open IuliiaHerets opened 6 hours ago
Triggered auto assignment to @mallenexpensify (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.
Assigned cards only appears after visiting Expensify Card page.
OpenWorkspaceMembersPage
does not return the cardList
for that workspace.
We need to manually call OpenPolicyExpensifyCardsPage
API in either workspace members page or workspace member details page.
Edited by proposal-police: This proposal was edited at 2024-11-22 11:59:31 UTC.
Assigned cards is missing in profile unless Expensify Card is opened first
When the user opens WorkspaceMemberDetailsPage
before opening ExpensifyCardsPage
, expensifyCards
becomes undefined
since Policy.openPolicyExpensifyCardsPage
is not called yet.
https://github.com/Expensify/App/blob/2166dffba5b3f0283d5cf2d9f0b700749c8fdcf1/src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx#L65
And assigned cards won't be displayed
https://github.com/Expensify/App/blob/2166dffba5b3f0283d5cf2d9f0b700749c8fdcf1/src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx#L311-L319
There are more similar issues:
More features' page of a workspace
Expensify Cardradio button won't be locked since
ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST` is not loaded yet.
https://github.com/Expensify/App/blob/2166dffba5b3f0283d5cf2d9f0b700749c8fdcf1/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx#L114-L118Profile
page of a workspace This will remove all card feeds and assigned cards.
message on Delete workspace
modal won't be displayed since ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST
is not loaded yet. We should call Policy.openPolicyExpensifyCardsPage(route.params.policyID, workspaceAccountID);
in WorkspaceProfilePage
We can either call it in the useFocusEffect
https://github.com/Expensify/App/blob/2166dffba5b3f0283d5cf2d9f0b700749c8fdcf1/src/pages/workspace/WorkspaceProfilePage.tsx#L104-L107
Or call it in a dedicated useEffect
adding route.params.policyID
, workspaceAccountID
as dependencies
Or we can call it from fetchPolicyData
Note: optionally ,we can stop calling Policy.openPolicyExpensifyCardsPage
from Expensify cards
page since we are already loading the data on Workspace Profile page
https://github.com/user-attachments/assets/7a11b354-26e0-495e-951f-387b67062317
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.65-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: applausetester+kh081111@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
In Step 8. Assigned cards section should appear without having to visit Expensify Card page first.
Actual Result:
In Step 8. Assigned cards section does not appear when Expensify Card page is not visited first. It only appears after visiting Expensify Card page in Step 11.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/4e96e8c1-df06-4041-ab88-43461c8ea6ac
View all open jobs on GitHub