pediatric-ai-scribe-v3/client/src
Daniel 8d815ba09e feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page
Port of the vanilla refine-bar + output-actions block that every note
page had (see public/components/{encounter,dictation,soap,sickvisit,
wellvisit,hospital,chart}.html at commit be14578).

One shared OutputActions component renders under every generated
note's body with:

  📋 Copy     → navigator.clipboard
  🔊 Read     → POST /api/text-to-speech  (audio/mpeg → Audio playback
                with stop-on-second-click)
  ☁️ Export   → POST /api/nextcloud/export  (uses each page's exportLabel
                as the filename prefix, exportType in the type field)
  ✏️ Refine   → POST /api/refine — free-text instructions textarea,
                sourceContext carries the original transcript so the
                model can reference the source when following orders
  📏 Shorter  → POST /api/shorten

Busy/success/error state shown inline per-component — no native alerts.
Refine result replaces the existing output via onUpdate, matching
vanilla setOutputText() behavior.

Wired into all 7 note pages (Encounter, Dictation, SOAP, Sick Visit,
Well Visit, Hospital Course, Chart Review) with per-page exportLabel
/ exportType matching the vanilla data-label values.
2026-04-24 05:24:09 +02:00
..
components feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
data feat(client): port full PE_DATA checklist + Generate Exam Report flow 2026-04-24 01:21:44 +02:00
lib feat(notes): restore audio recording + save/load across all 7 note pages 2026-04-24 05:24:09 +02:00
pages feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
shared feat: React auth screen + SPA now serves every route (vanilla retired) 2026-04-24 02:45:21 +02:00
App.tsx feat: React auth screen + SPA now serves every route (vanilla retired) 2026-04-24 02:45:21 +02:00
index.css feat: day 7 — first tab ported to React (Extensions) + Express serves /app/* 2026-04-23 22:09:04 +02:00
main.tsx feat(client): day 6 — scaffold React 19 + Vite + Tailwind v4 + shadcn/ui 2026-04-23 21:58:37 +02:00