Skip to content

v1.6.0

Choose a tag to compare

@EightKK EightKK released this 24 Nov 12:16
· 81 commits to main since this release
dc36c49

Adds an opt-in idle-escape to NetworkGraph and GanttChart and the core helper taskViewBindings, so applications clear a selection on Escape and link task views without bookkeeping of their own. The production demo is now one linked, saving app, the scheduler is checked by property tests and a brute-force oracle, and a leveling fault they found is fixed.

Added

  • NetworkGraph and GanttChart report an opt-in idle-escape (@idle-escape in templates, .once included; declared as the listener prop onIdleEscape and delivered as a component event) with the KeyboardEvent when Escape is pressed in them and cancels nothing of their own: no gesture, armed connection or open cell editor (so no gesture-end or edit-cancel for it; an Escape anywhere in the component, on its zoom buttons or minimap too, cancels those first), not in a text field, not handled by the label editor, a filter dialog or a spreadsheet range, and not part of an input method composition. Applications clear their selection on it as on background-click, instead of counting gesture-start and gesture-end or watching edit-cancel around a wrapper element. The examples and showcases use it and no longer carry that bookkeeping.
  • Core: taskViewBindings({ tasks, assignments?, dependencies?, inactiveTaskIds?, taskKind?, dependencyKind? }) returns the ViewBinding[] of a plan whose views show tasks and dependencies under their own IDs: each task bound to its graph node, timeline bar and row and, per assignment, the load ranges in which it uses its resource; each dependency to its graph edge and timeline dependency. It takes a schedule's tasks and the assignments of calculateResourceLoad and binds load through assignmentWorkPeriods, so a load segment selects exactly the tasks calculateResourceLoad counts in it: pauses, calendar breaks and the work outside a partial assignment's workOffset and workDuration select nothing. Spread it with bindings of your own into useLinkedSelection.

Changed

  • The production demo (/demo/ and the production showcase) is now one linked, saving app built only on existing public APIs. The planning and lot flow views share one useLinkedSelection: an operation selected in the graph, the Gantt chart or the load chart is the matching lot step in the lot flow, and a step selected there is the operation in planning, across tab switches. The approval workflow and the schedule sheet have unrelated data and keep their own selection. Every tab saves through one app-wide useEditTransaction against the mock server, with a save bar that shows saving, rejected, conflicting and unanswered saves, app-wide undo and redo, and a choice of the server's next answer. Adopting a plan proposal closes that proposal when its save is accepted, directly or after an unanswered save is checked with the server, and leaves a proposal opened during the save open; its list of rescheduled operations is derived from the plan it is compared with, so it follows a save that is accepted or refused meanwhile. While a save's result is unknown, nothing else is saved, undone or redone until it is checked, and the save bar of the demos (examples/components/SaveStatus.vue) offers to check it or to load the latest version but no longer to dismiss it, which could leave the app showing an older version than the server's. The mock server validates the other planner's change like any save, and the schedule sheet shows why a loaded sheet does not schedule and stays editable instead of failing. The multi-view guide says how to tie such state to its save, that saves, undo and redo must wait while a result is unknown (useEditTransaction refuses a new save only while one is in flight), and that documents from refresh or the server skip the adapter's validate.
  • The scheduling guide now states how ALAP subtasks treat links from their summary: an FS or FF link limits their finish, and an SS or SF link limits the start of each subtask whose earliest start is the summary's earliest start, as in the backward pass. The behaviour is unchanged.

Fixed

  • scheduleTasks no longer throws RangeError: Maximum call stack size exceeded for a summary task with more than about 100,000 links that limit its subtasks, and NetworkGraph with edgeLabelPlacement no longer throws it when a move changes that many nodes: both passed an input-sized list to a single push(...list) call, which now is a loop.
  • levelResources no longer misses capacity shortages before time 0 for tasks with a partial assignment (workOffset or workDuration) when the horizon starts before 0. Such a task could stay overloaded without being listed in unresolvedTaskIds, or keep a start where a resource it needs is closed instead of moving.
  • GanttChart: in right-to-left charts, Safari (WebKit) drew dependency lag labels far from their dependency, beyond the start of the time axis. Each label was turned back inside the mirrored dependency layer by a CSS scaleX(-1) about its own centre, which needs transform-box: fill-box on SVG text, and WebKit flipped it about the layer's origin instead. The label now turns back through its own transform attribute (a flip about its anchor, with a start anchor written as text-anchor="end"), so it covers the same span in every engine. The stylesheet no longer sets transform on .vw-gantt-lag.
  • GanttChart spreadsheet: Ctrl+X (Cmd+X) in Safari copied the selected cells but did not clear them. WebKit runs the copy event of document.execCommand('copy') from a cell without a text selection yet returns false, and the chart cleared only on true. It now also clears when its own copy handler wrote the selection during that call.
  • GanttChart: Ctrl+wheel and Meta+wheel zoom (wheelZoom) no longer drifts away from the pointer during a trackpad pinch in Safari. WebKit keeps whole-pixel scroll positions, and each of the many small wheel events started from the rounded position. While the scroller still reports the position the last wheel zoom set, at the same zoom, the next event starts from the requested (fractional) position; where scroll positions keep the fraction, nothing changes.
  • EventCalendar: the server-rendered week title no longer causes a hydration mismatch where the browser's ICU formats the range with another pattern than Node.js (Firefox, ja: "2026年11月9日~15日" against "2026/11/09~2026/11/15"). The title element carries Vue's data-allow-mismatch="text", so hydration takes the browser's text, as it already displayed, without logging a mismatch.