mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +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>
163 lines
6.7 KiB
JSON
163 lines
6.7 KiB
JSON
{
|
|
"string": {
|
|
"Contains": "contiene",
|
|
"NotContains": "non contiene",
|
|
"MoveClass": "Sposta {class}",
|
|
"SelectToMove": "Seleziona {classLabel} da spostare in {class}.",
|
|
"Delete": "Elimina",
|
|
"Move": "Sposta",
|
|
"Cancel": "Annulla",
|
|
"LabelYes": "Sì",
|
|
"LabelNo": "No",
|
|
"LabelNA": "N/A",
|
|
"ChooseAColor": "Scegli un colore",
|
|
"Table": "Tabella",
|
|
"Role": "Ruolo",
|
|
"DeleteObject": "Elimina oggetto",
|
|
"DeleteObjectConfirm": "Vuoi eliminare {count, plural, =1 {questo oggetto} other {questi # oggetti}}?",
|
|
"NoCreatePermissionTitle": "Permessi insufficienti per creare",
|
|
"DeletePopupNoPermissionTitle": "Permessi insufficienti per eliminare.",
|
|
"DeletePopupNoPermissionLabel": "Contatta le persone della lista qui sotto affinché possano farlo.",
|
|
"DeletePopupCreatorLabel": "Creatori (possono eliminare solo quelli creati da loro):",
|
|
"DeletePopupOwnerLabel": "Proprietari (possono eliminare tutti):",
|
|
"Archive": "Archivia",
|
|
"ArchiveConfirm": "Vuoi archiviare questo {count, plural, =1 {oggetto} other {# oggetti}}?",
|
|
"Open": "Apri",
|
|
"OpenInNewTab": "Apri in una nuova scheda",
|
|
"Assignees": "Assegnatari",
|
|
"Labels": "Etichette",
|
|
"MoveLeft": "Sposta a sinistra",
|
|
"MoveRight": "Sposta a destra",
|
|
"MoveUp": "Sposta in alto",
|
|
"MoveDown": "Sposta in basso",
|
|
"RestoreDefaults": "Ripristina impostazioni predefinite",
|
|
"SelectItem": "Seleziona elemento",
|
|
"SelectItemAll": "Seleziona tutti gli elementi",
|
|
"SelectItemNone": "Deseleziona tutti gli elementi",
|
|
"NumberItems": "{count, plural, =0 {nessun elemento} =1 {1 elemento} other {# elementi}}",
|
|
"Assigned": "Assegnato",
|
|
"Created": "Creato",
|
|
"Subscribed": "Iscritto",
|
|
"ShowPreview": "Mostra anteprima documento",
|
|
"ShowActions": "Mostra popup azioni",
|
|
"ActionPlaceholder": "Cerca o esegui un comando...",
|
|
"General": "Generale",
|
|
"Navigation": "Navigazione",
|
|
"Editor": "Editor",
|
|
"MarkdownFormatting": "Formattazione",
|
|
"CustomizeView": "Personalizza vista",
|
|
"ConfigureColumns": "Configura colonne",
|
|
"Filter": "Filtra",
|
|
"ClearFilters": "Pulisci filtri",
|
|
"FilterLessThan": "Meno di",
|
|
"FilterGreaterThan": "Più di",
|
|
"FilterIsNot": "non è",
|
|
"FilterIsEither": "è",
|
|
"FilterIsEitherPlural": "è",
|
|
"FilterStatesCount": "{value, plural, =1 {1 stato} other {# stati}}",
|
|
"FilterUpdated": "Filtro aggiornato",
|
|
"FilterRemoved": "{count, plural, =1 {# valore non esistente è stato} other {# valori non esistenti sono stati}} rimossi dal filtro",
|
|
"Before": "Prima",
|
|
"After": "Dopo",
|
|
"Apply": "Applica",
|
|
"Save": "Salva",
|
|
"IncludeItemsThatMatch": "Includi elementi che corrispondono",
|
|
"AnyFilter": "qualsiasi filtro",
|
|
"AllFilters": "tutti i filtri",
|
|
"MatchCriteria": "Criteri di corrispondenza",
|
|
"DontMatchCriteria": "Non corrispondono ai criteri",
|
|
"View": "Visualizza",
|
|
"MarkupEditor": "Modifica contenuto",
|
|
"List": "Elenco",
|
|
"Grid": "Griglia",
|
|
"Timeline": "Cronologia",
|
|
"Select": "Seleziona",
|
|
"NoGrouping": "Nessun raggruppamento",
|
|
"Grouping": "Raggruppamento",
|
|
"Ordering": "Ordinamento",
|
|
"Manual": "Manuale",
|
|
"FilteredViews": "Viste filtrate",
|
|
"NewFilteredView": "Nuova vista filtrata",
|
|
"FilteredViewName": "Nome vista filtrata",
|
|
"Then": "Poi",
|
|
"ShowPreviewOnClick": "Clicca per mostrare l'anteprima dell'indice del documento...",
|
|
"Shown": "mostrando {len} risultati {total, plural, =-1 {} other {di # elementi filtrati}}",
|
|
"Total": "Totale: {total, plural, other{#}}",
|
|
"ShowEmptyGroups": "Mostra gruppi vuoti",
|
|
"Overdue": "Scaduto",
|
|
"Today": "Oggi",
|
|
"Yesterday": "Ieri",
|
|
"ThisWeek": "Questa settimana",
|
|
"NextWeek": "Prossima settimana",
|
|
"ThisMonth": "Questo mese",
|
|
"NextMonth": "Prossimo mese",
|
|
"NotSpecified": "Non specificato",
|
|
"ExactDate": "Data esatta",
|
|
"BeforeDate": "Prima della data",
|
|
"AfterDate": "Dopo la data",
|
|
"BetweenDates": "Tra le date",
|
|
"AddSavedView": "Aggiungi vista salvata",
|
|
"Public": "Pubblico",
|
|
"Hide": "Nascondi",
|
|
"Rename": "Rinomina",
|
|
"SaveAs": "Salva come",
|
|
"And": "e",
|
|
"Between": "è tra",
|
|
"ShowColors": "Usa colori",
|
|
"Show": "Mostra",
|
|
"FilterArrayAll": "tutti",
|
|
"FilterArrayAny": "qualsiasi",
|
|
"Or": "O",
|
|
"HyperlinkPlaceholder": "https://jappleseed.com",
|
|
"CopyToClipboard": "Copia negli appunti",
|
|
"CopyAll": "Copia tutto",
|
|
"CopyDocumentMarkdown": "Copia come Markdown",
|
|
"CopyAsMarkdownTable": "Copia come tabella Markdown",
|
|
"TableCopiedToClipboard": "Tabella copiata negli appunti",
|
|
"TableCopyFailed": "Impossibile copiare la tabella negli appunti",
|
|
"PublicView": "Vista pubblica",
|
|
"ChooseIcon": "Scegli icona",
|
|
"IconColor": "Scegli colore icona",
|
|
"IconCategory": "Icona",
|
|
"EmojiCategory": "Emoji",
|
|
"Type": "Tipo",
|
|
"ToViewCommands": "per visualizzare i comandi disponibili",
|
|
"UnArchive": "Annulla archiviazione",
|
|
"UnArchiveConfirm": "Vuoi annullare l'archiviazione di questo {count, plural, =1 {oggetto} other {# oggetti}}?",
|
|
"Pin": "Fissa",
|
|
"Unpin": "Slega",
|
|
"Archived": "Archiviato",
|
|
"MoreActions": "Altre azioni",
|
|
"Leave": "Esci",
|
|
"Join": "Unisciti",
|
|
"Copied": "Copiato",
|
|
"Title": "Titolo",
|
|
"HideArchived": "Nascondi archiviato",
|
|
"RemoveRelation": "Rimuovere relazione",
|
|
"RemoveRelationConfirmation": "Vuoi rimuovere la relazione?",
|
|
"MasterDetail": "Master-detail",
|
|
"Tree": "Albero",
|
|
"Document": "Documento",
|
|
"Loading": "Caricamento...",
|
|
"NoRelations": "Nessuna relazione",
|
|
"ReadOnlyWarningTitle": "✨ Demo ospite anonimo",
|
|
"ReadOnlyWarningMessage": "Sei in modalità di sola lettura. Scegli il tuo percorso: Unisciti a questo spazio per collaborare (come ospite) o crea il tuo spazio per gestire completamente i progetti — task, scadenze, team!",
|
|
"ReadOnlyJoinWorkspace": "Unisciti allo spazio",
|
|
"ReadOnlySignUp": "Crea spazio",
|
|
"PermissionWarningTitle": "✨ Migliora il tuo accesso!",
|
|
"PermissionWarningMessage": "Il tuo ruolo attuale ha autorizzazioni limitate. Per sbloccare questa e altre funzionalità avanzate, chiedi all'amministratore del tuo spazio di lavoro di aggiornare il tuo livello di accesso!",
|
|
"Icon": "Icona",
|
|
"Color": "Colore",
|
|
"AutomationOnly": "Solo automazione",
|
|
"CopyLink": "Copia link",
|
|
"ValueIsSet": "Il valore è impostato",
|
|
"RoleLabel": "Ruolo: {role}",
|
|
"ForbidAttributeChanges": "Vieta modifiche: ",
|
|
"AllowAttributeChanges": "Consenti modifiche: ",
|
|
"RelationshipTable": "Tabella delle relazioni",
|
|
"FilterOverflowBadge": "+{count}",
|
|
"AddFilter": "Aggiungi filtro",
|
|
"HiddenFilters": "Filtri nascosti"
|
|
}
|
|
}
|