Skip to content

feat(savings): give each vault its own FAQ - #2513

Merged
MusabShakeel576 merged 1 commit into
masterfrom
claude/charming-faraday-12xciz
Sep 13, 2026
Merged

MusabShakeel576 merged 1 commit into
masterfrom
claude/charming-faraday-12xciz

Conversation

@MusabShakeel576

@MusabShakeel576 MusabShakeel576 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Implements Update the vaults FAQ using the copy Luka posted on the item, verbatim.

Problem

VaultFaqCard took no props and read the single global constants/faqs.tsx list, so all three vault detail pages rendered the same soUSD-centric questions. Someone opening the ETH or FUSE vault was asked "What is SoUSD?" and "Why didn't I receive 1 SoUSD per 1 USDC?".

Every other card on the screen already receives selectedVaultType — the FAQ card was the one that didn't.

Changes

  • constants/vault-faqs.ts (new) — VAULT_FAQS: Record<VaultType, Faq[]> plus a getVaultFaqs accessor that falls back to the USDC list for an unknown type.
  • VaultFaqCard — takes vaultType and reads the matching list. Accordion values are now scoped to the vault (${vaultType}-faq-${index}), so switching vaults on the same mounted screen collapses the rows instead of leaving an index expanded onto a different question.
  • SavingsScreenNew — passes selectedVaultType through.
  • constants/__tests__/vault-faqs.test.ts (new) — 5 tests covering the split.

The global constants/faqs.tsx is untouched; the landing page and the legacy savings screens keep the general "What is SOLID?" list.

Copy

All 14 answers are reproduced exactly as written on the Monday item — no rewording, punctuation changes, or added emphasis, verified by diff against the source text.

Two claims I spot-checked against the backend and found accurate:

  • Skip the Linefuse-vault.service.ts is the source of truth for the tier unlock and reads the user's soFUSE share balance × accountant rate, not a wallet FUSE balance. Prime/Ultra default to 50,000 / 400,000 FUSE (app-config.constants.ts:718-719). Worth knowing these are admin-tunable AppConfig values rather than constants, so the numbers in this copy could drift — same as the existing fallbacks in tierFees.ts.
  • soUSD backing the card — Wirex cards hold no balance and debit the Safe on settlement, so savings and card balance are the same money.

Testing

  • npx jest constants/__tests__/vault-faqs.test.ts — 5 passed
  • npx tsc --noEmit — 9 errors, identical to the count on a clean master checkout; none in the touched files
  • npx eslint on all four files — clean

No OOM; lint and tests both ran normally.

🤖 Generated with Claude Code

https://claude.ai/code/session_019daPVkNqbwvt4mroiM53x8

@vercel

vercel Bot commented Sep 13, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 13, 2026 12:45pm UTC
solid-app-staging Ignored Ignored Preview Sep 13, 2026 12:45pm UTC

Request Review

@claude

claude Bot commented Sep 13, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

The vault detail screen rendered one soUSD-centric FAQ list on all three
vaults, so someone opening the ETH or FUSE vault was told what soUSD is
and why they didn't receive 1 soUSD per USDC.

VaultFaqCard now takes the selected vault type and reads from a per-vault
list, with the accordion values scoped to the vault so switching vaults
on the same mounted screen collapses the rows rather than leaving an
index expanded onto a different question.

Copy is product-owned and reproduced verbatim.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019daPVkNqbwvt4mroiM53x8
@MusabShakeel576
MusabShakeel576 force-pushed the claude/charming-faraday-12xciz branch from a627b30 to 429d179 Compare September 13, 2026 12:45
@MusabShakeel576
MusabShakeel576 merged commit cc68763 into master Sep 13, 2026
5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/charming-faraday-12xciz branch September 13, 2026 12:57
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