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)
Tue, Feb 27, 7:03 AM
Unknown Object (File)
Mon, Feb 19, 6:58 AM
Unknown Object (File)
Mon, Feb 19, 6:55 AM
Unknown Object (File)
Mon, Feb 19, 5:05 AM
Unknown Object (File)
Mon, Feb 19, 5:05 AM
Unknown Object (File)
Mon, Feb 19, 5:05 AM
Unknown Object (File)
Mon, Feb 19, 4:32 AM
Unknown Object (File)
Mon, Feb 19, 4:32 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