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)
Sat, Apr 20, 3:50 AM
Unknown Object (File)
Thu, Apr 4, 10:10 PM
Unknown Object (File)
Thu, Apr 4, 10:10 PM
Unknown Object (File)
Thu, Apr 4, 10:10 PM
Unknown Object (File)
Thu, Apr 4, 10:10 PM
Unknown Object (File)
Thu, Apr 4, 10:09 PM
Unknown Object (File)
Thu, Apr 4, 10:02 PM
Unknown Object (File)
Feb 26 2024, 4:27 PM
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
No Lint Coverage
Unit
No Test Coverage

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

can you make those read-only?

81

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

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