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)
Thu, Apr 11, 3:40 AM
Unknown Object (File)
Fri, Apr 5, 11:34 AM
Unknown Object (File)
Wed, Apr 3, 4:04 PM
Unknown Object (File)
Wed, Apr 3, 2:15 PM
Unknown Object (File)
Wed, Apr 3, 2:15 PM
Unknown Object (File)
Wed, Apr 3, 2:15 PM
Unknown Object (File)
Wed, Apr 3, 2:15 PM
Unknown Object (File)
Wed, Apr 3, 2:15 PM
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
No Lint Coverage
Unit
No Test Coverage

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