# Feature OP-11143 - Improve how the Gantt view deals with non-working days

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-11143

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a project member  
**I want to** to be able understand why I am not able to move and resize certainly work packages in Gantt view because of certain constraints (like non-working days)  
**so that** I can have the confidence to make changes without having to figure out what went wrong

### **Acceptance criteria (ideas, work in progress)**

When dragging or resizing work packages in Gantt view, provide additional feedback:

*   When dragging a work package that _does not_ have include NWDs enabled:
    *   On hover over a start date over a non-working day, highlight that non-working day in red (like in Team Planner when dragging into an invalid assignee row), and, if the user drops the work package there anyway, give them the option to either:
        *   cancel the move or
        *   use that date by enabling NWDs for that work packagae
    *   if the newly dragged-to position means the work package spans non-working days (for any date that is not the start date):
        *   give a more accurate preview by expanding/retracting the length of the work package by spanning _around_ these NWDs
*   When dragging a work package that _does_ include NWDs,
    *   Let the user drag freely; without any red zones and a constant work package width

Additionaly, improve the Gantt view itself by:

*   Making non-working days (weekends for now) visible also when zoomed out (with dark grey lines?)
*   Limiting date manipulations on work packages (dragging, extending and contracting) beyond a certain zoom level, where precise manipulations and date selections are no longer possible

### Original feedback

By <mention class="mention" data-id="87" data-type="user" data-text="@Jens Ulferts">@Jens Ulferts</mention>:

> I tried moving work packages by dragging them in the gantt chart and found it hard to understand why a work package cannot be dragged to all the places that I want it to drag to. The reason for that are the non working days, I get that after some thinking. But as a user, you now have to check both ends of the bar to see if either the start or the end is on a non working day. The highlight is quite subtle and when I fail to notice, the work package will simply jump back without any message telling me why.
> 
> And what might still work when having zoomed in, becomes next to impossible to do when having zoomed out. Because then the non working days are no longer highlighted, the gray background vanishes, and now the only indication of an invalid date (again because of start or finish date being on a non working day) before dropping is the &quot;forbidden&quot; mouse icon. If you fail to notice it, the bar will simply jump back gain.
> 
> Admittedly, I was just testing the scheduling so my use case might have been off and people actually using the tool will be more careful when moving and thus might notice. But it took me a while to figure out why it was jumping back and I only got it because I know of non working days.
> 
> Ideas of how to improve this:
> 
> *   Display the dates in red or some other color indicating that the drop is invalid. We are already displaying the dates so that would not add too much.
> *   Displaying a message while dragging whenever the drop target is invalid. We could also display that message where the dates are normally.
> *   Displaying a message after dropping whenever the drop target is invalid.
