Repository navigation
Description
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:
Reproducible in staging?:
Reproducible in production?:
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @joekaufmanexpensify
Slack conversation (hyperlinked to channel name): ts_external_expensify_convert
Action Performed:
- Enable company cards in workspace settings
- Click Add cards and select any bank
- Select Direct and go offline
- Click Next
- When trying to assign card on direct feed specifically
- The Assign card option is allowed when offline
Expected Result:
Authenticate via bank mode not displayed when User is in offline
Next button and the Assign card button in modal for direct feeds should be disabled when offline.
Using PAttern B is hard here as the connection expires often soon so there is high chance the call could fail
Actual Result:
Authenticate via bank mode displayed. Same result observed when you try to assign cards while offline and need to authenticate first.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Standalone
- Android: HybridApp
- Android: mWeb Chrome
- iOS: Standalone
- iOS: HybridApp
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
2025-01-10_12-01-43.mp4
2025-01-10_12-18-15.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021878570494468361150
- Upwork Job ID: 1878570494468361150
- Last Price Increase: 2025-02-19
- Automatic offers:
- huult | Contributor | 105707373
Issue Owner
Current Issue Owner: @rojiphilMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jan 10, 2025
Triggered auto assignment to @twisterdotcom (
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.Shahidullah-Muffakir commentedon Jan 10, 2025
Edited by proposal-police: This proposal was edited at 2025-01-13 00:32:37 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
When the user is offline:
App/src/pages/workspace/companyCards/addNew/SelectFeedType.tsx
Lines 91 to 92 in 15f0b50
App/src/components/SelectionList/BaseSelectionList.tsx
Lines 862 to 864 in 15f0b50
App/src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx
Line 152 in 5ffe883
What changes do you think we should make in order to solve the problem?
Disable the Assign Card button when the user is offline:
|| isOfflinecondition to the existing check at this location:Disable the Next button in the feed type selection:
BaseSelectionListPropscalledisConfirmButtonDisabledto convey the purpose clearly.isConfirmButtonDisabled={isOffline}at this location:App/src/pages/workspace/companyCards/addNew/SelectFeedType.tsx
Lines 91 to 93 in 15f0b50
BaseSelectionListto use the new prop by setting:`
App/src/pages/workspace/companyCards/WorkspaceCompanyCardsListHeaderButtons.tsx
Lines 85 to 88 in c30c298
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
In the feed selection type, instead of disabling the next button, show the
FullPageOfflineBlockingViewby changing the following code in SelectFeedType.tsx as:allgandalf commentedon Jan 11, 2025
please assign me here, Probably not open for proposals , maybe CallStack would work on this as part of project , right @mountiny ?
[-]When adding a direct card feed, we link you out to the bank to authenticate while offline[/-][+][$250] When adding a direct card feed, we link you out to the bank to authenticate while offline[/+]melvin-bot commentedon Jan 12, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021878570494468361150
36 remaining items
twisterdotcom commentedon Feb 18, 2025
Payment Summary:
[-][Due for payment 2025-02-18] [$125] When adding a direct card feed, we link you out to the bank to authenticate while offline[/-][+][Awaiting checklist] [$125] When adding a direct card feed, we link you out to the bank to authenticate while offline[/+]rojiphil commentedon Feb 19, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
rojiphil commentedon Feb 19, 2025
@mountiny Can we reset the compensation back to the default amount here i.e. $250? The reason being that we initially thought this was just a matter of disabling the buttons but we went ahead to implement using offline page/modal.
What do you think?
[-][Awaiting checklist] [$125] When adding a direct card feed, we link you out to the bank to authenticate while offline[/-][+][Awaiting checklist] [$250] When adding a direct card feed, we link you out to the bank to authenticate while offline[/+]melvin-bot commentedon Feb 19, 2025
Upwork job price has been updated to $250
mountiny commentedon Feb 19, 2025
@rojiphil Fair updated, but I think @twisterdotcom might have to update the pay to @huult
huult commentedon Feb 19, 2025
thank you, @mountiny
rojiphil commentedon Feb 19, 2025
Requested in ND
twisterdotcom commentedon Feb 19, 2025
Added a $125 bonus for @huult.
garrettmknight commentedon Feb 19, 2025
$250 approved for @rojiphil