Files
helix-engage/src/pages/profile.tsx
saridsa2 e6b2208077 feat: disposition modal, persistent top bar, pagination, QA fixes
- DispositionModal: single modal for all call endings. Dismissable (agent can resume call).
  Agent clicks End → modal → select reason → hangup + dispose. Caller disconnects → same modal.
- One call screen: CallWidget stripped to ringing notification + auto-redirect to Call Desk.
- Persistent top bar in AppShell: agent status toggle + network indicator on all pages.
- Network indicator always visible (Connected/Unstable/No connection).
- Pagination: Untitled UI PaginationCardDefault on Call History + Appointments (20/page).
- Pinned table headers/footers: sticky column headers, scrollable body, pinned pagination.
  Applied to Call Desk worklist, Call History, Appointments, Call Recordings, Missed Calls.
- "Patient" → "Caller" column label in Call History.
- Offline → Ready toggle enabled.
- Profile status dot reflects Ozonetel state.
- NavAccountCard: popover placement top, View Profile + Account Settings restored.
- WIP pages for /profile and /account-settings.
- Enquiry form PHONE_INQUIRY → PHONE enum fix.
- Force Ready / View Profile / Account Settings removed then restored properly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:44:48 +05:30

25 lines
1.0 KiB
TypeScript

import { useAuth } from '@/providers/auth-provider';
import { TopBar } from '@/components/layout/top-bar';
import { Avatar } from '@/components/base/avatar/avatar';
export const ProfilePage = () => {
const { user } = useAuth();
return (
<div className="flex flex-1 flex-col overflow-hidden">
<TopBar title="Profile" />
<div className="flex flex-1 flex-col items-center justify-center gap-4 p-8">
<Avatar size="2xl" initials={user.initials} />
<div className="text-center">
<h2 className="text-xl font-semibold text-primary">{user.name}</h2>
<p className="text-sm text-tertiary">{user.email}</p>
<p className="mt-1 text-xs text-quaternary capitalize">{user.role}</p>
</div>
<div className="mt-4 rounded-lg bg-secondary px-4 py-3 text-sm text-tertiary">
Profile management is coming soon.
</div>
</div>
</div>
);
};