mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
fix: wire role-based views — sidebar auth, user display, table tabs, card actions
- Sidebar: use useAuth() for isAdmin and pass auth user to NavAccountCard - NavAccountCard: fix bug where items prop was ignored (used placeholderAccounts) - TopBar: replace hardcoded "SM" initials with user.initials from auth - All Leads: add "My Leads" tab filtering by assignedAgent matching user - Lead Card: add role-aware action buttons (Call/Disposition for assigned leads) - Lead Workspace: pass onLogCall/onUpdateStatus handlers to LeadCard Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,14 @@ export const LeadWorkspacePage = () => {
|
||||
// placeholder
|
||||
};
|
||||
|
||||
const handleLogCall = () => {
|
||||
// placeholder
|
||||
};
|
||||
|
||||
const handleUpdateStatus = () => {
|
||||
// placeholder
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-1 flex-col">
|
||||
<TopBar title="Lead Workspace" subtitle="Ramaiah Memorial Hospital · Last 24 hours" />
|
||||
@@ -69,6 +77,8 @@ export const LeadWorkspacePage = () => {
|
||||
onMessage={handleMessage}
|
||||
onMarkSpam={handleMarkSpam}
|
||||
onMerge={handleMerge}
|
||||
onLogCall={handleLogCall}
|
||||
onUpdateStatus={handleUpdateStatus}
|
||||
/>
|
||||
))}
|
||||
{displayLeads.length === 0 && (
|
||||
|
||||
Reference in New Issue
Block a user