improvement: some new gadgets added to dashboard. some new functionality added to existed gadgets.

This commit is contained in:
2026-07-14 03:06:56 +03:30
parent ec2b23f4b1
commit d383a4abc3
34 changed files with 944 additions and 191 deletions

View File

@@ -1,5 +1,10 @@
export type LabTaskStatus = 'IN_PROGRESS' | 'COMPLETED';
export interface LabCaseProsthesisGroup {
prosthesisTypeCode: string;
teeth: string[];
}
export interface LabCaseListItem {
id: string;
sentAt: string | null;
@@ -14,7 +19,7 @@ export interface LabCaseListItem {
lastName: string;
mobile: string;
};
treatmentType: string | null;
prosthesisGroups: LabCaseProsthesisGroup[];
taskProgress: { completed: number; total: number };
}
@@ -121,14 +126,14 @@ export interface ListLabCasesParams {
page?: number;
limit?: number;
clinicOrganizationId?: string;
treatmentType?: string;
prosthesisTypeCode?: string;
sentFrom?: string;
sentTo?: string;
}
export interface CasesFilterOptions {
clinics: Array<{ id: string; name: string }>;
treatmentTypes: Array<{ code: string; labDependent: boolean }>;
prosthesisTypes: Array<{ code: string }>;
}
export interface PaginatedLabCases {
@@ -160,6 +165,8 @@ export interface ListLabTasksParams {
pinImportant?: boolean;
assignedToMe?: boolean;
overdue?: boolean;
unassignedOnly?: boolean;
prosthesisTypeCode?: string;
sentFrom?: string;
sentTo?: string;
stepCompleted?: string;
@@ -178,6 +185,9 @@ export interface LocateTaskPageParams {
important?: boolean;
pinImportant?: boolean;
assignedToMe?: boolean;
overdue?: boolean;
unassignedOnly?: boolean;
prosthesisTypeCode?: string;
stepCompleted?: string;
sortBy?: TaskSortField;
sortDir?: 'asc' | 'desc';

View File

@@ -46,6 +46,7 @@ export type TodaySummaryCharts = {
appointmentsWeekMine?: TodayChartBucket[];
labTaskActivityWeek?: TodayStackedDayBucket[];
casePartnersMonth?: TodayPartnerCasesBucket[];
casesDueWeek?: TodayChartBucket[];
efficiencyReport?: TodayChartBucket[];
};
@@ -58,6 +59,8 @@ export type TodayWidgetKey =
| 'casesInProgress'
| 'tasksInProgress'
| 'importantTasks'
| 'overdueCases'
| 'unassignedTasks'
| 'pendingConnections'
| 'pendingStaffInvites'
| 'providersWithoutWorkingHours';
@@ -79,7 +82,7 @@ export type TodaySubscriptionSnapshot = {
export type TodaySummaryWidgets = Partial<
Record<
TodayWidgetKey,
| { count: number }
| { count: number; membershipIds?: string[] }
| { used: number; limit: number | null; unlimited: boolean }
>
>;