Commit Graph
66 Commits
Author SHA1 Message Date
63e28dc964 feat(tracker): Gantt chart for the issue tracker (#10992)
* 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>
2026-08-27 20:24:38 +07:00
Denis BykhovandGitHub 210fc24c85 Fix collab security (#9370)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2025-06-25 17:19:05 +05:00
utkakaandGitHub 590ac43d59 Fix TypedSpaces empty owners (#8574)
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
2025-04-18 11:34:31 +05:00
KristinaandGitHub af1563f580 Reduce finds on create notifications (#8352)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
2025-03-26 22:20:20 +04:00
Andrey SobolevandGitHub 58eb205688 use redpanda queue (#8291)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2025-03-22 13:55:46 +05:00
Alexey ZinovievandGitHub f3c231df0a UBERF-9502: Account uuids in models (#8125)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
2025-03-05 12:22:15 +07:00
Andrey SobolevandGitHub ada4c343bc Fix cloud transactor extra size (#7988)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2025-02-12 13:25:54 +07:00
Andrey Sobolev b97b858728 Fix formatting
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2025-02-06 21:25:08 +07:00
Andrey Sobolev 56a656bc6a Merge branch 'staging' into develop
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2025-02-06 13:52:19 +07:00
Denis BykhovandGitHub 997d910821 Fix remove project (#7941)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2025-02-06 12:41:36 +07:00
Alexey ZinovievandGitHub 2c64ceadb8 UBERF-8425: Global accounts (#7573) 2025-02-04 10:31:03 +07:00
Andrey SobolevandGitHub 4ec92d94b7 UBERF-8968: Get rid of prosemirror in transactor (#7746)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2025-01-21 23:49:45 +07:00
Milana KustinskayaandGitHub db5890b831 [Update] Localization files (#7215)
Signed-off-by: Milana Kustinskaya <milanovasmile@gmail.com>
2024-12-02 21:14:59 +07:00
Denis BykhovandGitHub 8bfeba7303 Remove collection tx (#7171)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-11-15 11:49:35 +07:00
Andrey SobolevandGitHub e493d35ac6 Rework triggers with arrays (#7168) 2024-11-13 21:25:57 +07:00
Andrey SobolevandGitHub 55b51b0fd0 UBERF-7922: Split Server Storage to middlewares (#6464)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-09-09 13:40:49 +05:00
Andrey SobolevandGitHub 87ded4d797 UBERF-7690: Performance fixes (#6336)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-08-15 17:30:25 +07:00
Andrey SobolevandGitHub c3a5b88b6e Fix mongo indexes (#6122)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-07-24 17:27:09 +07:00
Alexey ZinovievandGitHub dedff23b31 EZQMS-951: Server branding (#5858)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
2024-06-20 18:13:57 +05:00
KristinaandGitHub 1e9fea356e UBERF-7239: Support short/custom links in inbox/chat/planner (#5815)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
2024-06-18 19:21:51 +07:00
Alexey ZinovievandGitHub e22f23d92a ezqms-896: fix owners assignment for default spaces (#5585)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
2024-05-13 14:58:26 +04:00
Alexey ZinovievandGitHub 4bc1534ee0 EZQMS-729: Restrict spaces operations (#5500) 2024-05-04 20:49:24 +07:00
Denis BykhovandGitHub 83725fc541 Improve push notifications (#5397)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-04-19 00:11:24 +07:00
Denis BykhovandGitHub 11599a51bf Improve notifications (#5378)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-04-17 03:20:26 +07:00
Denis BykhovandGitHub 9b0e67b0ee UBERF-5335 (#4655)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-02-16 01:24:03 +07:00
Denis BykhovandGitHub b1268d6c17 UBERF-5339 (#4566)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-02-07 22:27:24 +07:00
Andrey SobolevandGitHub de79b44e9f UBERF-5304: Fix init workspace (#4524)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-02-05 18:46:21 +07:00
Andrey SobolevandGitHub 9dcec23815 UBERF-5140: Any workspace names (#4489)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-02-02 16:27:27 +07:00
KristinaandGitHub 2bf1a03907 UBERF-4632: refactor activity classes structure (#4190)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
2023-12-13 22:59:11 +07:00
ea3eb4af83 New Activity - squashed (#4032)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
Co-authored-by: Andrey Sobolev <haiodo@gmail.com>
2023-12-11 18:54:36 +07:00
Alexander OnnikovandGitHub 75056b6e79 UBERF-4374 Do not update time report for removed issues (#4059)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
2023-11-24 16:01:19 +07:00
Andrey SobolevandGitHub 7621bccf22 UBER-1074: Svelte 4 (#4014)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-11-20 17:01:43 +07:00
Andrey SobolevandGitHub 3b135f749a UBER-942: Rework skill optimization (#3941)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-11-07 19:22:45 +07:00
Andrey SobolevandGitHub 074dee811d UBERF-4132: Fix unexpected delete of documents in query (#3921)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-10-31 22:37:31 +07:00
Andrey SobolevandGitHub 3c0ff4c049 UBER-1052: Fix remainings (#3844)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-10-16 23:02:42 +07:00
Denis BykhovandGitHub 1ca3c7ba39 UBER-1024 (#3819)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-10-10 13:36:43 +06:00
Denis BykhovandGitHub 65e0e33279 UBER-996 (#3794)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-10-05 22:10:42 +07:00
Maksim KarmatskikhandGitHub 1ca9de297a UBER-845: Add NotificationPresenter to send rich text notifications (#3729)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
2023-09-28 12:08:00 +07:00
Andrey SobolevandGitHub 3d4e19270b UBER-81: Fix move project (#3182)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-05-16 00:16:41 +07:00
Ruslan BayandinovandGitHub cf1e8b284f [TSK-779] Use txMatch (#3101)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
2023-05-03 20:03:36 +06:00
Denis BykhovandGitHub 98d71a25df TSK-1263 Inbox configurator (#3067)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-04-25 15:34:38 +07:00
Vyacheslav TumanovandGitHub 7fdb585dda TSK-1158: remove component from sprint. Remove logic for changing component on sprint change (#2998)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
2023-04-18 16:50:50 +07:00
Vyacheslav TumanovandGitHub e4a53a1b37 TSK-1032: add confirmation dialog for projects, fix sprint deleting and allow deleting for Owner or creator only (#2964)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
2023-04-17 13:08:41 +07:00
Denis BykhovandGitHub bdbe7de4f1 TSK-925 Collaborators (#2849)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-03-29 15:18:59 +06:00
Andrey SobolevandGitHub b0abf93487 TSK-885: Fix invalid deps (#2777)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2023-03-22 09:48:57 +07:00
Denis BykhovandGitHub ae84626521 TSK-865 Сделать красивый вид ссылок (#2771)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-03-20 14:45:52 +06:00
Denis BykhovandGitHub 0f24fe80d6 TSK-810 Rename Team -> Project, Project -> Component (#2756)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-03-17 12:17:53 +06:00
Denis BykhovandGitHub ae86bfdacd TSK-833 Доработка Таблицы Vacations TSK-817 Click on Employee is broken, it should open Edit Contact TSK-805 Открывать задачу в новой вкладке при клике колесиком TSK-794 Прикрепление ссылки на вакансию/аппликейшн в чате (#2734)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2023-03-15 20:06:03 +06:00
Vyacheslav TumanovandGitHub 93305b512a Remove team (#2625)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
2023-02-13 15:18:31 +07:00
Vyacheslav TumanovandGitHub df7667289d Assign project when assigning sprint (#2612)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
2023-02-10 23:39:02 +07:00