Files
khb_microservices/packages/reports/src/links.ts
Yuri Yaryshev 715546bdae
All checks were successful
ci / test (push) Successful in 23s
ci / deploy (push) Successful in 1m41s
Отчёты по сотрудникам: To-do report и Employee Activity, события JobTread в data_collector
Новый package employee_reports (порт 8091): To-do report перенесён идейно из
khbuild_tests на зеркало Supabase (Stale Days, выбор снимка, Excel-выгрузка) и
дополнен показателем «любая активность в инфополе»; Employee Activity - у каждого
менеджера встроенный график по дням с цветом дня (зелёный - Daily Log, жёлтый -
активность не меньше порога, тёмно-красный - меньше порога) и итоговый график
зелёных и жёлтых людей внизу.

data_collector: модуль events (jt_event, POST /events/sync) - загрузка ленты
событий JobTread; миграция 009; методология docs/activity_methodology.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 14:38:00 +03:00

58 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Статический список отчётов и визуализаций. Чтобы добавить ссылку - допишите элемент сюда и выкатите (push в main).
* Адреса относительные: страница и все цели живут на одном хосте (reports.khbuild.freeddns.org) за одним входом Keycloak.
*/
export type ReportGroup = "reports" | "visualizations";
export interface ReportLink {
id: string;
group: ReportGroup;
/** название (en / ru) */
title: { en: string; ru: string };
description: { en: string; ru: string };
/** относительный адрес на этом хосте */
href: string;
/** одна-две буквы для плашки */
badge: string;
}
export const REPORT_LINKS: ReportLink[] = [
{
id: "employee_todo_report",
group: "reports",
title: { en: "To-do report", ru: "To-do report" },
description: { en: "Overdue and undated to-dos per employee, Stale Days, any activity in the info field", ru: "Просроченные to-do и to-do без срока по сотрудникам, Stale Days, любая активность в инфополе" },
href: "/employee/todo/",
badge: "T",
},
{
id: "employee_activity",
group: "reports",
title: { en: "Employee Activity", ru: "Employee Activity" },
description: { en: "Daily activity of construction managers: chat, JobTread to-dos, milestones, Daily Logs", ru: "Активность менеджеров по строительству по дням: чат, to-do, вехи, Daily Log в JobTread" },
href: "/employee/activity/",
badge: "E",
},
{
id: "khbuild_process_gantt",
group: "visualizations",
title: { en: "khbuild_process - Gantt", ru: "khbuild_process - Гант" },
description: { en: "To-be process as a Gantt chart: days from the first architect meeting", ru: "Процесс to-be в виде диаграммы Ганта: дни от первой встречи с архитектором" },
href: "/viz/?view=gantt",
badge: "G",
},
{
id: "khbuild_process_aris",
group: "visualizations",
title: { en: "khbuild_process - ARIS", ru: "khbuild_process - ARIS" },
description: { en: "To-be process as an ARIS eEPC: roles, functions, events, systems, data", ru: "Процесс to-be в виде ARIS eEPC: роли, функции, события, системы, данные" },
href: "/viz/?view=aris",
badge: "A",
},
];
export const GROUP_TITLES: Record<ReportGroup, { en: string; ru: string }> = {
reports: { en: "Reports", ru: "Отчёты" },
visualizations: { en: "Visualizations", ru: "Визуализации" },
};