diff --git a/apps/web/src/app/accounts/[id]/page.tsx b/apps/web/src/app/accounts/[id]/page.tsx index 7f211ef..966a0f9 100644 --- a/apps/web/src/app/accounts/[id]/page.tsx +++ b/apps/web/src/app/accounts/[id]/page.tsx @@ -131,31 +131,34 @@ export default async function AccountDetailPage({ params }: AccountDetailPagePro - {/* Unpair — entire card opens the confirm dialog */} + {/* Unpair — transparent + > + + +
+

+ {account.label} +

+

+ {account.phoneNumber ?? "Not paired"} +

+
+ {connected ? ( + + ) : ( + + )} + + ); })} diff --git a/apps/web/src/test/no-button-wrapping-card.test.ts b/apps/web/src/test/no-button-wrapping-card.test.ts new file mode 100644 index 0000000..eb48f83 --- /dev/null +++ b/apps/web/src/test/no-button-wrapping-card.test.ts @@ -0,0 +1,103 @@ +import { describe, it, expect } from "vitest"; +import { readdirSync, readFileSync, statSync } from "node:fs"; +import { join, relative } from "node:path"; + +/** + * Static guard: no `.tsx` file may contain a literal ``). + * + * That nesting is invalid HTML — `".length; + } + return hits; +} + +describe("static guard: no