Manage saved cards from the wallet page #4003

Openkvasquez wants to merge 3 commits into main from feat/wallet-saved-cards· opened 3 days ago
+99−0
kvasquez commented 3 days agoAuthor

What

Users can see and manage their saved payment cards on the wallet page: set a default, remove a card and search by nickname.

How

  • useCards, useSetDefaultCard, useRemoveCard (TanStack Query v5), default changes are optimistic
  • SavedCards: list with expired styling, matching text in the nickname is highlighted while searching
  • Mounted on WalletPage

Testing

Added, switched and removed cards on staging. Checked an expired card shows the muted style.

kvasquez added 3 commits 3 days ago
Add card queries and mutations8c4e9ff
Add SavedCards list with search8b4e9e6
Mount SavedCards on WalletPage8e4ea31

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick