Content
View differences
Updated by Parimal Satyal over 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 If your instance is based on/created and created on a country or region for which country/region that OP has in-built public holidays calendars, calendars from, a list with regional all the calendars available will be displayed.
* Once one calendar is selected, selected the view will be always switched to the full year so you can see all the days added for this year.
* The 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 erase erease all days added by from 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/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 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.
* ics. files. Once a file has been successfully imported, 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 the days from an imported local calendar files is to remove them 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 that OP does not we don't have any in-built list of holidays for a selected region, the region where your instance is based, the button will be directly called "Import calendar" instead of "Add calendar", 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, days the last ones one loaded will always override the previous ones. calendar event.
* **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. _(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 of them, and 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 do we get the public calendars and for 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.
###
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
* Once one calendar is selected,
* The
*
* 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/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 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.
*
*
<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>
###
###
* **Public holidays from your region not available:** In the case that OP does not
<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,
* **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. _(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 of them, and 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
### Figma link
https://www.figma.com/file/SMzHAQWcY9k0PkTEKd5UQn/Duration-and-Non-Working-Days?node-id=1091%3A9491