Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.78 KB

orphaned-code.md

File metadata and controls

41 lines (30 loc) · 1.78 KB

Orphaned / legacy code

After the theme + chat-first refactor (27b6eff) and the agent-auth path (060574f), several files remain in the tree but are not part of the live render path.

Not mounted in UI

Component Path Notes
Clinical panel src/components/clinical/ClinicalPanel.tsx Original right-rail clinical context
Sessions sidebar src/components/layout/SessionsSidebar.tsx Left session list
Copilot panel src/components/consultation/CopilotPanel.tsx Earlier copilot layout
Patient chat panel src/components/consultation/PatientChatPanel.tsx Alternate chat shell
Patient candidate card src/components/clinical/PatientCandidateCard.tsx May still be useful for reuse
Confirm bar src/components/clinical/ConfirmBar.tsx Superseded by ConfirmActionCard in notes flow

Deleted (do not expect on disk)

Was Commit
NotesPanel.tsx 27b6eff
SettingsModal.tsx 27b6eff

Unused library path

File Issue
src/lib/midoc.ts Direct Azure Midoc RPC client. Auth/chat/patients use agent modules instead.

Unused API helpers

Symbol Issue
fetchMeta No Settings UI
hasCompleteScope Available but not heavily used in UI after auth gate

Guidance for next developer

  1. Prefer extending NotesChatPanel / AppShell / TopBar for product UX.
  2. Before deleting orphans, confirm with product whether the 3-column layout will return.
  3. Do not “fix” auth by wiring midoc.ts unless deliberately reintroducing direct Midoc calls (and updating docs/security review).
  4. Root README.md still mentions the old 3-column layout — treat handoff/architecture.md as accurate.