Page MenuHomePhabricator

[web] Introduce "Create new chat" button
ClosedPublic

Authored by jacek on Jul 7 2022, 5:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 5, 11:06 PM
Unknown Object (File)
Sun, Jan 5, 11:06 PM
Unknown Object (File)
Sun, Jan 5, 6:12 PM
Unknown Object (File)
Sun, Jan 5, 6:12 PM
Unknown Object (File)
Sun, Jan 5, 6:12 PM
Unknown Object (File)
Sun, Jan 5, 6:12 PM
Unknown Object (File)
Sun, Jan 5, 6:11 PM
Unknown Object (File)
Sun, Jan 5, 6:05 PM

Details

Summary

Primary button allowing to create new chats on the bottom of chat list.
Disabled if already in chat creation mode.

Screenshot_Google Chrome_2022-07-21_144948.png (397×821 px, 37 KB)

Test Plan

Click the button, new chat creation process (with empty user list) should be started.

Diff Detail

Repository
rCOMM Comm
Branch
jacek/tmp
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Looks good!

web/chat/chat-thread-list.react.js
59 ↗(On Diff #14395)

This (and the title of this diff) should probably be renamed, as per D4539.

This revision is now accepted and ready to land.Jul 14 2022, 9:55 AM
web/chat/chat-thread-list.react.js
59 ↗(On Diff #14395)

Great catch!!

tomek added inline comments.
web/chat/chat-thread-list.react.js
33 ↗(On Diff #14395)

It's better to keep as much logic in useSelector as possible

rename thread to chat & address Tomek's comment

jacek retitled this revision from [web] Introduce "Create new thread" button to [web] Introduce "Create new chat" button.Jul 21 2022, 5:49 AM
jacek edited the summary of this revision. (Show Details)
jacek edited the test plan for this revision. (Show Details)
jacek edited the summary of this revision. (Show Details)