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)
Fri, Apr 12, 2:34 AM
Unknown Object (File)
Fri, Apr 12, 2:34 AM
Unknown Object (File)
Fri, Apr 12, 2:34 AM
Unknown Object (File)
Fri, Apr 12, 2:34 AM
Unknown Object (File)
Fri, Apr 12, 2:33 AM
Unknown Object (File)
Fri, Apr 12, 2:27 AM
Unknown Object (File)
Wed, Mar 27, 12:47 AM
Unknown Object (File)
Mon, Mar 25, 2:09 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #22857)

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 ↗(On Diff #22857)

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

web/navigation-panels/nav-state-info-bar.react.js
25–34 ↗(On Diff #22857)

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