diff --git a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-03-Header-Input.md b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-03-Header-Input.md index 6e0d001..2593e3a 100644 --- a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-03-Header-Input.md +++ b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-03-Header-Input.md @@ -38,7 +38,7 @@ Note: `npx vitest run src/__tests__/AnalyseButton.test.tsx` passes; Vitest emits ## Completion - [x] All vitest tests pass: `npx vitest run src/__tests__/HeaderInput.test.tsx src/__tests__/FileDropZone.test.tsx src/__tests__/AnalyseButton.test.tsx` -- [ ] User can paste text into the header input area +- [x] User can paste text into the header input area - [ ] User can drop an EML/TXT file and see it auto-populate the input - [ ] Analyse button is disabled when input is empty - [ ] Ctrl+Enter keyboard shortcut triggers the analyse action diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 0a7f28a..571110c 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,4 +1,12 @@ +"use client"; + +import { useState } from "react"; + +import HeaderInput from "../components/HeaderInput"; + export default function Home() { + const [headerInput, setHeaderInput] = useState(""); + return (
@@ -19,25 +27,7 @@ export default function Home() {
-
-
- Header Input - - 0 / 1MB - -
-
- Paste SMTP headers here. Each line is parsed for sender, - authentication, and delivery hops. -
-
- Tip: - Ctrl - + - Enter - to analyse. -
-
+