pediatric-ai-scribe-v3/public
Daniel 6dcdf36c81 fix: resolve a citation by its number, not its position in the array
A marker names a source by the `number` dedupeSources assigns server-side.
Rendering looked it up as sources[n - 1], which works only while the array
order and the numbers agree. Nothing breaks that today, but it is an implicit
contract across a network boundary: any later filtering or reordering of the
list — hiding low-score sources, say — would point citations at the wrong
source silently, which is worse than not linking at all.

Matching on the number cannot drift. Positional lookup remains as the fallback
for a list whose entries carry no number.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
2026-09-10 19:10:54 +02:00
..
.well-known
audio Match TTS voices to the selected LiteLLM model 2026-07-30 17:34:34 +02:00
components fix: correct a false Settings claim; make every test child's stdout pure TAP 2026-09-10 15:41:44 +02:00
css fix: stop iOS zoom, compact model control, quieter composer, better search 2026-09-10 15:26:43 +02:00
data
icons
images/pe-guide
img
js fix: resolve a citation by its number, not its position in the array 2026-09-10 19:10:54 +02:00
vendor
404.html
e2e-harness.html
favicon.ico
index.html fix: image models can be added and offered; solid phone top bar on iOS 2026-09-10 13:46:19 +02:00
manifest.json fix: image models can be added and offered; solid phone top bar on iOS 2026-09-10 13:46:19 +02:00
sw.js harden clinical assistant source handling 2026-05-09 19:59:04 +02:00
template-guide.md feat: add extension import preview 2026-05-08 22:26:53 +02:00