# Feature OP-9729 - Updates to the two-week view

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9729

## Planning

| Attribute | Value |
| --- | --- |
| Date | 2021-11-01 – 2022-02-27 |
| Priority | Medium |
| Target versions | 12.1.0 |
| Sprint | 12.1.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

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).
      - 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>
