feat: add collaboratorUserId to appointment model and update dashboard filtering logic

This commit is contained in:
2026-07-21 10:34:52 -03:00
parent a9afb13d15
commit 40090cdec5
4 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -343,7 +343,7 @@ function DashboardContent() {
);
const showNoOrganizationStarterContent = Boolean(displayedPlan && organizations.length === 0);
const agendaItems = dashboardData?.personalAgenda ?? [];
const filteredAgendaItems = agendaItems.filter(item => !showOnlyMine || item.collaboratorId === SessionInfo.userId);
const filteredAgendaItems = agendaItems.filter(item => !showOnlyMine || item.collaboratorUserId === SessionInfo.userId);
return (
<ThemeProvider theme={turnosXpressTheme}>
@@ -601,7 +601,7 @@ function DashboardContent() {
<h3 style={{ margin: 0 }}>
{showOnlyMine ? "Mi Agenda de Hoy" : "Agenda General de Hoy"}
</h3>
<span className={style.agendaCounter}>{agendaItems.length}</span>
<span className={style.agendaCounter}>{filteredAgendaItems.length}</span>
</div>
<span className={style.agendaToggleIcon}>{isAgendaCollapsed ? "+" : ""}</span>
</button>