Account-level destructive actions (Delete, Unpair, Re-pair) live on the detail page only. The overview is now a calm grid of one card per account, each linking to its detail page. - Removed the dedicated Delete card and its dialog from accounts-list-view.tsx. - The whole account card is once again the link target — no inline trigger surfaces, no Dialog component, no destructive click area. - AccountsListView no longer needs the deleteFormAction prop; the /accounts page passes only `accounts`. Tests updated: - accounts-list-view.test.tsx: 6 tests now (was 8). The two cases that asserted on the delete card are replaced with one positive test that asserts no Delete affordance is rendered on the overview, plus a test that the only `<a>` per cell wraps the card with no inline buttons inside it. - no-render-warnings.test.tsx: drops the obsolete deleteFormAction prop in its renderQuiet calls. Hydration: live curl on /, /accounts, /reminders, /activity, /settings and a detail page returns 200 with no Hydration / script-tag warning in the web logs after this commit. 98 tests passing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
import { AccountsListView } from "@/components/accounts-list-view";
|
|
import { getSeededOperator } from "@/lib/operator";
|
|
import { listAccounts } from "@/lib/queries";
|
|
|
|
export default async function AccountsPage() {
|
|
const op = await getSeededOperator();
|
|
const accounts = await listAccounts(op.id);
|
|
|
|
return <AccountsListView accounts={accounts} />;
|
|
}
|