Page MenuHomePhabricator

[web] Make pressing a drawer item in calendar tab change available filters
ClosedPublic

Authored by inka on Feb 7 2023, 6:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 5:48 PM
Unknown Object (File)
Tue, Oct 29, 11:03 AM
Unknown Object (File)
Mon, Oct 28, 6:39 PM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-2793/make-calendar-filters-change-on-drawer-action
We want pressing on a community drawer item, in the calendar tab, to result in only events from chats from that community being displayed, and additionally only chats from this community being present in
the filter panel.
CalendarDrawerItemHandler is a component, that provides a handler object, that has the onClick function for the drawer items for the calendar tab (D6287). This diff changes what this 'onClick' function does, to satisfy the requirement from above.

Test Plan

Run web app, checked that pressing on an item in the community drawer results in only events from chats from that community being displayed, and only chats from this community being present
in the filter panel.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Feb 7 2023, 6:52 AM

Changes due to: chainng what is kept in the redux state - keep only the community id

This revision is now accepted and ready to land.Feb 8 2023, 8:45 AM

Move selector to web/selectors/calendar-selectors.js

Rebase, fix rebasing mistake

Trying to fix my local copy

Trying to fix my local copy