Skip to content

Conversation

stephenjmaher
Copy link

I came across #448 and thought the feature would be of value. I have rebased the changes from @iaminamcom to bring it up to date with the current master.

@safwansamsudeen
Copy link
Collaborator

Thanks! Can you please add screenshots?

@stephenjmaher
Copy link
Author

Do you want screenshots to included in this PR? Or are they for the README?

@stephenjmaher
Copy link
Author

Here are what the changes will look like.

image

image

@stonesoft-tech
Copy link

When will this be merged into the main branch?

@stephenjmaher
Copy link
Author

I would like to merge these changes. I am just waiting on approval from someone with write access.

@stonesoft-tech
Copy link

Can this be approved so it can be merged?
Please!!!

@stonesoft-tech
Copy link

There is an issue with this in Safari...

Gantt won't load when grouping:true

The following error is caught from line 24 of frappe-gantt.umd.js:
s.union is not a function. (In 's.union(new Set(this.tasks.map(a=>a.group)))', 's.union' is undef

Works fine in Chrome and Firefox

@stephenjmaher
Copy link
Author

@stonesoft-tech The use of union has been removed. Could you please check this on Safari now?

@stonesoft-tech
Copy link

@stonesoft-tech The use of union has been removed. Could you please check this on Safari now?

Sure thing. Will test later tonight. Thanks!

@stonesoft-tech
Copy link

@stonesoft-tech The use of union has been removed. Could you please check this on Safari now?

This is working on Safari. Thanks.

It looks like the Scroll to Today is not functioning though in Safari. It scrolls to the beginning of the chart... No errors in the console.

@stephenjmaher
Copy link
Author

Do you know if the error with "Scoll to Today" is due to the changes in the MR? I don't know what changes could have been introduced to cause this to stop working.

@stonesoft-tech
Copy link

stonesoft-tech commented Jul 8, 2025

Do you know if the error with "Scoll to Today" is due to the changes in the MR? I don't know what changes could have been introduced to cause this to stop working.

No because it wouldn't load at all before the MR. I will test on the original build (without grouping) and create a new issue.

@calebeaires
Copy link

Hey team, will this PR be merged? 😄

@safwansamsudeen
Copy link
Collaborator

Hey @calebeaires - I'm not actively working on Gantt right now - when I get back to it (probably next month), I'll review and merge.

@safwansamsudeen
Copy link
Collaborator

@stephenjmaher this PR seems to be broken in a couple places (for example, you can't drag or edit anything but the first bar in a group) :(.

@stephenjmaher
Copy link
Author

Sorry @safwansamsudeen, It was an error in the example html. The tasks in the same group had the same ID. The example has been updated now.

Were there any other errors that you found?

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.

6 participants