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)
Wed, Dec 4, 4:43 AM
Unknown Object (File)
Sat, Nov 30, 6:15 PM
Unknown Object (File)
Wed, Nov 27, 9:10 PM
Unknown Object (File)
Sun, Nov 24, 6:23 AM
Unknown Object (File)
Nov 19 2024, 12:52 AM
Unknown Object (File)
Nov 19 2024, 12:52 AM
Unknown Object (File)
Nov 19 2024, 12:52 AM
Unknown Object (File)
Nov 19 2024, 12:52 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
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