whisper-money/resources/js/pages/open-banking
Víctor Falcón 6cb8d11563
feat(connections): create a new account from the manage-accounts selector (#560)
## What

In the per-connection **Manage accounts** screen, the discovered-account
card now uses a single selector to choose where a newly detected bank
account syncs. The selector lists **"Create new account"** first,
followed by the compatible existing manual accounts — replacing the
previous separate "Create account" / "Link to existing" buttons.

The **"Add accounts"** header now stacks vertically on mobile
(title/description, then a full-width "Load accounts" button) and stays
a row on `sm+`.

## Why

Consolidating *create* and *link* into the same control matches how
users think about the action ("where should this account go?") and
removes the two side-by-side buttons that overflowed horizontally on
small screens.

## Notes

- **Backend unchanged**: `ConnectionAccountController@map` already
supported both `action: create` and `action: link`. This only re-routes
the same calls through the selector (`existingAccountId === null` →
create). Covered by existing tests in
`tests/Feature/OpenBanking/ConnectionAccountTest.php` (9 passing).
- **No new i18n keys**: reuses the existing `Create new account` and
`Select an account` translations.

## Screens

The "Manage accounts" link lives in the per-connection "…" menu and is
gated behind the `ManageBankAccounts` feature flag (admin-only during
rollout).
2026-06-19 12:49:03 +02:00
..
connection-complete.tsx feat(open-banking): finalize bank connection without a session via state token (#498) 2026-06-06 12:12:07 +02:00
manage-accounts.tsx feat(connections): create a new account from the manage-accounts selector (#560) 2026-06-19 12:49:03 +02:00
map-accounts.tsx feat: Integrate EnableBanking as open banking provider (#106) 2026-02-12 09:09:28 +01:00