Repository navigation
Render the Gantt chart with @tasknotes/calendar's timeline - #16
Merged
Merged
Conversation
…line Replace the hand-built Gantt surface with the timeline view of the vendored @tasknotes/calendar 0.1.0-dev.0. Rows, grouping, bars, milestones, dependency arrows, drag/resize writes, link creation, scales, the today line and selection now come from the library; Planner keeps its ledger (rendered into the row labels), domain mapping and write handling. - gantt.ts: map tasks to timeline items (exclusive end = due + 1 day) and map drops/resizes/placements back to scheduled and inclusive due values. - Ctrl/Cmd+wheel zoom stays in the chart and keeps the pointer date anchored. - Theme the calendar through --tnc-theme-* tokens from Planner's palette.
… in the Gantt Update @tasknotes/calendar and drop Planner-side workarounds: - Links are made by dragging start/finish handles. The edge pair sets the relationship (FS/SS/FF/SF). canLink and onLinkDrag drive the refusal message while dragging. - Dependencies are passed with their type (timelineDependencies), so start-to-start and other non-FS links draw correctly and are no longer flagged as conflicts. - Unscheduled tasks can be dropped on group headings and the date header again. The calendar's hit areas replace Planner's own bounds check, and drops that miss report "Schedule unchanged". - The zoom scale passes dayWidth instead of copying the unit table. Ctrl/Cmd+wheel zoom anchors on the pointer through setOptions, and Today uses scrollToDate with smooth scrolling. The manual scroll math is removed. - Ledger portals mount through rowLabelDidMount/WillUnmount. The calendar now suppresses the click after a drag, so Planner's own ignore logic is removed. - Selection, today label and focusable scheduled/due resize grips come from the calendar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@tasknotes/calendar@0.1.0).@tasknotes/model@0.3.0-rc.17) packages.Verified locally:
pnpm install --frozen-lockfile,pnpm run verify(format, typecheck, lint, 199 unit tests, production build), Planner e2e 13/13 on desktop and phone.