GNOME Bugzilla – Bug 129148
Make it possible to move tasks with the mouse
Last modified: 2021-06-09 20:27:05 UTC
Usability improvements to the gantt chart, move gantt bars with the mouse.
This would be a nice task for someone that want to get familiar with the planner source :) Take a look at src/planner-task-tree.c and the code that handles the popup menu there (search for popup_factory and task_tree_popup_*). Move these to a separate file and call them from planner-task-tree.c and planner-gantt-row.c, tada, done :)
Doh, that text was for another bug. This bug would be pretty easy to fix too though :)
Could you clarify this a little bit? There are two directions in which tasks could be moved: horizontally and vertically. Vertical movement could help in quickly reordering tasks, while horizontal movement could set a task's start date if it exists. But what if the task doesn't have a must-start-on constraint but rather an ASAP constraint? Then horizontal movement wouldn't make much sense, would it? Please tell me what you had in mind.
The plan is to actually set a constraint when the task is moved horizontally. I'm not sure how to do this in an obvious way, as to not confuse the user though.
Could the "Milestone" and "Fixed duration" (maybe other stuff) state be exposed on the right-click menu for a given bar? That way you can right-click, say: "I want this to be an absolute target" then start moving it horizontally. If the user moves more than X pixels left or right, start changing the dates. With respect to mouse-based reordering, I think leaving vertical reposititioning to the left-hand list is almost as intuitive, and you could also add indent, un-indent there (and only there) too.
Milestone and other properties are totally unrelated to this bug really (and I don't think putting more items in the context menu is something we should do too quickly, it will fill up fast).
A visual cue to whether the timing of a task is driven by a constraint or by dependency might be appropriate. For example, when a task is constrained to start after a given date, but by a dependency to start at a later date, the constraint is not represented on the Gannt chart: only the dependency-scheduled start date is represented as the left hand edge of the box. If some visual cue were given to constrained start and end times (for example, representing the constrained time as a vertical bar on the gannt chart, with a faint dotted horizontal line running between it and the task's box, this would give more information to the user when attempting to manually schedule things, and would also give a visual object (the vertical bar at the 'no earlier than' date) to manipulate by dragging. Where no constraint is yet set, cricking and dragging the leftmost edge of the task's box might be an appropriate action to take to initially set such a constraint.
*** Bug 340388 has been marked as a duplicate of this bug. ***
*** Bug 318477 has been marked as a duplicate of this bug. ***
*** Bug 528277 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/26.