mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-29 19:29:36 +02:00
* feat(tracker): Gantt chart for the issue tracker Builds on the merged search/filter rework (#10998). Introduces @hcengineering/gantt, a dependency-free scheduling/zoom/drag/viewport engine package (with a neutral GanttDependency contract), and wires the tracker-specific adapter, Svelte UI, model schema, dependency-shift notifications and sanity coverage in tracker-resources. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> * fix(tracker): source Gantt holidays from HR and scope confirm-gate per view Follow-up to review feedback on #10992: - Confirm-gate: the module-global flag is replaced by a createConfirmGate() factory - one instance per mounted GanttView, so two Gantt views mounted at once in the same JS context no longer block each other's pointer input. A two-instance independence test guards the regression. - Sidebar sorting: the stale deadline cast is dropped and issue.deadline is read directly (the field was added to the Issue model in this PR). - HR holidays: the per-project WorkingDaysConfig.holidays field duplicated the workspace-wide hr.class.PublicHoliday concept and could drift from the real HR calendar. It is removed. WorkingDaysConfig now carries only the weekday mask and an optional holidayDepartment. The tracker adapter resolves holidays for the selected department plus all ancestors up to hr.ids.Head, matching HR's existing inheritance semantics (hr-resources ScheduleView). A missing or invalid reference falls back to company-wide (root) holidays; unrelated departments are never included. The ancestor walk is cycle/missing-parent safe. A small WorkingDaysEditor in the existing project create/edit dialog lets users with the existing project permission enable the mode, choose weekdays, and select an HR department (default: Company-wide). It persists through the existing project create/update transaction paths (createDoc on create, client.update on edit) and uses $unset when the mode is disabled. At least one working day must stay active. Calendar loading is explicit via a CalendarStateMachine: project-scoped drag, resize, cascade, keyboard-shift and auto-schedule mutations stay disabled until both the project config and the holiday data have loaded. A monotonic generation ticket (bumped synchronously on project switch) is re-checked immediately before every calendar-dependent date commit, so work started in one project can never persist after a switch to another. The all-projects view has no single project calendar, so calendar-dependent edits are read-only there; display, selection, the context menu and the manual date-picker (which does no calendar arithmetic and takes no mutation ticket) stay available. This depends on the lightweight @hcengineering/hr model package, but not on hr-resources; the tracker adapter uses hr.class.* and hr.ids.Head at runtime, and actual HR model presence is checked through the hierarchy - without the HR model, holidays resolve to an empty set. The @hcengineering/gantt engine package stays domain-neutral (no @hcengineering imports, no runtime deps). Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> * fix(gantt): measure FS gap-preservation floor in working days The finish-to-start gap-preservation floor in the cascade scheduler mixed two time measures: the FS snap anchor is working-calendar aware, but the floor added a raw calendar-millisecond start-side delta. With an active working calendar the two diverge, so dragging a predecessor over a weekend over-shifted the successor across non-working days (a Fri->Mon body drag is 3 calendar days but only 1 working day, and could even land a successor on a Saturday). Measure the floor on the DUE side in working days instead: translate the predecessor's shift via the new workingDayDelta helper and advance the floor base with addWorkingDays over the calendar. A day-granular resize gate (utcMidnight comparison, not a raw === 0 test) arms the floor only on a start-DAY move, so a pure due-resize stays a pure snap even when the stored issue carries a time-of-day on the cascade-commit path. The floor base is normalized via utcMidnight(targetAnchor). The legacy path (cfg === undefined) stays byte-identical to today's raw-ms floor. A left-resize in working-days mode now correctly no-ops the floor (the due, and thus the FS gap, did not move) instead of shifting on the raw start delta. Engine: add workingDayDelta (signed, half-open from-exclusive/to-inclusive working-day step count) and export the previously-private utcMidnight from packages/gantt/src/working-days.ts. The engine stays domain-neutral (no @hcengineering imports, empty dependencies). Adds engine and adapter test coverage: workingDayDelta cases and the full FS floor matrix (right-resize no-push, weekend-spanner body drag, floor wins over snap, holiday in the floor path, floor-dominant multi-hop chain, negative delta, legacy no-cfg, SS pure-snap, raw time-of-day right-resize, direct left-resize). Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> --------- Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> Co-authored-by: Michael Uray <michaeluray@users.noreply.github.com>
165 lines
9.4 KiB
JSON
165 lines
9.4 KiB
JSON
{
|
||
"string": {
|
||
"Contains": "содержит",
|
||
"NotContains": "не содержит",
|
||
"MoveClass": "Переместить {class}",
|
||
"SelectToMove": "Выберите {classLabel}, в который вы хотите переместить {class}.",
|
||
"Delete": "Удалить",
|
||
"Move": "Переместить",
|
||
"Cancel": "Отменить",
|
||
"LabelYes": "Да",
|
||
"LabelNo": "Нет",
|
||
"LabelNA": "Н/Д",
|
||
"ChooseAColor": "Выбрать цвет",
|
||
"Table": "Таблица",
|
||
"Role": "Роль",
|
||
"DeleteObject": "Удалить объект",
|
||
"DeleteObjectConfirm": "Вы действительно хотите удалить {count, plural, =1 {этот объект} one {этот # объект} few {эти # объекта} other {эти # объектов}}?",
|
||
"NoCreatePermissionTitle": "Недостаточно прав для создания",
|
||
"DeletePopupNoPermissionTitle": "Недостаточно прав для удаления.",
|
||
"DeletePopupNoPermissionLabel": "Пожалуйста, обратитесь к людям из списка ниже, чтобы они это сделали.",
|
||
"DeletePopupCreatorLabel": "Создатели объектов (могут удалить лишь те, что были созданы ими):",
|
||
"DeletePopupOwnerLabel": "Владельцы (могут удалить все):",
|
||
"Archive": "Архивировать",
|
||
"ArchiveConfirm": "Вы действительно хотите заархивировать {count, plural, =1 {этот объект} one {этот # объект} few {эти # объекта} other {эти # объектов}}?",
|
||
"Open": "Открыть",
|
||
"OpenInNewTab": "Открыть в новой вкладке",
|
||
"Assignees": "Исполнители",
|
||
"Labels": "Метки",
|
||
"ActionPlaceholder": "Поиск или команда...",
|
||
"General": "Общее",
|
||
"Navigation": "Навигация",
|
||
"Editor": "Редактор",
|
||
"MarkdownFormatting": "Форматирование",
|
||
"MoveLeft": "Переместить влево",
|
||
"MoveRight": "Переместить вправо",
|
||
"MoveUp": "Переместить вверх",
|
||
"MoveDown": "Переместить вниз",
|
||
"SelectItem": "Выбрать",
|
||
"SelectItemAll": "Выбрать все",
|
||
"SelectItemNone": "Снять все выделения",
|
||
"NumberItems": "{count, plural, =0 {нет объектов} one {# объект} few {# объекта} other {# объектов}}",
|
||
"Assigned": "Назначенные",
|
||
"Created": "Созданные",
|
||
"Subscribed": "Отслеживаемые",
|
||
"ShowPreview": "Предпросмотр документа",
|
||
"ShowActions": "Показать действия",
|
||
"RestoreDefaults": "По умолчанию",
|
||
"CustomizeView": "Настроить отображение",
|
||
"ConfigureColumns": "Настроить столбцы",
|
||
"Filter": "Фильтр",
|
||
"ClearFilters": "Очистить",
|
||
"FilterLessThan": "Меньше чем",
|
||
"FilterGreaterThan": "Больше чем",
|
||
"FilterIsNot": "не равен",
|
||
"FilterIsEither": "равен",
|
||
"FilterIsEitherPlural": "{value, plural, =1 {равен} other {один из}}",
|
||
"FilterStatesCount": "{value, plural, =1 {1 состоянию} other {# состояний}}",
|
||
"FilterUpdated": "Фильтр был обновлен",
|
||
"FilterRemoved": "Несуществующие значения были удалены из фильтра: {count}",
|
||
"Before": "До",
|
||
"After": "После",
|
||
"Apply": "Применить",
|
||
"Save": "Сохранить",
|
||
"IncludeItemsThatMatch": "Включить элементы, которые соответствуют",
|
||
"AnyFilter": "любому фильтру",
|
||
"AllFilters": "всем фильтрам",
|
||
"MatchCriteria": "Соответствует условию",
|
||
"DontMatchCriteria": "Не соответствует условию",
|
||
"View": "Вид",
|
||
"MarkupEditor": "Изменение форматированного поля",
|
||
"List": "Список",
|
||
"Grid": "Сетка",
|
||
"Timeline": "Временная шкала",
|
||
"Select": "Выбрать",
|
||
"NoGrouping": "Нет группировки",
|
||
"Grouping": "Группировка",
|
||
"Ordering": "Сортировка",
|
||
"Manual": "Пользовательский",
|
||
"FilteredViews": "Фильтрованные отображения",
|
||
"NewFilteredView": "Новое фильтрованное отображение",
|
||
"FilteredViewName": "Имя фильтрованного отображения",
|
||
"Then": "Затем",
|
||
"ShowPreviewOnClick": "Пожалуйста, нажмите, чтобы увидеть предпросмотр...",
|
||
"Shown": "показано {len} результатов {total, plural, =-1 {} other {из #}}",
|
||
"Total": "Всего: {total, plural, other{#}}",
|
||
"ShowEmptyGroups": "Показывать пустые группы",
|
||
"Overdue": "Overdue",
|
||
"Today": "Сегодня",
|
||
"Yesterday": "Вчера",
|
||
"ThisWeek": "Эта неделя",
|
||
"NextWeek": "Следующая неделя",
|
||
"ThisMonth": "Этот месяц",
|
||
"NextMonth": "Следующий месяц",
|
||
"NotSpecified": "Не указана",
|
||
"AddSavedView": "Добавить сохраненное отображение",
|
||
"ExactDate": "Определенная дата",
|
||
"BeforeDate": "До даты",
|
||
"AfterDate": "После даты",
|
||
"BetweenDates": "Между датами",
|
||
"Public": "Публичный",
|
||
"Hide": "Спрятать",
|
||
"Rename": "Переименовать",
|
||
"SaveAs": "Сохранить как",
|
||
"And": "и",
|
||
"Between": "между",
|
||
"ShowColors": "Использовать цвета",
|
||
"Show": "Отображение",
|
||
"FilterArrayAll": "все",
|
||
"FilterArrayAny": "любое из",
|
||
"Or": "Или",
|
||
"HyperlinkPlaceholder": "https://jappleseed.com",
|
||
"CopyToClipboard": "Скопировать в буфер обмена",
|
||
"CopyAll": "Копировать всё",
|
||
"CopyDocumentMarkdown": "Скопировать как Markdown",
|
||
"CopyAsMarkdownTable": "Скопировать как таблицу Markdown",
|
||
"TableCopiedToClipboard": "Таблица скопирована в буфер обмена",
|
||
"TableCopyFailed": "Не удалось скопировать таблицу в буфер обмена",
|
||
"PublicView": "Публичный",
|
||
|
||
"ChooseIcon": "Выбрать иконку",
|
||
"IconColor": "Выберите цвет",
|
||
"IconCategory": "Иконка",
|
||
"EmojiCategory": "Эмодзи",
|
||
|
||
"Type": "Введите",
|
||
"ToViewCommands": "чтобы увидеть команды",
|
||
"UnArchive": "Разархивировать",
|
||
"UnArchiveConfirm": "Вы действительно хотите разархивировать {count, plural, =1 {этот объект} one {этот # объект} few {эти # объекта} other {эти # объектов}}?",
|
||
"Pin": "Закрепить",
|
||
"Unpin": "Открепить",
|
||
"Archived": "Архивированные",
|
||
"MoreActions": "Больше действий",
|
||
"Leave": "Покинуть",
|
||
"Join": "Присоединиться",
|
||
"Copied": "Скопировано",
|
||
"Title": "Заголовок",
|
||
"HideArchived": "Скрыть архивные",
|
||
"RemoveRelation": "Удалить связь",
|
||
"RemoveRelationConfirmation": "Вы хотите удалить связь?",
|
||
"MasterDetail": "Мастер-деталь",
|
||
"Tree": "Дерево",
|
||
"Document": "Документ",
|
||
"Loading": "Загрузка...",
|
||
"NoRelations": "Нет связей",
|
||
"ReadOnlyWarningTitle": "✨ Анонимное гостевое демо",
|
||
"ReadOnlyWarningMessage": "Вы в режиме просмотра. Выберите путь: Присоединитесь к этому пространству для совместной работы (как гость) или создайте свое пространство для полного управления проектами — задачи, сроки, команда!",
|
||
"ReadOnlyJoinWorkspace": "Присоединиться к пространству",
|
||
"ReadOnlySignUp": "Создать пространство",
|
||
"PermissionWarningTitle": "✨ Повысьте свой уровень доступа!",
|
||
"PermissionWarningMessage": "Ваша текущая роль имеет ограниченные права. Чтобы разблокировать эту и другие продвинутые функции, попросите администратора вашего пространства повысить ваш уровень доступа!",
|
||
"Icon": "Иконка",
|
||
"Color": "Цвет",
|
||
"AutomationOnly": "Только автоматизация",
|
||
"CopyLink": "Скопировать ссылку",
|
||
"ValueIsSet": "Значение установлено",
|
||
"RoleLabel": "Роль: {role}",
|
||
"ForbidAttributeChanges": "Запретить изменение: ",
|
||
"AllowAttributeChanges": "Разрешить изменение: ",
|
||
"RelationshipTable": "Таблица связей",
|
||
"FilterOverflowBadge": "+{count}",
|
||
"AddFilter": "Добавить фильтр",
|
||
"HiddenFilters": "Скрытые фильтры"
|
||
}
|
||
}
|