Skip to content

feat(ui): add app shell with input, voice, and generate controls - #17

Merged
prateekchaplot merged 1 commit into
mainfrom
arch/tts/t3.1
Nov 21, 2026
Merged

prateekchaplot merged 1 commit into
mainfrom
arch/tts/t3.1

Conversation

@prateekchaplot

Copy link
Copy Markdown
Owner

Task T3.1 from docs/ARCHITECTURE.md §14.2.

What changed

  • Replaced the first four App placeholders with ErrorBanner, InputPanel, VoicePanel, and GenerateBar; Playback/History stay as placeholders for T3.2/T3.3.
  • Text entry with paragraph preservation, 50k-char warning, and plain-text .txt upload (errors surface through the banner, upload never starts a generation).
  • Voice list/preview, rate (0.5–2.0) and volume (0–1) sliders with clamping and numeric readouts, no-voice guidance that disables generation.
  • Generate → validation → createGeneration → SSE progress/succeeded/failed/cancelled wiring; success fetches detail + audio blob; cancel returns to a ready state.
  • App bootstraps voices + persisted settings through the existing §12 actions (no reducer changes). VoicePanel persists on blur per §12; T4.1 verifies live persistence.
  • New T3.1-owned pure helper module components/validation.ts; additive form/progress styles.

Verification

  • 51 Vitest tests (17 new); ESLint; tsc --noEmit; Prettier (--end-of-line crlf).
  • Live and VITE_API_MODE=mock Vite builds.
  • Mock-mode headless-Chromium check: AC3 unsupported upload, AC4 empty input with no request, AC6 rate/volume clamping, upload into the editable textarea, preview playback, generate→succeeded, cancel→ready, no page/console errors.
  • 196 pytest unit tests; Ruff check/format; strict mypy; git diff --check.
  • Integration suite not re-run (no Python changes).

Decisions / downstream contracts

  • MAX_INPUT_CHARS mirrors §11's 50,000 default; the server stays authoritative.
  • AC3/AC4/AC6 use Vitest + static markup plus the recorded mock-mode browser run (no new frontend test dependencies; §5 unchanged).
  • T3.2: current.audioUrl can be absent if the post-success blob fetch fails (banner explains); PlaybackPanel must handle that. T3.3 restore should dispatch SELECT_HISTORY_ITEM without opening a stream.
  • Tracker notes record the §12 vs §14.2 settings-persistence ownership resolution and the additive styles.css/components/validation.ts additions.

@prateekchaplot
prateekchaplot merged commit 9c81ee4 into main Nov 21, 2026
5 checks passed
@prateekchaplot
prateekchaplot deleted the arch/tts/t3.1 branch November 21, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant