Add accounts: link a bank without Plaid keys points to Setup; delete test data right there

- With no Plaid keys, the page said bank linking "isn't available in United
  States yet". It is: the keys are missing. It now shows Link a bank or card,
  which opens Setup to add the free Plaid keys.
- Test banks: the Delete test data link went to Settings. It's now a button on
  this page, with a confirm, that removes the test bank and its transactions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
minimus7andClaude Opus 5.5 committed 2026-11-11 10:07:02 -06:00
1 parent 3e51cc4fcc
commit fb8e5425c3
5 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ export default async function AddAccountsPage({ searchParams }: { searchParams:
{connect === "done" && <p className="card px-5 py-3 text-sm" role="status">Your bank is connected. Its transactions are on the way.</p>}
{connect === "cancelled" && <p className="card px-5 py-3 text-sm" role="status">The connection was cancelled. Nothing changed.</p>}
{connect === "failed" && <p className="card px-5 py-3 text-sm text-bad" role="alert">That bank didn&apos;t connect. Try again, or import a statement instead.</p>}
{!choices.bank && !choices.feeds.length && !choices.akahuMissing && !choices.alsoAkahu && <p className="text-sm text-muted px-1">Automatic bank linking isn&apos;t available in {country.name} yet. Import a statement from your bank instead: it takes a minute and works with any bank.</p>}
{!choices.bank && !choices.plaidMissing && !choices.feeds.length && !choices.akahuMissing && !choices.alsoAkahu && <p className="text-sm text-muted px-1">Automatic bank linking isn&apos;t available in {country.name} yet. Import a statement from your bank instead: it takes a minute and works with any bank.</p>}
<AddAccounts choices={choices} accounts={accounts} locale={country.locale} currency={country.currency} country={country.code} />
{choices.akahuMissing && (
<p className="text-sm text-muted px-1">To sync NZ banks automatically, add Akahu keys on the <a href="/setup" className="underline underline-offset-2">Setup page</a>. Until then, import a statement from your bank.</p>