Skip to content

[$250] Add card status to Expensify Card table #95638

Description

@joekaufmanexpensify

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 orderSTATE_NOT_ISSUED (2), physical only
    • ShippedNOT_ACTIVATED (4), physical only
    • ActiveOPEN (3), physical + virtual
    • InactiveSTATE_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

Image
Upwork Automation - Do Not Edit

Metadata

Metadata

Labels

DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsNewFeatureSomething to build that is a new item.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions