Skip to content

Conversation

@jasonnator
Copy link

Implemented the ability to collapse and expand dependent tasks in the Gantt chart, making it easier to manage complex project hierarchies. Implements #522

Features:

  • Tasks with dependents show a collapse/expand button (−/+) on the left
  • Clicking the button toggles visibility of all dependent tasks recursively
  • Grid automatically adjusts height when tasks are collapsed/expanded
  • Bars automatically expand to accommodate button and text
  • Buttons move with bars during drag operations

Technical details:

  • Added collapsed_tasks Set to track collapsed state
  • Implemented recursive dependency tracking
  • Dynamic task indexing for proper layout when tasks are hidden
  • Smart bar width calculation to prevent text overlap
  • Configurable button spacing (button_space parameter)

Includes demo page (collapsible-tasks-demo.html) and documentation.

Implemented the ability to collapse and expand dependent tasks in the Gantt chart,
making it easier to manage complex project hierarchies.

Features:
- Tasks with dependents show a collapse/expand button (−/+) on the left
- Clicking the button toggles visibility of all dependent tasks recursively
- Grid automatically adjusts height when tasks are collapsed/expanded
- Bars automatically expand to accommodate button and text
- Buttons move with bars during drag operations

Technical details:
- Added collapsed_tasks Set to track collapsed state
- Implemented recursive dependency tracking
- Dynamic task indexing for proper layout when tasks are hidden
- Smart bar width calculation to prevent text overlap
- Configurable button spacing (button_space parameter)

Includes demo page (collapsible-tasks-demo.html) and documentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant