Content
View differences
Updated by Marc Alcobé about 4 years ago
**As** an Admin of an OpenProject instance
**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:** For instances are based on/created on a country or region for which OP has in-built public holidays calendars, a list with regional calendars 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. year.
* 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 erase all days added by the previous one and load the new ones.
* Non-working days that were manually added by the user remain unaffected.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32027/content"></div></figure> 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/32028/content"></div></figure> 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/32029/content"></div></figure> src="/api/v3/attachments/27782/content"></div></figure>
* **Importing a 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. files.
* Once a file has been successfully imported, a success 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 these manually-imported days calendar files is to remove them 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/32030/content"></div></figure> 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/32031/content"></div></figure> 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/32032/content"></div></figure> src="/api/v3/attachments/27786/content"></div></figure>
###
### Edge cases
* **Public holidays from your region not available:** In the case that OP does not have any in-built list of holidays for a selected region, 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/32033/content"></div></figure> 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 ones loaded will always override the previous ones.
* **Removing a day from a public calendar:** this will only affect the day that has been deleted in the local instance, not the complete public calendar. Dates are deleted _(Question for <mention class="mention" data-id="72512" data-type="user" data-text="@Marc Alcobé">@Marc Alcobé</mention>: Does this mean that if a user selects a region and that imports events, and then deletes one by one of them, and not by calendar. then selects a different region and then again the original region, that initially deleted day shows up again?)_
### 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 we get the public calendars and for 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:** For instances are based on/created on a country or region for which OP has in-built public holidays calendars, a list with regional calendars 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.
* 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 erase all days added by the previous one and load the new ones.
* Non-working days that were manually added by the user remain unaffected.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/32027/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/32028/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/32029/content"></div></figure>
* **Importing a 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 success 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 these manually-imported days calendar files is to remove them 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/32030/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/32031/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/32032/content"></div></figure>
###
### Edge cases
* **Public holidays from your region not available:** In the case that OP does not have any in-built list of holidays for a selected region, 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/32033/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 ones loaded will always override the previous ones.
* **Removing a day from a public calendar:** this will only affect the day that has been deleted in the local instance, not the complete public calendar. Dates are deleted
### 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 we get the public calendars and for 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