# Feature OP-11662 - Use WP-Single-Card in WP-Calendar

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-11662

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| 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 | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

Similar to the team planner, it would be great if the calendar would contain the wp-cards instead of the default full calendar renderings.

I came up with a relatively quick PoC:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/42777/content">

There are a few challenges to be figured out where feed back from the @OP Core Team would be welcome:

  - Full Calendar doesn't seem give away the information, which "row" of the event is rendered in the "eventContent" callback. Since we need one Angular template per row of the same event, the current activeTempalte lookup from the team planner is not working as it doesn't seem to be possible, to actually identify which row is being rendered in the "eventContent" callback. Consequentially, we need to instantiate the template every time in the "eventContent" callback. Even though that does sounds like the beginning of a problem, it didn't create one for me. From a technical point, that would only start creating any kind of impact, when the user starts to move WPs around in the calendar (the the eventContent callback is called as a redraw instead of the initial creation) and if that really presented a problem for a user at some point, reloading the page would set the "performance impact" back to zero.
  - Showing the start/due date only when the actual day is not in the current view is nothing that I would recommend for the month view (aside from Milestones). In the above example a disabled that feature and it makes it easier for me, to keep track of the task over multiple rows. Aside from that, I don't think it is possible with the current approach for only hide the due date in the last row for the same reasons described above. One could think about removing the dates if the entire tasks fit either on one page or in one row. But I also like it the simple way in the screenshot.
  - Currently I just took over the styling from the team planner module, although it doesn't fit perfectly. The team planner module hides the assignee, which makes total sense, but it would be great if that wasn't the case for the calendar. I personally am also not crazy about the decision to hide the type and style it into the header. The vast majority of the cards would have enough space on them to add the task type even into the same row.

Following a screenshot of a more busy table:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/42778/content">

The general first impression for me is, that it is difficult to differentiate the calendar rows. As a solution I'd recommend to make the row lines thicker and maybe print the dates also in bold like the week-days.

##### Last but not least:

Making that happen required to copy large amounts of code from the team planner module. Looking through the component, they already shared a decent amount of common code. Before this feature gets finalised, one should create an abstract component first and then extend from it in the team planner and the calendar module.

It would be greatly appreciated to receive some feedback about the work :)
