Coming from this Slack thread, we want to add a card status column to the Expensify Card table, alongside the proposed Remaining Limit column (#95036).
Details
- We have received feedback from customers that they want to be able to easily tell whether a card is active, awaiting order, in transit, etc., directly from the Expensify Card table.
- To do this, let's add a "Status" column to the Expensify Card table with the following values, mapped from
CONST.EXPENSIFY_CARD.STATE:
- Pending order —
STATE_NOT_ISSUED (2), physical only
- Shipped —
NOT_ACTIVATED (4), physical only
- Active —
OPEN (3), physical + virtual
- Inactive —
STATE_SUSPENDED (7), physical + virtual — covers any scenario where a card can't be used (i.e., frozen, flagged for potential fraud, limit set to $0, bank account locked, etc.)
- States 5 (
STATE_DEACTIVATED) and 6 (CLOSED) are already excluded from this table by filterInactiveCardsForWorkspace and don't need handling.
- The stat is already available in Onyx, so I don't think we need any backend changes.
- With this column and the Remaining Limit column both being added, the table will need the column-hide-on-narrow-screens pattern already used elsewhere. We're thinking it's fine to hide status on a narrow screen.
Current Expensify Card table
Upwork Automation - Do Not Edit
Coming from this Slack thread, we want to add a card status column to the Expensify Card table, alongside the proposed Remaining Limit column (#95036).
Details
CONST.EXPENSIFY_CARD.STATE:STATE_NOT_ISSUED(2), physical onlyNOT_ACTIVATED(4), physical onlyOPEN(3), physical + virtualSTATE_SUSPENDED(7), physical + virtual — covers any scenario where a card can't be used (i.e., frozen, flagged for potential fraud, limit set to $0, bank account locked, etc.)STATE_DEACTIVATED) and 6 (CLOSED) are already excluded from this table byfilterInactiveCardsForWorkspaceand don't need handling.Current Expensify Card table
Upwork Automation - Do Not Edit