pediatric-ai-scribe-v3/public/js
Daniel Onyejesi 747fc3322a Fix Learning Hub search and content viewer isolation
Search (was completely broken):
- wireSearch() registered inside tabChanged for 'learning' tab — runs
  after component HTML is in the DOM (lh-search existed but listener
  was never attached because element was null at IIFE load time)
- Proper debounced search with 350ms delay, Escape key to clear
- Search results show count, 'X results for "query"', Clear Search button
- Empty state with helpful message; loading state while fetching

Content viewer showing feed items beneath it (CSS cascade bug):
- .lh-feed{display:flex} and .lh-category-bar{display:flex} defined
  at CSS lines 513/507 — after .hidden{display:none} at line 242
  So classList.add('hidden') was silently overridden
- showFeed() and showViewer() now use element.style.display with
  explicit values ('flex'/'block'/'none') which always win over class rules
- viewer started hidden via class="hidden"; now shown with style.display='block'
2026-03-24 03:13:22 -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 Fix login flash, quiz in presentations, revert viewer body, feed labels 2026-03-24 02:50:31 -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 Learning Hub search and content viewer isolation 2026-03-24 03:13:22 -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