Page MenuHomePhabricator

[web] Split ThreadTopBar into two components
ClosedPublic

Authored by inka on Feb 16 2023, 6:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 5:22 AM
Unknown Object (File)
Thu, Nov 21, 5:22 AM
Unknown Object (File)
Tue, Nov 19, 10:01 AM
Unknown Object (File)
Tue, Nov 19, 10:01 AM
Unknown Object (File)
Tue, Nov 19, 10:01 AM
Unknown Object (File)
Tue, Nov 19, 10:01 AM
Unknown Object (File)
Tue, Nov 19, 9:59 AM
Unknown Object (File)
Tue, Nov 19, 9:36 AM
Subscribers

Details

Summary

Issue: https://linear.app/comm/issue/ENG-2740/add-navigation-state-info-to-the-top-bar
Navigation state info will be displayed in the Topbar component. It used to be in ChatMessageList container. Now, in ChatListContainer we will only display the name of the chat.
I split ThreadTopBar component into two: the one that will be displayed in the Tobbar, that includes the ThreadAncestors, but doesn't have the ThreadMenu, and a complementary component, that is used in the
ChatMessageListContainer. I will change the NavStateInfoBar further, accordinng to the designs, in the following diffs.
Some files were additionally moved to keep the code correctly divided into folders.

image.png (1×1 px, 139 KB)

Test Plan

Run web app, checked that the header of ChatMessageListContainer displays only chat's: name, colour square and menu button. I also exchanged ThreadTopBar in ChatMessageListContainer for NavStateInfoBar and check that is displays correctly:

image.png (1×1 px, 144 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Feb 16 2023, 6:58 AM
michal added inline comments.
web/navigation-panels/nav-state-info-bar.react.js
25–34

We don't use threadMenu here so could we simplify the topBarContainer and topBarThreadInfo divs and css classes into one?

This revision is now accepted and ready to land.Mar 2 2023, 2:29 AM
web/navigation-panels/nav-state-info-bar.react.js
25–34

Sure, but I'll fix this in D6841 to avoid unnecessary rebase conflicts.

web/navigation-panels/nav-state-info-bar.react.js
25–34

Or actually in D6845, which is a diff styling the top bar, so it makes sense