bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
55 stars 6 forks source link

Highlight cells changed indirectly after record change #6625

Open bmblb opened 1 year ago

bmblb commented 1 year ago

In Gantt, when you modify one task its dependent tasks may also change (move further in time, change duration or percent complete). We need a feature which would temporarily (or until next project recalculation, could be configurable) highlight background for cells corresponding to the changed fields.

We could listen to update event which is triggered after dataReady. Or we can grab changed records from the same dataReady events. Only problem is that we need to highlight only fields modified by the last action.

isglass commented 1 year ago

Listening to taskStore's update event + checking if (project.isWritingData) should catch indirect changes

bmblb commented 1 year ago

@emilschutte you implemented something similar for versions feature, do you have any suggestions?

emilschutte commented 1 year ago

@bmblb the versions feature builds around the STM transactions and it listens directly to those. You could definitely extract the modified fields that way, though I'm not sure whether there's a better way for this use case.

I don't fully understand the problem about "only last action." Would just extracting fields from the latest STM transaction (or some change event) not work? That would include all fields from the most recent user action and all follow-on effects (I think?).