Skip to content

GhostGantt specification ​

Important

Status: Approved. The maintainer approved this specification on 2026-12-04, accepting each of the decisions in Decisions for review as written. The implementation gate records the order of the dependent implementation work. Approval does not assign an implementation release.

Purpose and user problems ​

A planner needs to see which tasks overlap, what blocks a milestone, and what would happen if a task moved. GhostGantt is a headless Vue Gantt chart that renders a schedule supplied by the application and lets the planner propose date edits. It aligns a hierarchical task list with a calendar-day time axis, date bars, milestones, and finish-to-start dependency connectors.

The chart never decides a schedule. It reads app-owned tasks and dependencies, previews a planner's edit locally, and emits one edit request when the edit is complete. The application accepts the request by supplying a revised schedule, or rejects it with a reason. Scheduling policy, persistence, parent roll-ups, dependency validation, and any downstream recalculation stay with the application. A future scheduling engine can consume the same requests as an ordinary application, so the chart stays usable with either.

The first delivery covers:

  • A read-only view: stable task IDs, hierarchical rows with expand/collapse, app-supplied parent spans, date bars with an inclusive finish, explicit milestones, unscheduled tasks, and typed finish-to-start dependencies with a keyboard-readable description, including a dependency whose other task is missing.
  • An accessible Edit dates action, the keyboard and precise-entry path for every date change.
  • Direct manipulation: moving a bar, and resizing its start or finish edge with pointer and touch, with calendar-day snapping and edge auto-scroll.

The worked fixture and traces show dates, focus, and announcements for a successful move, a milestone shift, a rejected edit, a dangling dependency, and selection during editing.

Non-goals ​

  • Scheduling. No automatic rescheduling, dependency enforcement, slack or critical-path calculation, cycle detection, resource levelling, or parent roll-up. Linked tasks that overlap are displayed as supplied. A scheduling engine is a separate future design that would emit or consume the edit request.
  • Timed work. Every value is a calendar date (CalendarDate). Hours, instants, time zones, and DST-sensitive durations are left for a later design (Compatibility keeps room for it).
  • Other dependency types. Only finish-to-start is rendered. Start-to-start, finish-to-finish, start-to-finish, and lag or lead are additive later.
  • Creating or deleting tasks or dependencies, drawing links by dragging, reparenting, or reordering rows. Hierarchy and order are app data.
  • Converting a task to a milestone or back, and unscheduling a task. Those are app actions outside the chart.
  • Working calendars. Non-working days, holidays, and working-day durations. Snapping and durations use calendar days, including weekends.
  • Zoom levels beyond a day scale, such as week, month, or quarter header granularity. The day width is a styling variable; a scale switch is later work.
  • Virtualized rows or columns. Every row in the visible hierarchy is mounted (Performance).
  • Cell-by-cell navigation, typeahead, and range selection. Rows are the focus unit in the first delivery (D1).
  • A themed GhostGantt in @ghostvue/themes. This is the headless contract; a themed wrapper is separate work, as it was for DataGrid.
  • Undo, optimistic display, and pending-save UI. The application may supply optimistic dates itself or render pending state through the task slot.

Public API ​

Exports ​

ExportPackageRole
GhostGantt@ghostvue/vueHeadless component that renders the task list, timeline, and editor.
GanttTask, GanttEditRequest, …@ghostvue/vuePublic types listed in Types.

The composable behind the component stays internal in the first delivery (D8). Dates are CalendarDate values from @internationalized/date, which @ghostvue/vue already depends on for GhostCalendar and GhostDatePicker.

Types (exact contracts) ​

ts
import type { CalendarDate } from '@internationalized/date'

/** Stable task identity. Never an array index or DOM position. */
export type GanttTaskId = string

/**
 * Calendar dates a task occupies. `finish` is inclusive: June 1–3 occupies
 * three days. A one-day task has `start` equal to `finish` and is still a
 * span, distinct from a milestone.
 */
export interface GanttSpan {
  readonly kind: 'span'
  readonly start: CalendarDate
  readonly finish: CalendarDate
}

/** A zero-duration point on one calendar date. */
export interface GanttMilestone {
  readonly kind: 'milestone'
  readonly date: CalendarDate
}

/** A task without dates. It has a row but no bar. */
export interface GanttUnscheduled {
  readonly kind: 'unscheduled'
}

export type GanttScheduledDates = GanttSpan | GanttMilestone
export type GanttSchedule = GanttScheduledDates | GanttUnscheduled

/** One app-owned row. Read by reference; never cloned or mutated. */
export interface GanttTask {
  /** Unique, stable ID. Identity for focus, selection, gestures, and errors. */
  readonly id: GanttTaskId
  /** Parent task ID, or `null`/omitted for a root row. */
  readonly parentId?: GanttTaskId | null
  /** Plain text title. Row name and announcement subject. */
  readonly title: string
  /**
   * App-supplied dates. A parent's span is supplied by the app (a roll-up or
   * an independently committed window); the chart never derives it.
   */
  readonly schedule: GanttSchedule
  /** Whether Edit dates and gestures are available for this row. @default false */
  readonly editable?: boolean
  /** Opaque consumer metadata; the chart never reads it. */
  readonly meta?: Readonly<Record<string, unknown>>
}

/** The only dependency type in the first delivery. Explicit, never implied. */
export type GanttDependencyType = 'finish-to-start'

export interface GanttDependency {
  /** Unique, stable ID. */
  readonly id: string
  readonly type: GanttDependencyType
  /** Task that must finish first. May name a task that is not in `tasks`. */
  readonly predecessorId: GanttTaskId
  /** Task that starts after it. May name a task that is not in `tasks`. */
  readonly successorId: GanttTaskId
}

/** Inclusive visible date range of the timeline. App-owned. */
export interface GanttRange {
  readonly start: CalendarDate
  readonly finish: CalendarDate
}

/**
 * What the planner changed, derived from the authoritative schedule and the
 * proposed dates (see "Intent derivation").
 */
export type GanttEditIntent =
  'move' | 'change-start' | 'change-finish' | 'change-dates' | 'schedule'

/** The single proposal emitted for a completed, changed edit. */
export interface GanttEditRequest {
  readonly taskId: GanttTaskId
  readonly intent: GanttEditIntent
  /** Proposed dates; the same `kind` as the authoritative schedule, or a span for `schedule`. */
  readonly proposed: GanttScheduledDates
}

/**
 * App-controlled rejection or validation message for one task. Entries are
 * compared by object identity: a new entry object is a new rejection, even
 * when its message text repeats an earlier one.
 */
export interface GanttTaskError {
  readonly taskId: GanttTaskId
  /** Complete, localized sentence. Shown visibly; announced once per entry object. */
  readonly message: string
}

/** The kind of gesture an announcement is about. */
export type GanttGestureKind = 'move' | 'change-start' | 'change-finish'

/**
 * Localizable text. Every member has an English default. This is the only
 * label override path: every string the chart renders or announces itself
 * comes from one of these members, and the `task`, `bar`, and `empty` slots
 * cover app content.
 */
export interface GanttMessages {
  /** Column headers. Defaults: "Task", "Dates", "Dependencies". */
  columnTask: string
  columnDates: string
  columnDependencies: string
  /** Editor dialog title. Default: "Edit dates: Build". */
  editDates: (task: GanttTask) => string
  /** Row Edit dates button name. Default: "Edit dates for Build". */
  editDatesButton: (task: GanttTask) => string
  /** Editor field labels. Defaults: "Start", "Finish", "Date". */
  fieldStart: string
  fieldFinish: string
  fieldDate: string
  /** Editor buttons. Defaults: "Save", "Cancel". */
  save: string
  cancel: string
  /** Structural validation errors shown on editor fields. */
  dateRequired: (field: 'start' | 'finish' | 'date') => string
  finishBeforeStart: string
  dates: (schedule: GanttSchedule, format: GanttDateFormatter) => string
  dependencyBefore: (context: GanttDependencyTextContext) => string
  dependencyAfter: (context: GanttDependencyTextContext) => string
  /** Gesture canceled by an external date change. Default ends with "Move canceled." or "Resize canceled." */
  changedDuringEdit: (
    task: GanttTask,
    gesture: GanttGestureKind,
    format: GanttDateFormatter,
  ) => string
  editorRefreshed: (task: GanttTask, format: GanttDateFormatter) => string
  /**
   * The focused or edited task is no longer in `tasks` (deleted, filtered
   * out, or otherwise absent; the chart cannot tell which). Default:
   * "Design is no longer shown."
   */
  noLongerShown: (title: string) => string
  /** Gesture canceled because the task became read-only. Default: "Move canceled." or "Resize canceled." */
  canceled: (title: string, gesture: GanttGestureKind) => string
  scheduleUpdated: (task: GanttTask, format: GanttDateFormatter) => string
}

export type GanttDateFormatter = (date: CalendarDate) => string

export interface GanttDependencyTextContext {
  readonly dependency: GanttDependency
  /** The task at the other end, or `undefined` when it is not in `tasks`. */
  readonly other: GanttTask | undefined
  /** The other task's ID, always available, for a missing endpoint. */
  readonly otherId: GanttTaskId
  /**
   * When the other task exists but is inside a collapsed parent: the visible,
   * collapsed ancestor row that contains it (the one to name, as in "hidden
   * in Release"). `undefined` when the other task is visible or missing.
   * Computed from the chart's current expansion, controlled or not.
   */
  readonly otherHiddenIn: GanttTask | undefined
}

export interface GanttTaskSlotProps {
  readonly task: GanttTask
  /** 1-based hierarchy level. */
  readonly level: number
  readonly expanded: boolean | undefined
  readonly selected: boolean | undefined
  /** Preview dates while this task is being edited by a gesture. */
  readonly preview: GanttScheduledDates | undefined
  readonly error: string | undefined
}

export interface GanttExposed {
  /** Focuses a visible row and makes it the Tab target. `false` if hidden or absent. */
  focusTask: (id: GanttTaskId) => boolean
  /** Sends a polite message through the chart's status element. */
  announce: (message: string) => void
}

CalendarDate values are compared with compare() and never converted to Date for layout, so a date never shifts across time zones or DST transitions (Date model).

Props and configuration ​

PropTypeDefaultContract
tasksreadonly GanttTask[]requiredSibling order is array order. Never sorted, filtered, cloned, or mutated.
dependenciesreadonly GanttDependency[][]Rendered as supplied, including overlapping and dangling dependencies.
rangeGanttRangerequiredInclusive visible dates. Required so server and client markup agree; the chart never derives it from today.
expandedreadonly GanttTaskId[]undefinedControlled expanded parent IDs (v-model:expanded). Omit for uncontrolled.
defaultExpandedreadonly GanttTaskId[] | 'all''all'Initial expanded parents when expanded is omitted.
selectedreadonly GanttTaskId[]undefinedControlled selection (v-model:selected). When omitted, rows have no selection state (D6).
selectionMode'single' | 'multiple''single'Used only when selected is bound.
taskErrorsreadonly GanttTaskError[][]App-controlled messages; the chart never adds or clears entries.
todayCalendarDateundefinedOptional today marker. Never computed with new Date().
localestring'en-US'Intl locale for date text. Explicit so SSR and hydration format identically.
dir'ltr' | 'rtl'undefinedTimeline and arrow direction. When omitted, read from the root's computed direction in the browser.
messagesPartial<GanttMessages>EnglishOverrides for labels, descriptions, and announcements.
  • Accessible name. aria-label and aria-labelledby are fallthrough attributes applied to the treegrid element (inheritAttrs: false). class and style go to the root. Development builds warn once when neither name attribute is present. The element named by aria-labelledby is the schedule heading used by focus recovery.
  • Validation in development. The chart warns once per duplicate task or dependency ID (first occurrence wins), per parentId that names a missing task or forms a cycle (the row renders at the root), per span whose finish is before start (rendered as unscheduled), and when range.finish is before range.start (no timeline is rendered). A dependency endpoint that is missing is not warned about: it is a valid state (dangling dependencies).

v-model contracts ​

  • v-model:expanded. Emits the full next array when a parent is expanded or collapsed by key or pointer. Uncontrolled mode starts from defaultExpanded. IDs that are not parents, or not in tasks, are kept in the emitted array unchanged, so filtering does not forget expansion.
  • v-model:selected. Emits the full next array on an explicit selection action (Keyboard). The chart never prunes an ID because its row is hidden, filtered out, or absent: absence is not evidence of deletion. After the application confirms a deletion it removes that ID from selected itself, which clears only that ID.
  • There is no v-model for dates. tasks is app state that the chart proposes changes to and never writes.

Events, callbacks, slots, and exposed methods ​

edit-request (payload GanttEditRequest).

  • Emitted at most once per completed edit, and only when the proposed dates differ from the authoritative schedule at completion. An unchanged result emits nothing.
  • Completion is Save in the Edit dates editor, or pointer release after an activated gesture. Cancellation, interruption, removal, or an external date change never emits (State model).
  • The editor closes and returns focus to the row before emitting, so a handler that changes tasks runs with the chart in navigation state (D2). A gesture removes its preview before emitting.
  • The handler's return value is ignored and not awaited. The application validates, saves, and then either supplies revised tasks (acceptance, possibly with other tasks' dates changed by its own policy) or sets a taskErrors entry (rejection).
  • The editor and gestures produce identical payloads for the same dates. For example, dragging Design's finish edge from June 3 through June 4 and June 5 to June 6 emits the same request as setting Finish to June 6 in the editor. There is no source field.

update:expanded, update:selected. See v-model contracts.

Slots.

  • task (GanttTaskSlotProps): title cell content. Default: task.title. The slot must render text; the row's name is read from this cell.
  • bar (GanttTaskSlotProps): optional visual label inside a bar. It is aria-hidden like the rest of the timeline and must not contain focusable content.
  • empty: content of the empty chart. Development builds warn when tasks is empty and no empty slot is provided.

Exposed methods (GanttExposed):

  • focusTask(id) moves real focus to a visible row and makes it the Tab target. It returns false and does nothing for a hidden or missing row. It never opens the editor and never cancels a gesture on another row.
  • announce(message) sends a polite message through the chart's status element, so an application can describe downstream changes it made (for example a milestone moved by its own policy) without a second live region.

Edit request ​

Intent derivation ​

The intent is derived from the authoritative schedule A at completion and the proposed dates P, so the editor and gestures agree:

AP compared with AIntent
unscheduledany spanschedule
milestonedifferent datemove
spanstart and finish shifted by the same day countmove
spanonly start differschange-start
spanonly finish differschange-finish
spanboth differ and the inclusive duration changeschange-dates
anyidentical datesno request

A gesture on a bar body can only produce move, and a gesture on the start or finish edge can only produce change-start or change-finish. The editor can produce any intent.

Worked examples ​

Design is June 1–3, 2027 (three days). Build is June 4–6 and depends on Design finish-to-start.

  • Move. Design to June 3–5: { taskId: 'design', intent: 'move', proposed: { kind: 'span', start: 2027-06-03, finish: 2027-06-05 } }. The duration stays three days.
  • Change a boundary. Design to June 1–5: { taskId: 'design', intent: 'change-finish', proposed: { kind: 'span', start: 2027-06-01, finish: 2027-06-05 } }. The duration becomes five days.
  • Build. In both cases Build stays June 4–6 until the application supplies a revised schedule. After the move, Design (June 3–5) overlaps Build; the chart draws both bars and the connector as supplied and reports no conflict.

Dates in these examples are CalendarDate values, written in ISO form.

State model ​

The chart has three interaction states per instance. Only one can be active.

  • Navigation. A row (or the empty chart) is the Tab target.
  • Editing. The Edit dates editor is open for one task ID. It holds a draft.
  • Gesture. A pointer or touch gesture is pending activation or active on one task ID. An active gesture holds the preview dates.
FromTriggerToEmitsFocus
NavigationEnter / F2 on an editable row, or its Edit dates buttonEditingnothingEditor's first field
EditingSave with valid, changed datesNavigationonceThe row (by ID)
EditingSave with unchanged datesNavigationnothingThe row
EditingCancel, EscapeNavigationnothingThe row
EditingTask's authoritative dates changeEditingnothingStays or new first field; draft reset (D3)
EditingTask removedNavigationnothingRecovery
EditingTask becomes not editableNavigationnothingThe row, or the visible collapsed ancestor row if it is hidden
EditingRow hidden by an ancestor collapsingEditingnothingStays in the editor; on close, the visible collapsed ancestor row
NavigationPrimary press on an editable bar, body, or edgeGesturenothingUnchanged until activation
GestureMovement past threshold (pointer) or 500 ms hold (touch)GesturenothingThe row (activated)
GestureTouch movement before hold activationNavigationnothingUnchanged; page or chart scrolls normally
GestureRelease with changed previewNavigationonceThe row
GestureRelease with unchanged preview, or release before activationNavigationnothingThe row on a click; otherwise unchanged
GestureEscape, pointercancel, lost capture, window blur, hidden page, second touch, unmountNavigationnothingThe row if it held focus
GestureTask's authoritative dates changeNavigationnothingThe row; cancellation announced
GestureTask removedNavigationnothingRecovery if it held focus
GestureTask becomes not editableNavigationnothingThe row
GestureRow hidden by an ancestor collapsingNavigationnothingVisible collapsed ancestor row if the row held focus
AnyTitle change, reorder, insertion, other tasks' dates changeSamenothingSame task by ID

Date model ​

  • All dates are CalendarDate values. The chart never reads a time, an instant, or the viewer's time zone. June 1–3 occupies three day columns in every viewing time zone, including days that contain a DST transition.
  • Inclusive duration is finish.compare(start) + 1 days. A bar's inline start is start.compare(range.start) day columns and its width is its duration.
  • A one-day span (start equal to finish) renders a bar one day column wide, is described as "1 day", and has start and finish edges. A milestone renders a marker centred in its date's column, has no edges, and is described as "Milestone". They differ in kind, shape, text, and data attribute (data-kind="span" or "milestone").
  • Dates are formatted with Intl.DateTimeFormat on toDate('UTC') with timeZone: 'UTC', so formatting cannot shift a date either.
  • A span or milestone that is partly or wholly outside range keeps its full dates in the task list. Its bar is clipped to the range with data-clipped-start / data-clipped-finish; a bar wholly outside renders no timeline element.

Gestures ​

  • Targets. An editable span has three distinct targets: the body (move), the start edge, and the finish edge (resize). Edges are separate elements that never overlap each other. A milestone has only a body. Non-editable bars have no gesture targets. An edge outside range (a clipped edge) has no resize target, and a body with no valid move offset (see range clamping below) has no move target. Edit dates stays available for those tasks, with no range restriction.

  • Pointer (mouse, pen). A primary-button press on a target becomes active after 4 CSS pixels of horizontal movement. Less movement is a click, which focuses the row. On activation the chart captures the pointer.

  • Touch. Press and hold anywhere on the editable body, or on an edge, for 500 ms with less than 8 CSS pixels of movement to activate. Movement of 8 pixels or more before activation abandons the hold and the browser scrolls normally. Bars use touch-action: pan-x pan-y so that scrolling is never blocked before activation; after activation a non-passive touchmove listener prevents page and chart scrolling until release. A long press does not open the browser's callout or context menu on an editable bar.

  • Day snapping. The day width is measured once at activation from the rendered timeline. The preview offset is Math.round(horizontalDelta / dayWidth) days, where horizontalDelta includes chart scroll since activation and is negated in RTL. Moving shifts both dates (or a milestone's date) by the offset. Resizing shifts one edge, clamped so that start never passes finish (minimum one day). Snapping stays in calendar days; weekends are ordinary days.

  • Range clamping. Gestures never change a duration to fit the range. For a move, with authoritative dates s–f (s equal to f for a milestone), the day offset is clamped to [min(0, range.start − s), max(0, range.finish − f)]. A task inside the range can therefore move until either date reaches a range boundary, and a clipped task can move back towards the range but never further out of it. The preview keeps the authoritative duration at every offset, so a body gesture can only produce move. When both bounds are 0 (for example, a span longer than range that covers it, or one clipped at both ends), there is no valid move offset and the body has no move target. For a resize, the dragged edge is clamped to range and to the other edge. The application extends range when it wants dates beyond it reachable by dragging.

  • Preview. While active, the bar renders at the preview dates with data-state="previewing", the row's Dates cell shows the preview dates visibly, and connectors attached to the task follow it. Nothing outside the chart changes.

  • Edge auto-scroll. While a gesture is active and the pointer is within 32 CSS pixels of the visible timeline's inline-start or inline-end edge (inside the sticky task-list columns, not the page edge), the chart scrolls its own treegrid horizontally, faster closer to the edge, on animation frames. The preview updates as new days come into view. Scrolling stops when the pointer leaves the edge zone, on release, and on cancellation. At the container's scroll limit it stops; it never scrolls the page or an ancestor, and never hands off to page scrolling.

  • Release. If the preview dates differ from the authoritative dates, the chart removes the preview and emits one request. The bar then shows the authoritative dates until the application supplies new ones; the chart does not display a proposal as if it were accepted.

  • Cancellation and interruption. Escape, pointercancel, lost pointer capture, window blur, the page becoming hidden, a second touch point, or the chart unmounting discards the preview, stops auto-scroll, releases listeners, and emits nothing. Escape is default-prevented only while a gesture is active, so an enclosing dialog stays open.

  • Source data changes mid-gesture. On every tasks update the active task is looked up by ID:

    • Its schedule changed (kind or any date): cancel, announce changedDuringEdit (for example "Design changed to June 2 to June 4. Move canceled."), and show the updated dates. The later release emits nothing.
    • Only its title, position, siblings, or other tasks changed: the gesture continues and still addresses the same ID. A changed release emits exactly one request.
    • It is no longer in tasks: cancel and announce noLongerShown; recover focus if the row held focus.
    • Its row became hidden because an ancestor collapsed (for example through controlled expanded): cancel and announce canceled; if the row held focus, focus moves to the visible collapsed ancestor row.
    • It became non-editable: cancel and announce canceled.

    Both cancellation messages receive the gesture kind (move, change-start, or change-finish), so a resize is never announced as a move.

Edit dates editor ​

  • The editor is a modal GhostDialog titled by messages.editDates(task) ("Edit dates: Build"). A span shows Start and Finish fields; a milestone shows one Date field; an unscheduled task shows empty Start and Finish fields. Fields are GhostDatePicker single-date inputs with the chart's locale.
  • The draft opens from the authoritative dates. Save validates structurally only: both span fields present and finish not before start. A failed check shows a field error through the date picker's error flow, keeps the editor open, and emits nothing. All other policy (for example a freeze date) belongs to the application's rejection.
  • Save derives the intent (Intent derivation), closes the editor, returns focus to the row, and then emits if the dates changed.
  • External change while open (D3): when the task's authoritative schedule changes, the draft resets to the new dates and the editor shows and announces editorRefreshed ("Build changed to June 5 to June 7. Review the dates and save again."). It never announces a cancellation, because editing continues. If the new schedule changes the field set (a span or unscheduled task becomes a milestone, or a milestone becomes a span or unscheduled) while focus is in a field that is replaced, focus moves to the new set's first field (Date, or Start); otherwise focus stays where it was. A title change or reorder does not touch the draft. Removal closes the editor and applies focus recovery. Becoming non-editable closes the editor and returns focus as Cancel does.
  • Row hidden while editing. If an ancestor collapses while the editor is open (for example the application changes a controlled expanded), the editor stays open with its draft, and Save still emits for the task ID. When the editor closes by Save, Cancel, or Escape, or because the task became non-editable, focus goes to the task's row if it is visible again, otherwise to the visible collapsed ancestor row that contains it. The chart does not expand the ancestor.
  • Errors in the editor. If a taskErrors entry exists for the task when the editor opens, or appears while it is open, the editor shows it and references it from the fields' descriptions, so a planner can recover in the editor.

Rejection and acceptance ​

  • Rejection. The application leaves the task's dates unchanged and sets a new taskErrors entry object for the task. The row shows the authoritative dates and the message as visible text, exposes data-invalid, references the message from the row's description, and announces it once politely. The row keeps its Edit dates action and gesture targets, so the planner can retry by either path. The chart does not move focus: if the planner already moved focus elsewhere, focus stays there.
  • Acceptance. The application supplies revised tasks. The chart keeps one outstanding request record per task ID, so requests for different tasks can be resolved in any order. When the schedule of a task with an outstanding request changes, the chart announces scheduleUpdated once for that task ("Design: June 3 to June 5."). Changes the application makes to other tasks are not announced by the chart; the application uses announce() for those. The chart does not announce the emission of a request (D5).
  • Acceptance clears earlier errors. The chart never hides or removes an app-supplied taskErrors entry. When the application accepts a request for a task that has an entry (for example a retry after a rejection), it removes that entry in the same update as the revised dates; otherwise the row stays data-invalid and the editor keeps showing the old message.
  • Every request needs an observable outcome. The application answers each request with revised dates for that task or with a new taskErrors entry object for it, created for this response even when the message text repeats an earlier rejection (an immutable update such as [...others, { taskId, message }] does this). When a request is emitted, its record snapshots the task's current entry object, if any. A rejection is any later entry for that task whose object differs from the snapshot, so a retry that is rejected again with the same text is still announced and resolves the retry. Leaving the earlier entry object in place is not a response.
  • A task's outstanding request record is cleared by the first of: a schedule change for that task, a taskErrors entry object for that task that differs from the record's snapshot, its removal, or a newer request for the same task (which replaces it and takes a new snapshot). If the application does not answer a request, the next schedule change for that task is announced as its outcome; that is why every request must be answered. A request for another task never clears it. When one update resolves several tasks, their announcements are combined into one status message in display order.

Loading, empty, disabled, read-only, and error states ​

  • Read-only is per task (editable, default false). There is no chart-wide disabled prop; an application blocking edits during loading sets editable: false.
  • Empty. With no visible rows, the treegrid itself is the single Tab stop, named by its label, and shows the empty slot.
  • Error is taskErrors. An error on a read-only task is still shown. An entry for a missing task is ignored.
  • There is no loading state; the application renders its own.

Async behavior ​

The chart has no async work. Requests may be resolved by the application in any order and at any time. A rejection or acceptance that arrives after the planner moved focus never moves focus. A rejection for a task that has since been removed is ignored. Ordering of concurrent saves for one task belongs to the application, as in the DataGrid async guidance.

Consumer data ​

  • Ordinary records with stable IDs. tasks and dependencies are read by reference. The chart never clones, sorts, deep-watches, or mutates them, or any CalendarDate inside them.
  • Hierarchy. Rows render depth-first: root tasks in array order, each followed by its children in array order. A missing or cyclic parentId renders the row at the root (with a development warning).
  • Parent spans are app data. A parent's schedule is rendered as supplied, even when it does not cover its children. Moving or resizing a parent proposes dates for that parent only.
  • Change detection uses Vue reactivity: a new tasks array or a reactive change to a read field. Schedules are compared by value (kind and dates), so a new task object with the same dates is not a date change.
  • Identity is the task ID. An application that mints new IDs on save loses focus, selection, gesture continuity, and error association for that task.
  • Selection, details panels, and pending state are application state. The chart reflects selected and never stores a copy.

Accessibility contract ​

Semantics and relationships ​

  • The task list and the timeline share one scroll surface, so rows align without scroll synchronization. The role="treegrid" element, named by the fallthrough aria-label or aria-labelledby, is that scroll surface: it scrolls vertically and, in narrow layouts, horizontally. There is no separate unnamed scroll wrapper, so the overflowing area is always the named widget, which also holds the row Tab stop. If a later layout needs a wrapper that scrolls on its own, it must be role="region" with the same accessible name.
  • Header row: columnheader cells Task, Dates, and Dependencies, plus the timeline header (month and day labels), which is aria-hidden.
  • Each body row is role="row" with aria-level, aria-setsize, aria-posinset, aria-expanded on parent rows only, and aria-selected only when selected is bound. The row is named by its Task and Dates cells (aria-labelledby) and described by its Dependencies cell and error text (aria-describedby).
  • Cells: rowheader (title, plus "Milestone" or "Not scheduled" where it applies), gridcell Dates (for example "June 1 to June 3, 3 days"; "June 7, 1 day"; "Milestone, June 9"; "Not scheduled"), gridcell Dependencies. The Dates cell has aria-readonly="true" on non-editable rows. The timeline cell, bars, edges, connectors, and today marker are aria-hidden; every fact they show is also in text.
  • An editable row's Dates cell contains an Edit dates native <button type="button">, named "Edit dates for Build", with tabindex="-1". Pointer and screen-reader virtual-cursor users can activate it; keyboard users use Enter / F2 on the row.
  • A polite status element (GhostVisuallyHidden) outside the treegrid carries every announcement in this specification.

Dependency description ​

Each row's Dependencies cell lists, in dependencies array order:

  • incoming links: "After Build finishes (finish-to-start)";
  • outgoing links: "Before Launch starts (finish-to-start)".

A keyboard user hears what blocks a milestone by focusing its row. When the other task is inside a collapsed parent, the text adds "(hidden in Release)", naming the visible collapsed ancestor that contains it (otherHiddenIn in the message context). When the other task is unscheduled, it adds "(not scheduled)".

Dangling dependencies ​

When one endpoint is not in tasks, the existing endpoint's row says "After a missing task, qa, finishes (finish-to-start; not in this schedule)" (or "Before a missing task, … starts"). The text marks it with data-dangling. No connector is drawn. When both endpoints are missing, nothing renders for that dependency. Dangling links are not warned about, announced, or removed.

Connectors ​

A connector is drawn only when both endpoints are visible and scheduled, from the predecessor's finish edge (a milestone's marker) to the successor's start edge. Overlapping or backwards links are drawn as supplied, with no conflict styling from the chart. Connectors are presentation only.

Keyboard interaction ​

The treegrid is one page Tab stop with a roving tabindex on rows (D1). Keys apply to the focused row in navigation state.

KeyBehavior
ArrowDown / ArrowUpNext / previous visible row. No wrap.
Home / EndFirst / last visible row. Ctrl+Home / Ctrl+End do the same.
PageDown / PageUpMoves by the number of fully visible rows, stopping at the first or last row.
ArrowRight (LTR)Collapsed parent: expand. Expanded parent: first child. Leaf: nothing.
ArrowLeft (LTR)Expanded parent: collapse. Child row: its parent row. Root leaf or collapsed root: nothing.
Enter / F2Editable row: open Edit dates. Otherwise nothing.
SpaceWhen selected is bound: toggle the row in multiple mode, select it in single mode. Otherwise nothing.
EscapeActive gesture: cancel. Otherwise not handled, so an enclosing dialog may close.
Tab / Shift+TabLeave the chart. Not default-prevented.

In RTL, ArrowRight and ArrowLeft swap. Arrow keys move focus only; they never change selection. Editor keys are those of GhostDialog and GhostDatePicker. Printable characters are not handled.

Focus behavior ​

  • Entry. The first Tab into the chart focuses the first visible row; later entries return to the remembered row.
  • Reveal. Focusing a row scrolls it into view vertically and scrolls the timeline so the start of its bar is visible (nearest), unless a gesture is active.
  • Collapse. Collapsing a parent while focus is on one of its descendants moves focus to that parent. Selection of hidden descendants is preserved by ID.
  • Editor. Opening moves focus into the editor; Save, Cancel, Escape, and the task becoming non-editable return it to the row by ID, wherever the row now is, or to its visible collapsed ancestor row if the row is hidden (Row hidden while editing).
  • Recovery after removal. Removal means the task is no longer in tasks, for any reason: the chart cannot distinguish deletion from filtering, so its wording is neutral. If a removed task's row or its editor owned focus, the chart cancels any interaction, announces noLongerShown ("Design is no longer shown."), and focuses, in order: the next visible row after the removed row's previous position, else the previous visible row, else the empty chart, which is named by the schedule heading. Parent rows are rows, so a group's parent row is reached as the previous row when its last child is removed. Recovery runs once per update, against the pre-update order.
  • Focus elsewhere. When focus is outside the chart, removal, reorder, collapse, acceptance, and rejection only update the remembered row; the chart never moves focus.
  • Gesture activation focuses the gesture's row, because a pointer interaction on a row is a deliberate move into the chart.

Assistive technology expectations ​

EventAnnouncement (polite)
Acceptance of an outstanding requestscheduleUpdated: "Design: June 3 to June 5."
New taskErrors entry object for a taskThe message, once.
Dates changed during a gesturechangedDuringEdit with the gesture kind: "Design changed to … Move canceled." or "… Resize canceled."
Dates changed while the editor is openeditorRefreshed: "Build changed to June 5 to June 7. Review the dates and save again." The editor stays open.
Removal of the focused or edited tasknoLongerShown: "Design is no longer shown."
Gesture canceled because the task became read-onlycanceled with the gesture kind: "Move canceled." or "Resize canceled."
Gesture canceled by Escape or interruptionnone; the bar visibly returns.
announce(message)The message.

Focus on a row reads its title, dates, level and position, expanded and selected state, dependencies, and any error.

Rendering and customization ​

  • GhostGantt renders the structure; the task, bar, and empty slots provide content. Internal wrapper nesting is not public API.
  • Styling hooks. data-part values: root, treegrid, header, row, title, dates, dependencies, edit-button, timeline, bar, milestone, start-edge, finish-edge, connector, today, error, status. State attributes: data-kind, data-level, data-expanded, data-selected, data-editable, data-state="previewing", data-invalid, data-clipped-start, data-clipped-finish, data-dangling.
  • Geometry variables. --ghost-gantt-day-width and --ghost-gantt-row-height set the scale. Bars are positioned with integer day offsets multiplied by the day width in CSS, so markup contains no measured pixels.
  • Narrow layouts. The Task column is sticky at the inline start; the Dates and Dependencies columns can be visually collapsed by the theme below a container width while staying in the accessibility tree. The timeline scrolls horizontally inside the named treegrid; the page never scrolls horizontally. Edge targets keep a minimum 24×24 CSS pixel target (themes may enlarge them for touch), placed outside a bar that is too narrow to hold both edges and a body.
  • Behavioral inline styles set by the component (touch-action, user-select, callout suppression on editable bars) are not theming hooks.

Environment behavior ​

SSR and hydration ​

  • Server markup is deterministic for tasks, dependencies, range, expanded/defaultExpanded, selected, taskErrors, today, locale, and an explicit dir. No new Date(), measurement, or random IDs; IDs use the library's SSR-stable ID helper.
  • The first visible row has tabindex="0" (or the empty chart does).
  • No editor or preview renders on the server. The status element renders empty, and server-rendered taskErrors are visible but not announced after hydration.
  • Without an explicit dir, server markup is LTR, and the browser reads direction at keypress and gesture time only, so hydration never changes markup or moves focus.

Mobile and touch ​

  • Press-and-hold activation, swipe-to-scroll, and distinct edge targets are specified in Gestures. The Edit dates button and editor are the touch equivalent for precise entry and for users who cannot hold.
  • Gesture code registers listeners on activation and removes them on every exit path. No listener is registered on the server.
  • The editor is a modal dialog; date fields follow GhostDatePicker mobile behavior, including the virtual keyboard.

Performance ​

  • Representative scale. The performance fixture has 300 tasks in three levels (30 parents of 9 children each), 400 finish-to-start dependencies (including 10 dangling and 20 overlapping), and a 26-week visible range (182 days) with some tasks clipped. The first delivery supports about 500 mounted rows; larger schedules need a virtualization design built on the DataTable virtualization hooks.
  • Complexity. Row flattening, ID indexes, and connector geometry are O(n + m) per tasks or dependencies change, never per frame. DOM per row is constant: there are no per-day elements in rows; the day grid is a background.
  • Gesture cost. A preview frame updates one bar, its row's Dates text, and its own connectors. Pointer moves are coalesced per animation frame.
  • Measurement. Day width is read once at gesture activation and the scroll offset per frame while auto-scrolling. There are no resize or scroll listeners outside a gesture.
  • Verification. A Vitest benchmark covers the layout model at the representative scale, and a browser test asserts that a drag on the fixture emits one request and keeps the page scroll unchanged.

Composition ​

  • Reuses @internationalized/date and the internal calendar date math and Intl helpers used by GhostCalendar.
  • Uses GhostDialog and GhostDatePicker for the Edit dates editor, and GhostVisuallyHidden for the status element.
  • Uses GhostTree's hierarchy rules (levels, expansion keys, RTL mirroring, focus to parent on collapse) but not its components: a tree cannot hold the Dates and Dependencies columns, so the chart renders a treegrid.
  • Follows DataGrid's editing pattern: app-owned values, a single changed proposal, close-then-emit, app-controlled errors, and ID-based recovery.
  • Does not use GhostScrollArea: the chart's container needs sticky columns and gesture-owned horizontal auto-scroll.
  • Shared planning-view behavior. The behavior cases in the test plan (completion, cancellation, rejection, external change and removal mid-operation, edge scroll, touch hold, focus recovery) are written so another planning view, such as a future scheduler, can reuse them as scenarios. Each host keeps its own payload and snapping: Gantt snaps to calendar days. Shared private mechanics should be extracted only after two host implementations show the same behavior and code.

Worked fixture ​

The fixture is a release plan in LTR, locale="en-US", range June 1–30, 2027, an app-owned details panel before the chart in page order, and selected bound in single mode.

RowLevelScheduleEditableDependencies
Release1Span June 1–10 (app-supplied)nonone
Design2Span June 1–3yesBefore Build starts
Build2Span June 4–6yesAfter Design; before Review
Review2One-day span June 7yesAfter Build; before Launch
Launch2Milestone June 9yesAfter Review; after missing task qa
Docs1Unscheduledyesnone

Dependencies: design-build, build-review, review-launch, and qa-launch (dangling), all finish-to-start.

Traces ​

Successful move (pointer) ​

  1. Focus is in the details panel. The planner presses Design's bar body and drags right. After 4 pixels the gesture activates and focus moves to Design's row. The bar previews June 2–4, then June 3–5; the Dates cell shows "June 3 to June 5, 3 days". Design now overlaps Build (June 4–6); both bars and the connector are drawn as previewed.
  2. Release. The preview is removed and the chart emits once: { taskId: 'design', intent: 'move', proposed: { kind: 'span', start: 2027-06-03, finish: 2027-06-05 } }.
  3. The application saves and supplies Design June 3–5. It leaves Build at June 4–6. The chart announces "Design: June 3 to June 5." Focus stays on Design's row.

Milestone shift ​

  1. Focus on Launch reads "Launch, milestone, June 9 … After Review finishes (finish-to-start). After a missing task, qa, finishes (finish-to-start; not in this schedule)."
  2. Keyboard: on Build, Enter opens "Edit dates: Build" with Start June 4 and Finish June 6. The planner sets Finish to June 8 and saves. The editor closes, focus returns to Build's row, and the chart emits { taskId: 'build', intent: 'change-finish', proposed: { kind: 'span', start: 2027-06-04, finish: 2027-06-08 } }.
  3. The application accepts and, by its own policy, moves Review to June 9 and Launch to June 11. The chart announces "Build: June 4 to June 8." The application calls announce('Review and Launch moved. Launch is now June 11.'). Launch's marker and connectors move; nothing else is announced.
  4. Direct shift: pressing Launch's marker (now June 11), dragging it two days right, and releasing emits { taskId: 'launch', intent: 'move', proposed: { kind: 'milestone', date: 2027-06-13 } }. A milestone never shows edges, so it cannot be resized.

Rejected edit (touch) ​

  1. The planner presses and holds Build's finish edge for 500 ms. The gesture activates; focus moves to Build's row. Dragging previews June 4–7, then June 4–8.
  2. Release emits { taskId: 'build', intent: 'change-finish', proposed: { kind: 'span', start: 2027-06-04, finish: 2027-06-08 } }, the same payload the editor produced above.
  3. The application rejects: tasks is unchanged and it sets { taskId: 'build', message: 'Build not moved: the release freeze starts June 7.' }. Build shows June 4–6 and the message; the message is announced once.
  4. The planner can press Enter to open Edit dates (the message appears in the editor) or drag again. If the planner had moved focus to the details panel before the rejection arrived, focus stays there.

Dangling dependency ​

Launch's description includes the missing qa endpoint as above; no connector is drawn for it. When the application later adds a qa task, the text names it and a connector appears, without an announcement. A link whose other task is inside a collapsed parent keeps its text, adds "(hidden in Release)", and draws no connector until the parent is expanded.

Cancellation and changes during a gesture ​

  • Dragging Design and pressing Escape: the bar returns to June 1–3, nothing is emitted, nothing is announced, and focus is on Design's row.
  • While Design is being dragged, the application changes Design to June 2–4: the gesture cancels, "Design changed to June 2 to June 4. Move canceled." is announced, the bar shows June 2–4, and the later release emits nothing.
  • While Design is being dragged, the application renames it or moves its row below Build: the gesture continues, and release emits one request for design.
  • While Design is being dragged near the timeline's inline-end edge, the chart scrolls itself right and the preview extends; the page does not scroll. Moving away from the edge, releasing, or pressing Escape stops the scrolling.
  • A touch swipe that starts on Design's bar and moves before 500 ms scrolls the chart and emits nothing.

Selection and editing ​

  1. Design is selected (selected: ['design'], Design's row has aria-selected="true"). ArrowDown moves focus to Build; selection is unchanged.
  2. Enter on Build opens Edit dates; the planner sets June 6–8, then presses Escape. Nothing is emitted, Build shows June 4–6, focus returns to Build, and Design is still selected.
  3. The planner proposes June 6–8 again (intent: 'move'). The application rejects with a reason. Build shows June 4–6, the reason is announced, and Design is still selected; focus is on Build.
  4. ArrowLeft on Build moves focus to Release; ArrowLeft collapses Release. Design's row is hidden and selected is still ['design']. ArrowRight expands Release, and Design's row is selected again.
  5. With focus on Build, the application confirms deleting Design: it removes Design from tasks and 'design' from selected. Build keeps focus; nothing is announced. In a variant where Design's row owned focus, the chart announces "Design is no longer shown." and focuses Build (the next visible row).
  6. The edit in steps 2 and 3 used the same { taskId, intent, proposed } request as every other path.

Test plan ​

The fixture above is the shared mounted fixture for Vue and browser tests. Browser tests press every documented key and assert real focus with toBeFocused() and ARIA state.

Framework-neutral unit tests (internal model).

  • Inclusive duration and day offsets for spans, one-day spans, milestones, clipped and out-of-range tasks, ranges that cross DST transitions, run under TZ=America/Los_Angeles, TZ=Pacific/Kiritimati, and TZ=Pacific/Pago_Pago.
  • Intent derivation for every row of the intent table, including no request for identical dates.
  • Snapping: rounding at half a day, RTL negation, resize clamping at one day, and scroll delta during auto-scroll.
  • Range clamping: move offsets for a task inside the range, clipped at the start, clipped at the finish, longer than the range (no move target), and a milestone at a range boundary; the duration is preserved at every offset; clipped edges have no resize target.
  • Hierarchy flattening with orphan and cyclic parents; dependency text for incoming, outgoing, hidden, unscheduled, and dangling endpoints; otherHiddenIn names the nearest visible collapsed ancestor (for example Release when both Release and a nested parent are collapsed) under controlled and uncontrolled expansion.

Vue component tests.

  • Rendering of the fixture: levels, set sizes, expanded and selected state, Dates text, dependency text, data-* hooks, and no connector for qa.
  • Supplied overlaps render without conflict state; parent spans render as supplied.
  • edit-request is emitted once for changed edits and never for unchanged, canceled, interrupted, removed, or externally changed edits; editor and gesture payloads for the same dates are deep-equal.
  • Editor: close-then-emit order, structural validation, refresh on external change with the editorRefreshed announcement (not changedDuringEdit), error display, removal, and becoming non-editable.
  • Rejection and acceptance announcements, and the per-task outstanding request clearing rules.
  • Rejected-then-accepted retry: Build is rejected with message E; the planner retries; the app accepts, supplying revised dates and removing E in one update. scheduleUpdated is announced, the row loses data-invalid and the message, and reopening Edit dates shows no error.
  • Unchanged-error retry: Build is rejected with message E; the planner retries; the app rejects again with a new entry object carrying the same text E. The second rejection is announced and clears the retry's record, so a later app-initiated change to Build's dates is not announced as an acceptance. Keeping the same entry object is not treated as an answer.
  • Out-of-order responses: propose Design, then Build; the app accepts Build first, then Design. Each acceptance announces its own task once. Repeat with Design rejected after Build is accepted, and with both resolved in one update (one combined message).
  • Cancellation messages receive the gesture kind: an external date change and a read-only change during a start-edge and a finish-edge resize announce a resize, not a move.
  • Every messages member overrides its rendered or announced text, including column headers, editor field labels, buttons, and validation errors.
  • Selection by ID across collapse, filtering, and app-confirmed deletion; v-model:expanded keeps unknown IDs.
  • Focus recovery order (next, previous, empty chart) when the removed row or its editor owned focus, and no focus move when focus was outside. Repeat with the focused task and the edited task filtered out of tasks by the application (not deleted): the announcement is noLongerShown, never a deletion message.
  • Controlled expanded collapses Build's parent while Build's editor is open: the editor stays open; Save emits once for build and focus goes to the collapsed parent row; repeat with Cancel and Escape (no emission, same focus target); repeat with the parent expanded again before closing (focus returns to Build's row); repeat with the application then setting Build editable: false (the editor closes, nothing is emitted, and focus goes to the collapsed parent row, not the unmounted Build row). A gesture on a row hidden by a controlled collapse is canceled with canceled and emits nothing.
  • Reorder and insertion mid-gesture keep the gesture on the same ID.
  • Development warnings for missing name, duplicate IDs, bad parents, inverted spans and ranges, and missing empty slot.

Browser tests (Playwright).

  • Every key in the keyboard table, in LTR and RTL, with toBeFocused().
  • At a narrow viewport, the horizontally scrolling surface is the named treegrid (axe scrollable-region-focusable passes) and the page does not scroll horizontally.
  • Pointer move, start-edge and finish-edge resize, day snapping, and one request on release; click without movement focuses only.
  • Touch: swipe before activation scrolls and emits nothing; hold on the body moves; hold on each edge resizes that edge; a second touch cancels.
  • Edge auto-scroll: chart scroll and preview advance while page scroll stays fixed; scrolling stops on edge exit, release, and Escape.
  • External date change, title change, reorder, and removal during a gesture, each followed by release, asserting the request count, visible dates, announcement, and focus.
  • External kind change while the editor is open, asserting focus with toBeFocused(): with focus in Build's Finish field, the application changes Build to a milestone and focus moves to the Date field; with focus in Launch's Date field, the application changes Launch to a span and focus moves to the Start field. Both announce editorRefreshed, keep the editor open, and emit nothing. With focus on Save, the same changes leave focus on Save.
  • Rejected drop: authoritative dates, visible and announced reason, Edit dates and a second drag available, and a late rejection leaving focus outside.
  • Axe with the editor open and closed, and with an error shown.

Accessibility and AT. Screen-reader checks (NVDA with Firefox, VoiceOver with Safari) of row reading, dependency descriptions, and announcements before the manifest leaves experimental.

Type tests. GanttDependency['type'] accepts only 'finish-to-start'; GanttSchedule narrows by kind; GanttEditRequest['proposed'] excludes unscheduled; edit-request handler and slot props are inferred; range and tasks are required.

SSR tests. Server markup is identical across TZ values and to the hydrated client; no editor, preview, or announcement renders on the server; hydration does not move focus.

Documentation plan ​

  • Canonical spec at docs/components/gantt-spec.md and a public guide at docs/components/gantt.md with generated API tables.
  • Executable examples under examples/gantt/: a read-only release plan with a dangling dependency, and an editable plan demonstrating acceptance, rejection with a reason, and app-applied downstream changes through announce().
  • Guide sections: the date model and inclusive finish, why the chart proposes and the app schedules, wiring an edit request to a save, rejection with taskErrors, selection ownership, and accessibility notes (row reading, Edit dates as the keyboard path).
  • A playground section exercising hierarchy, gestures, RTL, and external updates during a gesture.

Compatibility and release impact ​

  • New additive exports in @ghostvue/vue, released as experimental with a minor Changeset when implemented. This specification changes no existing component.
  • Room for later work. GanttSchedule, GanttDependencyType, and GanttEditIntent are unions so that timed schedules, other dependency types, and new intents can be added. Adding a union member is a type-level change for exhaustive consumer switch statements; the guide will say so, and such additions ship with a Changeset noting it.
  • A scheduling engine can consume GanttEditRequest as-is and return revised tasks, so it does not require a chart API change.
  • Package boundary. All code lives in @ghostvue/vue; no new package and no new runtime dependency. A themed wrapper would live in @ghostvue/themes.

Implementation gate ​

Implementation proceeds in two dependent pieces of work, both waiting for this specification to be merged on master with specStatus: approved, approval.evidence, and no blocking unresolvedQuestions:

  1. Timeline and Edit dates. Read-only rendering, hierarchy, dependencies, the Edit dates editor, the edit-request contract, selection, focus recovery, and their tests, docs, example, manifest, and Changeset.
  2. Bar dragging and edge resizing. Gestures, snapping, auto-scroll, touch, and the browser evidence in the test plan. It waits for the first piece because that piece owns the shared edit request.

The dependent implementation work is tracked outside the public issue queue, so this change adds no implementationGates entry to .github/release-scope.json; this section is the gate record.

Open architectural questions ​

Resolved 2026-12-04. The maintainer approved each decision below as written in PR #767. The alternatives stay listed as the record of what was considered.

Decisions for review ​

  1. D1: Row-only focus in a treegrid. Rows are the focus unit; cells are not separately focusable, and ArrowRight / ArrowLeft operate the hierarchy as in a tree. Alternative: cell focus with APG treegrid row-to-cell movement, which would add keys and a cell contract the chart does not need yet.
  2. D2: Close, then emit. Save closes the editor and returns focus to the row before emitting, as DataGrid does. Alternative: keep the editor open until the app accepts or rejects, which needs a pending state and a timeout.
  3. D3: Refresh an open editor on external change. The draft resets to the new dates with a notice, instead of closing the editor.
  4. D4: Derived intents. move, change-start, change-finish, change-dates (both boundaries, new duration, editor only), and schedule (an unscheduled task gets dates, editor only).
  5. D5: No announcement on emission. Only the outcome (acceptance or rejection) is announced; applications announce pending state if they show it.
  6. D6: Controlled-only selection. Selection exists only when selected is bound, so the application decides when a deletion is confirmed.
  7. D7: Touch hold of 500 ms and 8-pixel slop, fixed in the first delivery.
  8. D8: Internal composable. Only GhostGantt and its types are exported; a useGhostGantt escape hatch waits for a demonstrated need.