From c191173867ee3b252d0183cf21df29b4b123e2ae Mon Sep 17 00:00:00 2001 From: Prateek Chaplot Date: Sat, 21 Nov 2026 10:52:07 +0530 Subject: [PATCH 1/2] feat(ui): add generation history panel --- frontend/src/App.tsx | 15 +- frontend/src/components/HistoryPanel.test.tsx | 163 ++++++++++ frontend/src/components/HistoryPanel.tsx | 297 ++++++++++++++++++ frontend/src/styles.css | 52 +++ 4 files changed, 517 insertions(+), 10 deletions(-) create mode 100644 frontend/src/components/HistoryPanel.test.tsx create mode 100644 frontend/src/components/HistoryPanel.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d3c767c..4d85c86 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,8 +1,8 @@ /** * Single page layout (ARCHITECTURE.md section 12). * - * Sections stack in their documented order. The history section stays as a - * placeholder until T3.3 replaces it, so that task can own its component file. + * Sections stack in their documented order: ErrorBanner, InputPanel, + * VoicePanel, GenerateBar, PlaybackPanel, HistoryPanel. */ import { useEffect } from "react"; @@ -10,6 +10,7 @@ import { api, apiMode } from "./api"; import { toApiError } from "./api/client"; import { ErrorBanner } from "./components/ErrorBanner"; import { GenerateBar } from "./components/GenerateBar"; +import { HistoryPanel } from "./components/HistoryPanel"; import { InputPanel } from "./components/InputPanel"; import { PlaybackPanel } from "./components/PlaybackPanel"; import { VoicePanel } from "./components/VoicePanel"; @@ -17,7 +18,7 @@ import { clampRate, clampVolume } from "./components/validation"; import { useApp } from "./state/appContext"; export function App() { - const { state, dispatch } = useApp(); + const { dispatch } = useApp(); useEffect(() => { let cancelled = false; @@ -75,13 +76,7 @@ export function App() { -
-

History

-

Recent generations can be restored or deleted.

-

- {state.history.total} saved generation{state.history.total === 1 ? "" : "s"} -

-
+