Page MenuHomePhabricator

[web] Add to redux state picked community in the Chat tab
ClosedPublic

Authored by inka on Mar 7 2023, 2:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 5:59 PM
Unknown Object (File)
Sat, Oct 19, 10:24 AM
Unknown Object (File)
Fri, Oct 18, 10:11 AM
Unknown Object (File)
Thu, Oct 17, 6:36 AM
Unknown Object (File)
Thu, Oct 17, 6:36 AM
Unknown Object (File)
Thu, Oct 17, 6:36 AM
Unknown Object (File)
Thu, Oct 17, 6:36 AM
Unknown Object (File)
Thu, Oct 17, 6:33 AM
Subscribers

Details

Summary

We will need the information about the selected community in the Chat drawer to be accesable from different parts of the code. For this reason we will keep it in the redux state, just like we
already keep the selected community for the claendar tab in redux.
isse: https://linear.app/comm/issue/ENG-3176/make-pressing-a-drawer-item-in-chat-tab-filter-available-chats

Test Plan

Rub web app, checked that selecting a community in calendar still works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Mar 7 2023, 3:14 AM
kamil added inline comments.
web/redux/redux-setup.js
63–66 ↗(On Diff #23481)

can you make those read-only?

81 ↗(On Diff #23481)

feeling confused about this naming, maybe simply pickedCommunities: PickedCommunities, will be better? But leaving this up to you

This revision is now accepted and ready to land.Mar 8 2023, 2:39 AM
web/redux/redux-setup.js
81 ↗(On Diff #23481)

how about communityPickerStore?

Add to initialReduxStateValidator communityPickerStore

@michal can you please tell me if this is all I need to do regarding your validation changes, and if this is a correct type?

This revision now requires review to proceed.May 22 2023, 12:24 PM
This revision is now accepted and ready to land.May 23 2023, 12:33 AM