Page MenuHomePhabricator

[web] Split ThreadTopBar into two components
ClosedPublic

Authored by inka on Feb 16 2023, 6:34 AM.
Tags
None
Referenced Files
F3537726: D6745.id23680.diff
Wed, Dec 25, 10:11 PM
F3537725: D6745.id22650.diff
Wed, Dec 25, 10:11 PM
F3537723: D6745.id22649.diff
Wed, Dec 25, 10:11 PM
F3537722: D6745.id22857.diff
Wed, Dec 25, 10:11 PM
F3537647: D6745.id.diff
Wed, Dec 25, 10:10 PM
F3537555: D6745.diff
Wed, Dec 25, 9:59 PM
Unknown Object (File)
Fri, Dec 20, 2:05 AM
Unknown Object (File)
Fri, Dec 20, 1:06 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
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