Page MenuHomePhabricator

[web] Introduce `SubchannelsModal`
ClosedPublic

Authored by jacek on Apr 1 2022, 7:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 23, 8:15 AM
Unknown Object (File)
Mon, Sep 23, 8:15 AM
Unknown Object (File)
Mon, Sep 23, 8:15 AM
Unknown Object (File)
Mon, Sep 23, 8:15 AM
Unknown Object (File)
Mon, Sep 23, 8:14 AM
Unknown Object (File)
Thu, Sep 19, 2:41 AM
Unknown Object (File)
Sat, Sep 14, 9:56 AM
Unknown Object (File)
Sat, Sep 14, 9:56 AM

Details

Summary

Introduce modal with subchannels list.
Currently, it doesn't display message previews from threads that user is not member of - the next diff will introduce fetching proper data from server

Screenshot_Google Chrome_2022-04-01_164240@2x.png (978×800 px, 89 KB)

FIgma:

Screenshot_Figma_2022-04-01_164109.png (645×451 px, 35 KB)

https://www.figma.com/file/a1nkbWgbgjRlrOY9LVurTz/Comm-%2F-Desktop-app?node-id=633%3A58861

Test Plan

Component will be accessible from thread menu after the diff introducing "Subchannels" action into thread menu.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jacek edited the test plan for this revision. (Show Details)
jacek added reviewers: benschac, atul.
web/modals/threads/subchannels/subchannels-modal.react.js
47 ↗(On Diff #10960)

I think it would be good to pull this out into its own React.useMemo, so we don't have to redo the search if only allSubchannelsChatList changes

tomek requested changes to this revision.Apr 4 2022, 3:02 AM

After D3494 is landed you could use SearchModal here

web/modals/threads/subchannels/subchannels-modal.css
4–5 ↗(On Diff #10960)

Why do we need row gap when displaying a column?

web/modals/threads/subchannels/subchannels-modal.react.js
36 ↗(On Diff #10960)

subchannelsIDs should be a Set so that we could filter here effectively

This revision now requires changes to proceed.Apr 4 2022, 3:02 AM

use SearchModal & improvements after review

tomek added inline comments.
web/modals/threads/subchannels/subchannels-modal.react.js
23 ↗(On Diff #10996)

We usually use only a single plural form e.g. subchannelIDs

This revision is now accepted and ready to land.Apr 5 2022, 7:15 AM

There are some eslint issues reported by CI

I wonder why the ESLint issues weren't caught during git commit via lint-staged

There are some eslint issues reported by CI

It looks like the logs say Exited with status -1 (agent lost) which indicates a network issue. Restarted the Flow/ESLint/Jest job and there don't appear to be ESLint issues?

rebase & use single plural form

This revision was automatically updated to reflect the committed changes.