From 0ec0e1c75bf5a102a5a52949de5f03c4b9555cba Mon Sep 17 00:00:00 2001 From: lizerk Date: Wed, 22 Apr 2026 14:43:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D1=83=D0=BF?= =?UTF-8?q?=D0=BE=D0=BC=D0=B8=D0=BD=D0=B0=D0=BD=D0=B8=D1=8F=20LogStorm/Log?= =?UTF-8?q?Shtorm=20=D0=B8=D0=B7=20frontend-=D1=81=D0=BB=D0=BE=D1=8F=20EUS?= =?UTF-8?q?RR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/attendance/page.tsx | 14 +++---- frontend/src/app/profile/page.tsx | 12 +++--- frontend/src/app/users/[id]/page.tsx | 12 +++--- .../attendance/EmployeeAttendanceCard.tsx | 38 ++++++++--------- frontend/src/lib/api/attendance.ts | 42 +++++++++---------- 5 files changed, 57 insertions(+), 61 deletions(-) diff --git a/frontend/src/app/attendance/page.tsx b/frontend/src/app/attendance/page.tsx index f59e14a5..344252ac 100644 --- a/frontend/src/app/attendance/page.tsx +++ b/frontend/src/app/attendance/page.tsx @@ -23,7 +23,7 @@ import type { MonthlyAttendanceMatrixCell, MonthlyAttendanceMatrixEmployee, MonthlyAttendanceMatrixRow, - LogStormSchedulePayload, + AttendanceSchedulePayload, } from "@/lib/api/attendance"; import type { User } from "@/types/api"; @@ -339,7 +339,7 @@ export default function AttendancePage() { } } - function getSchedulePayload(): LogStormSchedulePayload | undefined { + function getSchedulePayload(): AttendanceSchedulePayload | undefined { if (!useManualSchedule) return undefined; return { start_time: scheduleStart, @@ -365,7 +365,7 @@ export default function AttendancePage() { return true; } - async function loadStatistics(options?: { refreshFromLogStorm?: boolean }) { + async function loadStatistics(options?: { refreshFromAnalyzer?: boolean }) { setError(null); setMatrices([]); setSelectedCell(null); @@ -378,8 +378,8 @@ export default function AttendancePage() { const employeeIds = selectedEmployees.map((employee) => employee.id).join(","); for (const employee of selectedEmployees) { - if (options?.refreshFromLogStorm) { - await apiClient.analyzeLogStormAttendance({ + if (options?.refreshFromAnalyzer) { + await apiClient.analyzeAttendance({ employee_id: employee.id, period_start: periodStart, period_end: periodEnd, @@ -424,7 +424,7 @@ export default function AttendancePage() { Посещаемость

- Выбор сотрудников и периода для статистики LogStorm + Выбор сотрудников и периода для статистики посещаемости