Files
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

163 lines
7.0 KiB
JSON

{
"string": {
"Contains": "contient",
"NotContains": "ne contient pas",
"MoveClass": "Déplacer {class}",
"SelectToMove": "Sélectionnez le {classLabel} vers lequel vous souhaitez déplacer {class}.",
"Delete": "Supprimer",
"Move": "Déplacer",
"Cancel": "Annuler",
"LabelYes": "Oui",
"LabelNo": "Non",
"LabelNA": "N/A",
"ChooseAColor": "Choisir une couleur",
"Table": "Table",
"Role": "Rôle",
"DeleteObject": "Supprimer l'objet",
"DeleteObjectConfirm": "Voulez-vous supprimer {count, plural, =1 {cet objet} other {ces # objets}} ?",
"NoCreatePermissionTitle": "Permissions insuffisantes pour créer",
"DeletePopupNoPermissionTitle": "Permissions insuffisantes pour supprimer.",
"DeletePopupNoPermissionLabel": "Veuillez contacter les personnes de la liste ci-dessous pour qu'elles le fassent.",
"DeletePopupCreatorLabel": "Créateurs (peuvent supprimer uniquement ceux qu'ils ont créés) :",
"DeletePopupOwnerLabel": "Propriétaires (peuvent tous les supprimer) :",
"Archive": "Archiver",
"ArchiveConfirm": "Voulez-vous archiver {count, plural, =1 {cet objet} other {# objets}} ?",
"Open": "Ouvrir",
"OpenInNewTab": "Ouvrir dans un nouvel onglet",
"Assignees": "Assignés",
"Labels": "Étiquettes",
"MoveLeft": "Déplacer à gauche",
"MoveRight": "Déplacer à droite",
"MoveUp": "Déplacer vers le haut",
"MoveDown": "Déplacer vers le bas",
"RestoreDefaults": "Restaurer les paramètres par défaut",
"SelectItem": "Sélectionner l'élément focalisé",
"SelectItemAll": "Sélectionner tous les éléments",
"SelectItemNone": "Désélectionner tous les éléments",
"NumberItems": "{count, plural, =0 {aucun élément} =1 {1 élément} other {# éléments}}",
"Assigned": "Assigné",
"Created": "Créé",
"Subscribed": "Abonné",
"ShowPreview": "Afficher l'aperçu du document",
"ShowActions": "Afficher le menu des actions",
"ActionPlaceholder": "Rechercher ou exécuter une commande...",
"General": "Général",
"Navigation": "Navigation",
"Editor": "Éditeur",
"MarkdownFormatting": "Formatage",
"CustomizeView": "Personnaliser la vue",
"ConfigureColumns": "Configurer les colonnes",
"Filter": "Filtrer",
"ClearFilters": "Effacer les filtres",
"FilterLessThan": "Moins que",
"FilterGreaterThan": "Plus que",
"FilterIsNot": "n'est pas",
"FilterIsEither": "est",
"FilterIsEitherPlural": "sont",
"FilterStatesCount": "{value, plural, =1 {1 état} other {# états}}",
"FilterUpdated": "Filtre mis à jour",
"FilterRemoved": "{count, plural, =1 {# valeur inexistante a été} other {# valeurs inexistantes ont été}} retirée(s) du filtre",
"Before": "Avant",
"After": "Après",
"Apply": "Appliquer",
"Save": "Enregistrer",
"IncludeItemsThatMatch": "Inclure les éléments correspondant",
"AnyFilter": "n'importe quel filtre",
"AllFilters": "tous les filtres",
"MatchCriteria": "Correspond aux critères",
"DontMatchCriteria": "Ne correspond pas aux critères",
"View": "Vue",
"MarkupEditor": "Édition de champ de contenu enrichi",
"List": "Liste",
"Grid": "Grille",
"Timeline": "Chronologie",
"Select": "Sélectionner",
"NoGrouping": "Pas de regroupement",
"Grouping": "Regroupement",
"Ordering": "Ordonnancement",
"Manual": "Manuel",
"FilteredViews": "Vues filtrées",
"NewFilteredView": "Nouvelle vue filtrée",
"FilteredViewName": "Nom de la vue filtrée",
"Then": "Puis",
"ShowPreviewOnClick": "Cliquez pour afficher l'aperçu de l'index du document...",
"Shown": "affiche {len} résultats {total, plural, =-1 {} other {sur # éléments filtrés}}",
"Total": "Total : {total, plural, other{#}}",
"ShowEmptyGroups": "Afficher les groupes vides",
"Overdue": "En retard",
"Today": "Aujourd'hui",
"Yesterday": "Hier",
"ThisWeek": "Cette semaine",
"NextWeek": "La semaine prochaine",
"ThisMonth": "Ce mois-ci",
"NextMonth": "Le mois prochain",
"NotSpecified": "Non spécifié",
"ExactDate": "Date exacte",
"BeforeDate": "Avant la date",
"AfterDate": "Après la date",
"BetweenDates": "Entre les dates",
"AddSavedView": "Ajouter une vue enregistrée",
"Public": "Public",
"Hide": "Cacher",
"Rename": "Renommer",
"SaveAs": "Enregistrer sous",
"And": "et",
"Between": "est entre",
"ShowColors": "Utiliser les couleurs",
"Show": "Afficher",
"FilterArrayAll": "tous",
"FilterArrayAny": "n'importe lequel",
"Or": "Ou",
"HyperlinkPlaceholder": "https://jappleseed.com",
"CopyToClipboard": "Copier dans le presse-papiers",
"CopyAll": "Tout copier",
"CopyDocumentMarkdown": "Copier en Markdown",
"CopyAsMarkdownTable": "Copier en tableau Markdown",
"TableCopiedToClipboard": "Tableau copié dans le presse-papiers",
"TableCopyFailed": "Échec de la copie du tableau dans le presse-papiers",
"PublicView": "Vue publique",
"ChooseIcon": "Choisir une icône",
"IconColor": "Choisir la couleur de l'icône",
"IconCategory": "Icône",
"EmojiCategory": "Émoji",
"Type": "Type",
"ToViewCommands": "pour voir les commandes disponibles",
"UnArchive": "Désarchiver",
"UnArchiveConfirm": "Voulez-vous désarchiver {count, plural, =1 {cet objet} other {# objets}} ?",
"Pin": "Épingler",
"Unpin": "Détacher",
"Archived": "Archivé",
"MoreActions": "Plus d'actions",
"Leave": "Quitter",
"Join": "Rejoindre",
"Copied": "Copié",
"Title": "Titre",
"HideArchived": "Masquer les archives",
"RemoveRelation": "Supprimer la relation",
"RemoveRelationConfirmation": "Voulez-vous supprimer la relation ?",
"MasterDetail": "Maître-détail",
"Tree": "Arbre",
"Document": "Document",
"Loading": "Chargement...",
"NoRelations": "Aucune relation",
"ReadOnlyWarningTitle": "✨ Démo invité anonyme",
"ReadOnlyWarningMessage": "Vous êtes en mode consultation. Choisissez votre voie : Rejoignez cet espace pour collaborer (en tant qu'invité) ou créez votre propre espace pour gérer pleinement les projets — tâches, délais, équipe !",
"ReadOnlyJoinWorkspace": "Rejoindre l'espace",
"ReadOnlySignUp": "Créer un espace",
"PermissionWarningTitle": "✨ Améliorez votre accès !",
"PermissionWarningMessage": "Votre rôle actuel a des autorisations limitées. Pour débloquer cette fonctionnalité et d'autres fonctionnalités avancées, demandez à l'administrateur de votre espace de travail de mettre à jour votre niveau d'accès !",
"Icon": "Icône",
"Color": "Couleur",
"AutomationOnly": "Automatisation uniquement",
"CopyLink": "Copier le lien",
"ValueIsSet": "La valeur est définie",
"RoleLabel": "Rôle : {role}",
"ForbidAttributeChanges": "Interdire les modifications: ",
"AllowAttributeChanges": "Autoriser les modifications: ",
"RelationshipTable": "Matrice de traçabilité",
"FilterOverflowBadge": "+{count}",
"AddFilter": "Ajouter un filtre",
"HiddenFilters": "Filtres masqués"
}
}