You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workspace - 'Issue new card' modals appears briefly when open Expensify card #73615
Version Number: v9.2.39-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#72020 Email or phone of affected tester (no customers):duytestnguyen+new182@gmail.com Issue reported by: Applause Internal Team Device used: Windows 11 Home/Chrome App Component: Workspace Settings
Action Performed:
Precondition:
New Login or clearing cached in Account setting
Account has many workspaces. One workspace has expensify card, company card lists
Please re-state the problem that we are trying to solve in this issue.
At step 3, 'Issue new card' modal appears briefly
At step 5, 'Add a card' modal appears briefly
What is the root cause of that problem?
It seems the problem is that initially when we go to the expensify card page we have paymentBankAccountID and isLoading here is false so we don't show ActivityIndicator here
What changes do you think we should make in order to solve the problem?
We should update it to show the ActivityIndicator while isLoading is true
if (!!isLoading || !paymentBankAccountID) { // we can consider to remove `!paymentBankAccountID` here
return (
<ActivityIndicator
size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE}
style={styles.flex1}
/>
);
}
Note: We can also use isLoadingOnyxValue to update this condition. We can do the same with other pages
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
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.
but cardFeeds.isLoading is undefined at the beginning => isLoading is false so we show the empty state
then we trigger fetchCompanyCards that updates cardFeeds.isLoading to true => isLoading is false so we show the loading indicator
when the API calls successfully, cardFeeds.isLoading is false => isLoading is false so we show the empty state
What changes do you think we should make in order to solve the problem?
the logic to detect isLoading is incorrect, so we should update it. Let's create the new state isCardFeedsLoading, it should be true at the beginning the change the false only when the API calls successfully
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
NA
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.
I'm not sure this is worth putting resources into right now, the very breif pop-up is barely noticible - blink and you'd miss it, and I doubt anyone can actually see what it says.
We can revisit this if a customer raises a concern about it. For now, I think there are plently of higher value issues to focus on
Activity
melvin-bot commentedon Oct 28, 2025
Triggered auto assignment to @VictoriaExpensify (
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.daledah commentedon Oct 28, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
At step 3, 'Issue new card' modal appears briefly
At step 5, 'Add a card' modal appears briefly
What is the root cause of that problem?
It seems the problem is that initially when we go to the expensify card page we have
paymentBankAccountIDandisLoadinghere is false so we don't showActivityIndicatorhereApp/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx
Lines 42 to 49 in 805a21f
And we show this
App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx
Lines 50 to 58 in 805a21f
What changes do you think we should make in order to solve the problem?
We should update it to show the
ActivityIndicatorwhileisLoadingis trueApp/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx
Lines 42 to 49 in 805a21f
Note: We can also use
isLoadingOnyxValueto update this condition. We can do the same with other pagesWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
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.
nkdengineer commentedon Oct 28, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
At step 3, 'Issue new card' modal appears briefly
At step 5, 'Add a card' modal appears briefly
What is the root cause of that problem?
Here's the logic to detect
isLoadingApp/src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx
Line 86 in e7b4842
but
cardFeeds.isLoadingis undefined at the beginning => isLoading is false so we show the empty statethen we trigger fetchCompanyCards that updates
cardFeeds.isLoadingto true => isLoading is false so we show the loading indicatorwhen the API calls successfully,
cardFeeds.isLoadingis false => isLoading is false so we show the empty stateWhat changes do you think we should make in order to solve the problem?
the logic to detect
isLoadingis incorrect, so we should update it. Let's create the new stateisCardFeedsLoading, it should be true at the beginning the change the false only when the API calls successfullywe can do the same in ExpensifyCardPage
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
NA
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.
melvin-bot commentedon Oct 31, 2025
@VictoriaExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
VictoriaExpensify commentedon Nov 3, 2025
I'm not sure this is worth putting resources into right now, the very breif pop-up is barely noticible - blink and you'd miss it, and I doubt anyone can actually see what it says.
We can revisit this if a customer raises a concern about it. For now, I think there are plently of higher value issues to focus on