legco_ai_assistant/frontend/src
Woody 78d1f8cc91 feat: delta-based ASR transcript — use text field, utterance boundaries, stash on pause
Replace full_text responses with character-level deltas computed from
DashScope's monotonically-growing 'text' field. Stash-only events (empty
text) are skipped; trailing stash chars sent alongside deltas and
appended on pause to complete final sentences.

Backend:
- Delta = text[len(prev_text):] — simple suffix diff, no merge logic
- Track item_id for utterance boundaries, prepend space separator
- Send stash alongside delta for frontend pause handler

Frontend:
- Accumulate deltas locally (transcriptRef += msg.delta)
- Store lastStashRef from each message
- On pause: append stash to text, fire onFinalTranscript

Plan: .plans/phase2_enhancement_delta_sse.md updated to Complete
2026-05-07 11:26:19 +08:00
..
components fix: text accumulation — stashes are sliding windows, merge via overlap detection 2026-05-06 20:06:39 +08:00
hooks feat: delta-based ASR transcript — use text field, utterance boundaries, stash on pause 2026-05-07 11:26:19 +08:00
lib feat: Phase 2.3 ASR proxy + full transcript and 2.4 frontend hooks 2026-05-06 13:41:24 +08:00
pages fix: Phase 2 ASR pipeline — 9 bugs resolved, Full Transcript works end-to-end 2026-05-06 18:26:17 +08:00
test feat: Phase 2.5 video player, upload UI, and LTTPage layout refactor 2026-05-06 14:31:27 +08:00
types feat: delta-based ASR transcript — use text field, utterance boundaries, stash on pause 2026-05-07 11:26:19 +08:00
utils fix: use absolute backend URL for highlight API calls 2026-04-29 10:39:01 +08:00
App.tsx feat(frontend): Phase 3.6 — History page with timing bars, expandable cards, and pagination 2026-04-26 13:19:52 +08:00
main.tsx fix(pdf): polyfill URL.parse for Chrome <129 compatibility 2026-04-28 13:11:54 +08:00
styles.css feat: integrate bullet points in ResponsePanel with CSS list-style 2026-04-28 16:43:30 +08:00