Skip to content

Conversation

@bobalive
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 15:32
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures milestones receive consistent colors by resetting the color palette to its initial state before milestone creation. The change addresses an issue where the color palette's internal state was being consumed by task creation, causing milestones to receive different colors depending on the number of tasks.

Key changes:

  • Reordered createMilestones call to occur after createTasks
  • Added colorPalette.reset() call before creating milestones to ensure consistent color assignment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const tasks: Task[] = this.createTasks({ dataView, taskTypes: legendTypes, formatters, taskColor, isEndDateFilled, hasHighlights: this.hasHighlights, sortingOptions });

// resetting color palette to initial state
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error in comment: "palete" should be "palette".

Copilot uses AI. Check for mistakes.
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.

2 participants