The verify pipeline carried two scripts whose targets no longer
exist after the vanilla deletion at commit 25a9c4c:
test/calc-math.test.js — required public/js/calc-math.js (gone);
every assertion is now covered by shared/clinical/
calculators.test.ts (vitest).
scripts/lint-references.js — scans public/js/*.js for DOM id
references and checks each target exists in public/components/
*.html. Those trees are gone; TypeScript + knip + vite build
cover the equivalent dead-reference class for the React tree.
package.json:
• `verify` drops `test:node` and `lint:refs`; now runs
typecheck + vitest + knip + client vite build.
• `test:node` script removed (test/ directory empty).
public/app/assets/ — fresh vite build so the bundle hashes match
the current source (new chunks for ByVisitAge, Cms, DxPicker,
EditableResult, LabsList, Milestones, OutputActions, Recorder,
Shadess, SlideEditor, VisitNote — all features landed in the
preceding commits).
Verified locally on node 20: tsc + 9 test files / 177 tests pass,
knip finds nothing, vite builds 35 chunks, client bundle is 343 kB
initial / 106 kB gzipped (Cms is the biggest lazy chunk at 402 kB
due to Tiptap/ProseMirror).
2 lines
No EOL
2.5 KiB
JavaScript
2 lines
No EOL
2.5 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ByVisitAge-jMcNy23H.js","assets/jsx-runtime-ByY1xr43.js","assets/index-C9wKWOAN.js","assets/preload-helper-BmrihbwG.js","assets/index-D2yFXEFs.css","assets/Milestones-BIwzyW98.js","assets/OutputActions-6XZlmtIw.js","assets/Shadess-DU9cvMlg.js","assets/Recorder-DdXTjnSC.js","assets/VisitNote-B6TwVraG.js","assets/DxPicker-CCeyfxop.js","assets/EditableResult-DaHQp1Pv.js"])))=>i.map(i=>d[i]);
|
|
import{i as e,n as t,t as n}from"./jsx-runtime-ByY1xr43.js";import{t as r}from"./preload-helper-BmrihbwG.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./ByVisitAge-jMcNy23H.js`),__vite__mapDeps([0,1,2,3,4]))),s=(0,i.lazy)(()=>r(()=>import(`./Milestones-BIwzyW98.js`),__vite__mapDeps([5,1,2,3,4,6]))),c=(0,i.lazy)(()=>r(()=>import(`./Shadess-DU9cvMlg.js`),__vite__mapDeps([7,1,2,3,4,6,8]))),l=(0,i.lazy)(()=>r(()=>import(`./VisitNote-B6TwVraG.js`),__vite__mapDeps([9,1,2,3,4,10,11,6,8]))),u=[{id:`byvisit`,icon:`👶`,label:`By Visit Age`},{id:`milestones`,icon:`🍼`,label:`Milestones`},{id:`shadess`,icon:`🧠`,label:`SSHADESS (12+)`},{id:`note`,icon:`📄`,label:`Visit Note`}],d=`ped_wellvisit_subtab`;function f(){try{let e=localStorage.getItem(d);if(e===`byvisit`||e===`milestones`||e===`shadess`||e===`note`)return e}catch{}return`byvisit`}function p(){let[e,t]=(0,i.useState)(f);function n(e){t(e);try{localStorage.setItem(d,e)}catch{}}return(0,a.jsxs)(`div`,{className:`max-w-5xl mx-auto p-6 space-y-4`,children:[(0,a.jsxs)(`header`,{children:[(0,a.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Well Visit / Preventive Care`}),(0,a.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`AAP 2025 Bright Futures periodicity — vaccines, screenings, billing codes, milestones, SSHADESS, and the encounter note.`})]}),(0,a.jsx)(`div`,{className:`flex flex-wrap gap-2`,"data-testid":`wellvisit-subnav`,children:u.map(t=>(0,a.jsxs)(`button`,{type:`button`,onClick:()=>n(t.id),className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors `+(e===t.id?`bg-primary text-primary-foreground border-primary`:`bg-muted hover:bg-muted/80 border-border`),"data-testid":`wellvisit-pill-`+t.id,children:[(0,a.jsx)(`span`,{className:`mr-1`,"aria-hidden":!0,children:t.icon}),t.label]},t.id))}),(0,a.jsxs)(i.Suspense,{fallback:(0,a.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:`Loading…`}),children:[e===`byvisit`&&(0,a.jsx)(o,{}),e===`milestones`&&(0,a.jsx)(s,{}),e===`shadess`&&(0,a.jsx)(c,{}),e===`note`&&(0,a.jsx)(l,{})]})]})}export{p as default}; |