Skip to content

fix(home): solid setup CTA + stop polling card details every 5s - #2180

Merged
MusabShakeel576 merged 1 commit into
masterfrom
claude/cool-euler-872z13-master
Jun 23, 2026
Merged

fix(home): solid setup CTA + stop polling card details every 5s#2180
MusabShakeel576 merged 1 commit into
masterfrom
claude/cool-euler-872z13-master

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Promotes the home fixes from qa (#2176) to master.

These came from three reported issues on the native home screen:

  1. Cashback stat card changed height while its amount loaded.
  2. Cashback card re-showed its loading skeleton every few seconds.
  3. The "Finish setting up" CTA looked disabled.

On master, the stat cards have already been refactored (the home redesign uses minHeight + a shared HOME_STAT_VALUE_TEXT_STYLE and a showSkeleton = isLoading && !cardDetails guard), so the card-height jump (#1) is already handled there. This promotion therefore carries only the two fixes master still needs:

cardDetailsQueryOptions.ts — issue #2

Drop the 5s refetchInterval and raise staleTime to 60s. Card details (cashback totals / percentage / card metadata) change rarely, and the live card balance is polled separately (cardBalance, every 5s). The interval was needlessly making the cashback card fall back to its loading skeleton "every few seconds."

FinishSetupModal.tsx — issue #3

Use the standard solid variant="brand" button instead of the 20%-opacity bg-button-earning fill, which renders as a muted, disabled-looking green on the dark modal background. Master's text-fitting tweaks (numberOfLines / adjustsFontSizeToFit / padding) are preserved.

Cherry-picked from a74c14d3 (qa); the two stat-card files resolved to master's version since the redesign already covers that fix.

Test plan

  • Home: "Finish setting up" CTA reads as an enabled green button.
  • Home: cashback card does not repeatedly flash its skeleton.

🤖 Generated with Claude Code


Generated by Claude Code

Promotes the home fixes from qa (PR #2176) to master. On master the stat
cards were already refactored (minHeight + shared stat-value style), so the
card-height jump is handled there; this carries the two fixes master still
needs:

- FinishSetupModal: use the solid `brand` button instead of the 20%-opacity
  `bg-button-earning` fill, which renders as a muted, disabled-looking green
  on the dark modal background. Keeps master's text-fitting tweaks.
- cardDetailsQueryOptions: drop the 5s `refetchInterval` and raise staleTime
  to 60s. Card details (cashback totals/percentage) change rarely and the
  live balance is polled separately, so the interval was needlessly making
  the cashback card fall back to its loading skeleton.

Cherry-picked from a74c14d (qa).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pAKfpRFjbH5TJSfNimjJy
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored Jun 23, 2026 1:18pm
solid-app-staging Ignored Ignored Jun 23, 2026 1:18pm

Request Review

@MusabShakeel576
MusabShakeel576 merged commit 975d423 into master Jun 23, 2026
5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/cool-euler-872z13-master branch June 23, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants