Skip to content

Conversation

thet
Copy link
Member

@thet thet commented Mar 8, 2021

Commit was made due to no events shown in a calendar without filters
applied.
The real fix is to not include any filtering controls.
The code already supports showing all events when no filtering controls
are available.

Revert "pat-calendar: Do not apply filter, if filter is empty."

This reverts commit 2acb2c7.

…nexpected UX.

Commit was made due to no events shown in a calendar without filters
applied.
The real fix is to not include any filtering controls.
The code already supports showing all events when no filtering controls
are available.

This reverts commit 2acb2c7.
@thet thet force-pushed the thet-calfilterfix branch from cec3346 to e83cdaf Compare March 8, 2021 10:30
@cornae
Copy link
Member

cornae commented Mar 8, 2021 via email

@thet thet changed the title Revert, as this leads to unexpected UX. Revert "Do not apply filter, if filter is empty.", as this leads to unexpected UX. Mar 8, 2021
@thet
Copy link
Member Author

thet commented Mar 8, 2021

The absences app do not have any filters, but in the html layout a hidden checkbox is present. That did not match with any of the absences, so no absences were show in the calendar.

The problem was:

  • The commit which I'm reverting here - had the effect that if no checkboxes are checked, the filter is not applied and no events are shown.
  • There is a change necessary in ploneintranet.prototype as well as quaive.app.absences. It removes the hidden filter checkbox, so that the pattern doesn't apply any filters. The hidden filter would show all events with the css class "cal-cat-all", which our events do not have yet.

I'll finish the PRs and will ping you again!

@cornae
Copy link
Member

cornae commented Mar 8, 2021 via email

@thet thet merged commit ba6b1ac into master Mar 8, 2021
@thet thet deleted the thet-calfilterfix branch March 8, 2021 10:47
@thet
Copy link
Member Author

thet commented Mar 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants