Content
View differences
Updated by Oliver Günther over 4 years ago
This work package describes updates to the behaviour of the two-week view. (This assumes cards are not yet implemented and the work packages are still displayed as strips).
### Acceptance criteria
* The toggle reads "1-week" and "2-week" (please note the lack of the "s" in "2-week"; the term is used as an adjective here and therefore does not need to be pluralised)
* Clicking on the "2-week" option in the toggle in the toolbar extends the calendar to two-weeks.
* When switching from one-week displayed to two-weeks displayed in the team planner, the two visible weeks are **last week and this week.**
* **Note Oliver Günther**: A Fullcalendar bug is currently preventing us from doing this: https://github.com/fullcalendar/fullcalendar/issues/4678
* _\[precision added 24 feb\]_ In the two week view, clicking on the foward/back buttons will advance the calendar by _one_ week (so that it moves the week that was previously on the right side to the left side, and the week after on the right). right).
* This makes to get a two-week context in a fluid manner and makes it easier to drag work packages (which is one of the advantages over the one week view, which can only move in discreet increments).
* Since the notion of non-working days is not yet implemented, this will mean that the calendar will simply show 14 days _(eg. from Monday – Sunday of the week after, depending on which day the week starts in the selected region)._
* The day headings need to be shortened from "9 Monday" to "9 Mon" to save space.
* Ideally, the entire two weeks are visible without requiring a horizontal scroll (when Add Existing is closed, of course).
* We understand that this is complicated, so if the full two weeks aren't possible, we should aim for best effort to display as much as is practically possible pre-scroll (at least a few days from week 2, for example).
* This is important so that users are able to drag elements between the two weeks; if a scroll is required from the start, the user could achieve almost the same thing simply by clicking on the forward/back icons.
* We understand that this will be further complicated with the upcoming change from strips to cards, so the width of a day column will almost certainly need to be adjust after this.
### Out of scope
* The weekends will have a different background colour than other days, but this will be specified in a separate work package (since the upcoming cards will mean that the background of all days of the calendar need to be changed).
### Visual
_**The two-week view show as much as possible without requiring horizoantal scroll**_
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27252/content"></div></figure>
### Figma
Prototype link: https://www.figma.com/file/409d6qR685SzZLXez4TPl7/Team-Planner?node-id=1581%3A57123
### Acceptance criteria
* The toggle reads "1-week" and "2-week" (please note the lack of the "s" in "2-week"; the term is used as an adjective here and therefore does not need to be pluralised)
* Clicking on the "2-week" option in the toggle in the toolbar extends the calendar to two-weeks.
* When switching from one-week displayed to two-weeks displayed in the team planner, the two visible weeks are **last week and this week.**
* **Note Oliver Günther**: A Fullcalendar bug is currently preventing us from doing this: https://github.com/fullcalendar/fullcalendar/issues/4678
* _\[precision added 24 feb\]_ In the two week view, clicking on the foward/back buttons will advance the calendar by _one_ week (so that it moves the week that was previously on the right side to the left side, and the week after on the right).
* This makes to get a two-week context in a fluid manner and makes it easier to drag work packages (which is one of the advantages over the one week view, which can only move in discreet increments).
* Since the notion of non-working days is not yet implemented, this will mean that the calendar will simply show 14 days _(eg. from Monday – Sunday of the week after, depending on which day the week starts in the selected region)._
* The day headings need to be shortened from "9 Monday" to "9 Mon" to save space.
* Ideally, the entire two weeks are visible without requiring a horizontal scroll (when Add Existing is closed, of course).
* We understand that this is complicated, so if the full two weeks aren't possible, we should aim for best effort to display as much as is practically possible pre-scroll (at least a few days from week 2, for example).
* This is important so that users are able to drag elements between the two weeks; if a scroll is required from the start, the user could achieve almost the same thing simply by clicking on the forward/back icons.
* We understand that this will be further complicated with the upcoming change from strips to cards, so the width of a day column will almost certainly need to be adjust after this.
### Out of scope
* The weekends will have a different background colour than other days, but this will be specified in a separate work package (since the upcoming cards will mean that the background of all days of the calendar need to be changed).
### Visual
_**The two-week view show as much as possible without requiring horizoantal scroll**_
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27252/content"></div></figure>
### Figma
Prototype link: https://www.figma.com/file/409d6qR685SzZLXez4TPl7/Team-Planner?node-id=1581%3A57123