mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
feat: wire frontend to platform data, migrate to Jotai + Vercel AI SDK
- Replace mock DataProvider with real GraphQL queries through sidecar - Add queries.ts and transforms.ts for platform field name mapping - Migrate SIP state from React Context to Jotai atoms (React 19 compat) - Add singleton SIP manager to survive StrictMode remounts - Remove hardcoded Olivia/Sienna accounts from nav menu - Add password eye toggle, remember me checkbox, forgot password link - Fix worklist hook to transform platform field names - Add seed scripts for clinics, health packages, lab tests - Update test harness for new doctor→clinic relation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
src/state/sip-state.ts
Normal file
10
src/state/sip-state.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { atom } from 'jotai';
|
||||
import type { ConnectionStatus, CallState } from '@/types/sip';
|
||||
|
||||
export const sipConnectionStatusAtom = atom<ConnectionStatus>('disconnected');
|
||||
export const sipCallStateAtom = atom<CallState>('idle');
|
||||
export const sipCallerNumberAtom = atom<string | null>(null);
|
||||
export const sipIsMutedAtom = atom<boolean>(false);
|
||||
export const sipIsOnHoldAtom = atom<boolean>(false);
|
||||
export const sipCallDurationAtom = atom<number>(0);
|
||||
export const sipCallStartTimeAtom = atom<Date | null>(null);
|
||||
Reference in New Issue
Block a user