Content
View differences
Updated by Marc Alcobé over 3 years ago
**As** an Admin of an OpenProject instance
**I want to** manually configure non-working days that affect all users, in all projects in the instance
**so that** work packages can be planned with more precision, with dates that correspond to actual working days
## ### **Acceptance criteria:**
Adding There are two ways of adding non-working would be possible through days depending on the administration setting calendar view in the "Working days" with a new section created bellow the work week. This section will contain: settings screen:
* Short title **Monthly view:** user can click on a single day or click and description (see the visuals for the text)
* A header drag on multiple days to add one of multiple non-working days of a specific month. Once the list mouse is released, a dialog with a text field appears to allow the current year and two buttons with arrows user to navigate between years _(need to be double check with dev team)_.
name the day/s.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32015/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32016/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32017/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32018/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32019/content"></div></figure>
* A yearly **Yearly view:** This is a list view of all the non-working days (excluding weekends) of a single year that is called from Fullcalendar.
* On hover of year. In this list a bin icon will be displayed in case, at the right to be able to eliminate non-working days _(need to be double check with dev team)_.
* At the bottom end of the list there is a persistent button (always visible and not scrollable) to include new non-working days. Once clicked:
* A modal date picker is opened. The design of this modal are specified on <mention class="mention" data-id="42358" data-type="work_package" data-text="#42358">#42358</mention>.
* The user will be able to days that opens a dialog with a name the non-working day text field and select a singe date picker (which allows single date or multiple date selection with two clicks for it.
* If the desired a date is a weekend range).
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32020/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32021/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32022/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32023/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32024/content"></div></figure>
###
### Other cases:
You can edit the user should use the switch to allow weekend days selection.
* At the end added non-working day/s by clicking on it on any of the screen there is the "Save" button that confirms all the selected options above. If the user perform any change, this action will trigger views. To dlete a confirmation modal:
* Use the current implemented modal updating the text (see the visuals). The user day/s, a delete icon is indicated that this action might take some time and it will be notified once the changes are applied.
* Once the user confirm the changes the API call will be performed and an already implemented progress system will be used to notify the user once all the changes are applied _(dev team needs to confirm this is easy to implement)_.
* always displayed on hover.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32026/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32025/content"></div></figure>
In the case of the admin creating a day on top of a day that has already been added, the last addition will always override the previous.
* The text on the top information box is also updated to include the non-working days (see visuals for the text).
## Note
Texts in In the modal and information boxes might change after review.
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39534/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39536/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39537/content">
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39538/content">
## Figma link:
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=2435%3A68835
## Out case of Scope
* Monthly view: user can click on a single day or click and drag on breaking a multiple days to add one of multiple non-working days of a day selection, this will only affect the specific month. Once the mouse is released, a dialog with a text field appears to allow the user to name the day/s.
* Add public calendar: import a calendar from a public list of holidays depending on the location of the instance.
* Add more than a single holiday: add more than day (days are removed one day in a single creation step. by one).
### Figma link:
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/?node-id=0%3A1
**I want to** manually configure non-working days that affect all users, in all projects in the instance
**so that** work packages can be planned with more precision, with dates that correspond to actual working days
##
Adding
* Short title
* A header
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32015/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32016/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32017/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32018/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32019/content"></div></figure>
* On hover of
* At the bottom
* A modal date picker is opened. The design of this modal are specified on <mention class="mention" data-id="42358" data-type="work_package" data-text="#42358">#42358</mention>.
* The user will be able to
* If the desired
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32020/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32021/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32022/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32023/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32024/content"></div></figure>
###
### Other cases:
You can edit
* At the end
* Use the current implemented modal updating the text (see the visuals). The user
* Once the user confirm the changes the API call will be performed and an already implemented progress system will be used to notify the user once all the changes are applied _(dev team needs to confirm this is easy to implement)_.
*
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32026/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32025/content"></div></figure>
* The text on the top information box is also updated to include the non-working days (see visuals for the text).
## Note
Texts in
## Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39534/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39536/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39537/content">
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/39538/content">
## Figma link:
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=2435%3A68835
## Out
* Monthly view: user can click on a single day or click and drag on
* Add public calendar: import a calendar from a public list of holidays depending on the location of the instance.
* Add more than a single holiday: add more than
### Figma link:
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/?node-id=0%3A1