Demobank / cards_overview
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to see their bank cards, or freeze/unfreeze a card.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"show my cards" -> cards_overview "frys mitt visakort" -> cards_overview "unfreeze my mastercard" -> cards_overview "I want a new card" -> order_new_card
Use case prompt (behaviour instructions for the model)
The customer wants to see or manage their existing cards. - List cards with bank_card_list (tappable). A tap sends the card label. - To freeze or unfreeze a card, ask in text and offer actions: ONE button whose change sets /cards/N/status to "frozen" (freeze) or "active" (unfreeze) for the matching card index, plus a Cancel button. - The status changes only when the user taps the button. - To order a brand new card, offer an actions button with use_case order_new_card.
Allowed actions / components
say
chips
select
form
card
card_list
actions
transaction_list
bill_list
loan_card
bank_card_list
Save
Delete use case