Repository navigation
feat(rain-sunset): show a closed card for holders whose card the sunset closed - #2911
Open
MusabShakeel576 wants to merge 1 commit into
Open
MusabShakeel576 wants to merge 1 commit into
MusabShakeel576 wants to merge 1 commit into
Conversation
…et closed
The Rain sunset's bulk cancel closes the cards of users who never got the
new card. Until now a closed card read as "no card":
- Home offered to "Activate card".
- The card flow showed "Start spending".
- A card-info link drew the card as if it still worked.
- Every way to the money left on it was hidden, because the balance was
only read while the card was held.
/cards/status now carries rainSunset.cardClosed, and the app uses it:
- The balance on a closed card is still read, and its withdrawal stays
reachable. The collateral read is enabled for it even when the
provider no longer resolves.
- Home banner, closed-balance state: "Your card was closed - withdraw
what is left", plus the new card where it is available. Not closable
while money is left.
- Home banner, closed-empty state: closable, for users with no new card
where they live. Otherwise the banner offers the new card, with
"your previous card was closed" copy.
- A new /card/closed screen explains the closed card, with Withdraw
and/or "Get your new card".
- /card, the activate screen, Home's card, and card-info links send
closed-card users there or to the new card.
- The new-card and withdraw screens send them back there, not to the
card pane.
- The card notice and the pane show "Card closed" and hide the card
actions (Add funds, Freeze, Manage).
- The Home prompt ladder no longer offers to activate a card the sunset
closed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015YMpab2Vw47wWsFWh3YQxz
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
Contributor
Author
|
@coderabbitai review Generated by Claude Code |
Contributor
Action performed
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Rain sunset: the backend can now close, in bulk, the Rain cards of users who never got the new card (Solid-Money/solid-backend#2345). In the app a closed card used to read as "no card":
/cards/statusnow carriesrainSunset.cardClosed, and the app uses it:closed-balance: "Your card was closed" / "Withdraw the $X left on it to your wallet", with Withdraw and, where available, "Get new card". Not closable while money is left.closed-empty: for users with no new card where they live. Closable./card/closed: explains the closed card, with Withdraw and/or "Get your new card"./card, the activate screen, Home's card tap and?screen=card-infolinks send closed-card users there, or to the new card.Works with older backends: without
cardClosednothing changes.Tests
lib/utils/__tests__/rainSunset.test.tscovers, for a closed card:routesToClosedCard).lib/utils/__tests__/homePromptStep.test.ts: no "Activate card" for a sunset-closed card.jestrun: everything passes except 24 suites that also fail on unchangedmasterin this environment (a Jest transform problem and private@wirexapp/ Firebase packages that aren't installed). None of them touch these files.tsc --noEmit: no errors in the changed files. The 24 remaining errors are the same missing-package ones as onmaster.Release
This is JS-only (no native changes), so it can ship as an OTA update to 2.1.0.
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit