Content
View differences
Updated by Marc Alcobé over 4 years ago
**As** an Admin a _\[enter role of an OpenProject instance user\]_
**I want to** add all the public holidays of my region easily _\[enter objective\]_
**so that** any planning of tasks around the specific dates are clear and have a proper estimation. _\[enter desired result\]_
## **Acceptance criteria**
The button to add calendars will be always situated on top of the calendar view on the left side. There is two ways to add calendars in the "Working days" settings:
* **Public holidays from your region:** If your instance is based and created on a country/region that OP has public holidays calendars from, a list with all the calendars available will be displayed. Once one calendar is selected the view will be always switched to the full year so you can see all the days added for this year and the selected region it will be displayed in the list as selected.
Only one public calendar can be selected at the same time, so selecting another public calendar will always erease all days from the previous one and load the new ones.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27780/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/27781/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/27782/content"></div></figure>
* **Importing local calendar:** Besides the list of public holidays, there will always be a last option that allows you to import a calendar file from your computer. This allows you to upload ics. files. Once a file has been successfully imported a toast message will be displayed on the top and the view will be always switched to the year view to see all the imported days.
The only way to remove the days from an imported local calendar is removing the days one by one.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27787/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/27784/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/27786/content"></div></figure>
###
Edge cases
* **Public holidays from your region not available:** In the case we don't have any holidays for the region where your instance is based, the button will be directly called "Import calendar" instead of "Add calendar" and will open the file browser from your computer when you click on it.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27788/content"></div></figure>
* **Multiple events for the same day:** In the case of switching or importing a calendar that contains dates that are already pointed as non-working days the last one loaded will always override the previous calendar event. _\[enter acceptance criteria\]_
* **Removing a day from a public calendar:** this will only affect the day that has been deleted not the complete public calendar.
### Out of scope
Subscribe to external calendars, e.g. Google calendars (that are not included in our libraries of ics or uploaded manually).
### To be defined
From where do we get the public calendars and from which regions. Potentially the regions that speak the supported OP languages.
### Figma link
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=1091%3A9491 _..._
**I want to** add all the public holidays of my region easily
**so that** any planning of tasks around the specific dates are clear and have a proper estimation.
## **Acceptance criteria**
The button to add calendars will be always situated on top of the calendar view on the left side. There is two ways to add calendars in the "Working days" settings:
* **Public holidays from your region:** If your instance is based and created on a country/region that OP has public holidays calendars from, a list with all the calendars available will be displayed. Once one calendar is selected the view will be always switched to the full year so you can see all the days added for this year and the selected region it will be displayed in the list as selected.
Only one public calendar can be selected at the same time, so selecting another public calendar will always erease all days from the previous one and load the new ones.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27780/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/27781/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/27782/content"></div></figure>
* **Importing local calendar:** Besides the list of public holidays, there will always be a last option that allows you to import a calendar file from your computer. This allows you to upload ics. files. Once a file has been successfully imported a toast message will be displayed on the top and the view will be always switched to the year view to see all the imported days.
The only way to remove the days from an imported local calendar is removing the days one by one.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27787/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/27784/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/27786/content"></div></figure>
###
Edge cases
* **Public holidays from your region not available:** In the case we don't have any holidays for the region where your instance is based, the button will be directly called "Import calendar" instead of "Add calendar" and will open the file browser from your computer when you click on it.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27788/content"></div></figure>
* **Multiple events for the same day:** In the case of switching or importing a calendar that contains dates that are already pointed as non-working days the last one loaded will always override the previous calendar event.
* **Removing a day from a public calendar:** this will only affect the day that has been deleted not the complete public calendar.
### Out of scope
Subscribe to external calendars, e.g. Google calendars (that are not included in our libraries of ics or uploaded manually).
### To be defined
From where do we get the public calendars and from which regions. Potentially the regions that speak the supported OP languages.
### Figma link
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=1091%3A9491