pediatric-ai-scribe-v3/client/src/pages
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
..
Admin.tsx feat(client): port Admin panel — all 10 sub-tabs now run in React 2026-04-24 02:27:50 +02:00
AdminPanels.tsx feat(client): port Admin panel — all 10 sub-tabs now run in React 2026-04-24 02:27:50 +02:00
AdminPanels2.tsx feat(client): port Admin panel — all 10 sub-tabs now run in React 2026-04-24 02:27:50 +02:00
Auth.tsx feat: React auth screen + SPA now serves every route (vanilla retired) 2026-04-24 02:45:21 +02:00
Bedside.tsx feat(client): port Bedside Anaphylaxis + Cardiac + Seizure panels 2026-04-24 01:27:29 +02:00
BedsidePanels.tsx feat(client): port final 5 Bedside panels — all 15 now run in React 2026-04-24 02:00:50 +02:00
BedsidePanels2.tsx feat(client): port final 5 Bedside panels — all 15 now run in React 2026-04-24 02:00:50 +02:00
CalculatorPanels.tsx feat(client): port BP Percentile — all 10 Calculator pills now run in React 2026-04-24 02:15:17 +02:00
Calculators.tsx feat(client): port BP Percentile — all 10 Calculator pills now run in React 2026-04-24 02:15:17 +02:00
Catchup.tsx feat: port Vaccine Schedule + Catch-Up Schedule (real tables, not stubs) 2026-04-23 22:25:41 +02:00
ChartReview.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
Dictation.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
Encounter.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
Extensions.tsx feat: day 7 — first tab ported to React (Extensions) + Express serves /app/* 2026-04-23 22:09:04 +02:00
Faq.tsx feat(client): port FAQ + Dictation to React, add sidebar Layout 2026-04-23 22:16:52 +02:00
HospitalCourse.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
Learning.tsx feat(client): Learning Hub — sanitized HTML body + Marp slide viewer 2026-04-24 02:30:44 +02:00
PeGuide.tsx feat(client): port full PE_DATA checklist + Generate Exam Report flow 2026-04-24 01:21:44 +02:00
ResetPassword.tsx feat: React auth screen + SPA now serves every route (vanilla retired) 2026-04-24 02:45:21 +02:00
Settings.tsx feat(client): port Settings — Voice + Content (8 sub-sections) 2026-04-23 23:40:33 +02:00
SickVisit.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
Soap.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00
VaxSchedule.tsx feat: port Vaccine Schedule + Catch-Up Schedule (real tables, not stubs) 2026-04-23 22:25:41 +02:00
WellVisit.tsx feat(notes): restore Refine / Shorter / Read / Nextcloud export on every note page 2026-04-24 05:24:09 +02:00