pediatric-ai-scribe-v3/public/js
Daniel Onyejesi 23d39dec65 Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5
pdf-parse (was v2, broken API):
- Downgraded to v1.1.1 — default export is a function again
- pdfParse is not a function error fixed

WebDAV file selection (style.display bug, same cascade issue):
- lh-ai-webdav-selected had inline style="display:flex" always visible
- selectWebdavFile() / deselectWebdavFile() now use element.style.display
- On select: browser div hides, selected indicator shows with file name + X
- On deselect (X): indicator hides, browser shows again

Topic context for Upload and Nextcloud tabs:
- Both tabs now have optional "Topic / context" field
- Sent to backend as 'topic' param to help AI focus the generated content

Inline refine bar (replaces window.prompt):
- Refine Body button shows/hides an amber inline input bar below generate buttons
- Enter instructions, press Apply — no browser dialog, works in all contexts

CSP: remove unsafe-inline from scriptSrc (security issue #2):
- Converted all 26 onclick= handlers in component HTML files to
  data-action / data-target / data-label attributes
- Added delegated click handler in app.js for copy/speak/nc-export actions
- script-src now 'self' only; script-src-attr 'none'

WebDAV path endpoint (security issue #5):
- New POST /api/user/webdav-path (authMiddleware only, not moderator)
- nextcloud.js updated to use new endpoint

nodemailer: already at 6.10.1 (vulnerability fixed).
2026-03-24 02:28:43 -04:00
..
admin.js Dedicated CMS page, responsive email templates, security fixes in auth 2026-03-23 20:13:22 -04:00
app.js Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5 2026-03-24 02:28:43 -04:00
auth.js Revert auth to localStorage tokens, fix slide padding, AI panel options 2026-03-24 01:57:59 -04:00
chartReview.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
encounters.js Fix: chart review New clears all fields/notes, date context for AI, Bedrock vendor model-only models 2026-03-23 18:12:07 +01:00
hospitalCourse.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
learningHub.js Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5 2026-03-24 02:28:43 -04:00
liveEncounter.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
memories.js Feat: admin CMS, save/resume encounters, user templates, SSHADESS, well visit notes, sick visit, ROS/PE checklists, ICD-10 diagnoses 2026-03-22 16:43:39 -04:00
milestones.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
milestonesData.js v3.0: Add multi-provider Bedrock models, newborn milestones, Converse API 2026-03-23 22:13:19 +01:00
nextcloud.js Fix WebDAV selection, pdf-parse, prompt(), CSP, security issues 1/2/4/5 2026-03-24 02:28:43 -04:00
pediatricScheduleData.js Add growth velocity, feeding guidance, BMI classification to well visits 2026-03-23 23:11:24 +01:00
shadess.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
sickVisit.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
soap.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
voiceDictation.js Fix module init: defer all tab scripts until component HTML is loaded 2026-03-23 22:03:54 -04:00
wellVisit.js Fix vaccine/catchup tabs and serve Quill locally 2026-03-23 22:59:47 -04:00