From 020803f7dfd094dcf5157943644a28d601629b35 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 7 Dec 2025 17:51:34 +0900 Subject: feat(client): add create deck modal with form validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add CreateDeckModal component that allows users to create new decks with name and optional description fields. Integrates with HomePage via a "Create Deck" button that opens the modal, and refreshes the deck list after successful creation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/client/App.test.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/client/App.test.tsx') diff --git a/src/client/App.test.tsx b/src/client/App.test.tsx index bdc281a..c11eb88 100644 --- a/src/client/App.test.tsx +++ b/src/client/App.test.tsx @@ -37,9 +37,15 @@ vi.mock("./api/client", () => ({ })); // Helper to create mock responses compatible with Hono's ClientResponse -// biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing -function mockResponse(data: { ok: boolean; status?: number; json: () => Promise }) { - return data as unknown as Awaited>; +function mockResponse(data: { + ok: boolean; + status?: number; + // biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing + json: () => Promise; +}) { + return data as unknown as Awaited< + ReturnType + >; } function renderWithRouter(path: string) { -- cgit v1.2.3-70-g09d2