Commit Graph
245 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
Alexander OnnikovandGitHub 4c5d2d578e fix: use -webkit-user-select for text selection on Safari (#10982)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
2026-07-17 16:44:09 +07:00
Denis BykhovandGitHub 7f13ca3a0e Card space type filter (#10956)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-07-05 21:48:13 +05:00
Denis BykhovandGitHub ae3b7f6216 feat: add OnExecutionDone trigger and related functionality for proce… (#10944)
* feat: add OnExecutionDone trigger and related functionality for process management

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-07-02 04:14:58 +05:00
Denis BykhovandGitHub 65cb5987bf feat: implement reference versioning functionality across various com… (#10941)
* feat: implement reference versioning functionality across various components and plugins

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* fix: simplify provider function calls and label retrieval in MentionPopup component

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* refactor: improve readability of version selection and reference handling in MentionVersionPopup and reference.ts

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* feat: add CardReferenceObjectProvider and integrate into card model and resources

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-07-01 21:40:17 +07:00
Denis BykhovandGitHub bf798c1bbc feat: add baseType property and related functionality across card models and UI components (#10940)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-06-30 20:17:17 +05:00
Denis BykhovandGitHub c0ffb0b96c Simplify create card popup (#10926)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-06-24 21:00:53 +05:00
Denis BykhovandGitHub b32ff0f46a Required attributes (#10918)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-06-22 12:53:11 +05:00
Artyom SavchenkoandGitHub a61d72374a Support images in markup properties (#10882)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-05-25 14:07:20 +07:00
Artyom SavchenkoandGitHub 8d95d32cfe Fix markup field in md table (#10840)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-05-19 21:26:49 +05:00
Denis BykhovandGitHub b8d4e088b1 Fix tag attribute lock (#10850)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-19 21:17:42 +05:00
Denis BykhovandGitHub 372a4b0ca3 Id override (#10847)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-18 01:31:17 +05:00
Denis BykhovandGitHub 309aefb967 Fix_relation_versioning_setting (#10844)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-17 16:05:17 +05:00
Denis BykhovandGitHub 23faf14cca Card version settings (#10843)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-17 14:53:34 +05:00
Denis BykhovandGitHub fa2930d54e Nested view setting (#10838)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-11 00:18:56 +05:00
Denis BykhovandGitHub 9e8efb26c2 Fix main section lock (#10837)
* Fix main section lock

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-11 00:00:43 +05:00
Denis BykhovandGitHub 81ffbd3678 Fix markup check (#10836)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-10 21:51:01 +05:00
Denis BykhovandGitHub 15aa8fb7b0 add readonly support to MarkupEditor and improve hierarchy-based attr… (#10835)
* add readonly support to MarkupEditor and improve hierarchy-based attribute resolution and locking logic

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* perf: implement caching for card lookups in process-resources functions

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* refactor: update TagSelector to use tag IDs in selection set and optimize hierarchy access

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-10 18:40:56 +05:00
Denis BykhovandGitHub 2f3b99fd34 hide_automationOnly_executions (#10828)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-08 00:22:04 +05:00
Denis BykhovandGitHub f429a3e830 type selector fix (#10826)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-07 19:03:32 +05:00
Denis BykhovandGitHub f561318a6a integrate MarkupProperties directly into tag attribute components (#10824)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-06 15:45:22 +05:00
Denis BykhovandGitHub 4b4b9edbcc add AskSubclass option to CreateCard process and implement ClassUserInput component for flexible subclass selection (#10822)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-05 18:37:39 +05:00
Denis BykhovandGitHub 8d62d91d28 Allow to sort attributes for parent and sub class together (#10816)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-03 23:41:27 +05:00
Denis BykhovandGitHub 1dc41f0b1d Fix tables (#10813)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-05-01 21:43:15 +05:00
Denis BykhovandGitHub 9a847386ae feat: add show all versions toggle to card view options and implement version query filtering (#10809)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-29 01:30:46 +05:00
Denis BykhovandGitHub 62f06940df enable nested association attribute configuration (#10808)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-28 20:26:21 +05:00
Denis BykhovandGitHub 1f239235c0 card/process updating import (#10805)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-27 20:29:29 +05:00
Denis BykhovandGitHub d2591a1e71 Markup properties (#10804)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-27 13:46:08 +05:00
Artyom SavchenkoandGitHub 338b16d665 Do not allow to assign guest as space owner (#10803)
* Exclude guests from space owners

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Show guest if he is in owners

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-04-25 18:29:08 +07:00
Denis BykhovandGitHub 4da2c637f4 version_creating_fix (#10785)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-19 17:03:43 +05:00
Denis BykhovandGitHub 772c4782c8 Fix card viewlet setting for associations (#10761)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-13 20:39:50 +07:00
Denis BykhovandGitHub 844feae395 EmptyValue process function (#10756)
* EmptyValue process function

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-13 11:50:09 +07:00
Denis BykhovandGitHub e390b94424 Card space type selector with submenu (#10750)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-12 12:37:00 +05:00
Denis BykhovandGitHub 963233b81d Card grid (#10749)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-12 12:32:43 +05:00
Artyom SavchenkoandGitHub ac1553bd38 feat: Guest auto-join (#10751)
* feat: Guest auto-join

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Fix tests

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Revert "Fix tests"

This reverts commit e3b7c7425f.

* Update tests

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Clean up

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Clean up

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Minor fixes

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Clean up

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Temp ignore test

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-04-12 13:25:31 +07:00
Artyom SavchenkoandGitHub 7213711115 qfix: Fix card warnings (#10725)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-04-05 14:44:38 +07:00
Denis BykhovandGitHub 8b5b57563e Add configurable card layout modes (#10724)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-05 14:19:36 +07:00
Denis BykhovandGitHub 38df5a3cdb Change icons (#10711)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-04-01 16:43:22 +07:00
Artyom SavchenkoandGitHub 2bb87bf441 Do not select space not accessible to the user (#10707)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
2026-03-30 22:44:00 +05:00
Denis BykhovandGitHub d09f05acb4 Fix view settings (#10706)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-30 22:43:47 +05:00
Denis BykhovandGitHub 9d4e14cb70 Process minor fixes (#10704)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-29 15:49:08 +05:00
Denis BykhovandGitHub 0e3cfbd949 Section locking (#10702)
* implement section locking functionality with role-based access control

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Add translations

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-28 19:35:37 +07:00
Denis BykhovandGitHub bf03302c78 Fix view setting freeze (#10700)
* Fix view setting freeze

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-28 14:16:26 +05:00
Denis BykhovandGitHub deeb8bb545 Fix view setting bug (#10674)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-24 02:15:33 +05:00
Denis BykhovandGitHub f08d157125 Fix request section visibility and hide card activity for guests (#10641)
* move RequestsCardSection visibility check into the component.

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Hide card activity for guests

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-16 21:31:41 +07:00
Denis Bykhov 81cf17ab5d Hide child section for card
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-10 12:38:37 +05:00
Denis BykhovandGitHub eb3317b1fd My cards (#10604)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-10 10:24:21 +07:00
Denis BykhovandGitHub e8c0f8ef4d Fix exporter (#10583)
* Fix exporter

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

* Fix formatting

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>

---------

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-09 21:14:13 +07:00
Alexander OnnikovandGitHub 58295e4169 feat: auto generate rank in middleware (#10577)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
2026-03-02 19:18:11 +07:00
Denis BykhovandGitHub e778a2748b feat: implement field locking and unlocking functionality, including UI, backend logic, and i18n. (#10573)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2026-03-01 00:42:00 +05:00