Page MenuHomePhabricator

[web] introduce community header actions
ClosedPublic

Authored by ginsu on Dec 29 2023, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 5:35 AM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 27 2024, 8:20 AM
Unknown Object (File)
Oct 27 2024, 8:17 AM
Unknown Object (File)
Oct 17 2024, 11:48 PM
Unknown Object (File)
Oct 15 2024, 11:00 PM
Subscribers

Details

Summary

This component houses the invite link button and the community settings button, two possible community action buttons that can be rendered, and all the related logic for that. If a community does not have an active invite link then the invite link button should not be rendered.

The invite link button should push the ViewInviteLinkModal and the community settings button will navigate the user to the community settings screen (will be done in a subsequent diff)

Linear task: https://linear.app/comm/issue/ENG-5933/top-bar

Depends on D10497

Test Plan

Please see the screenshots + demo video below

When the community has an active invite link

When the community does not have an active invite link

Screenshot 2023-12-29 at 3.27.25 PM.png (1×3 px, 868 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, kamil, rohan.
ginsu added inline comments.
web/community-header/community-header-actions.react.js
36 ↗(On Diff #35108)

This will be worked on in January

Maybe I'm missing something, but it looks like the message list is missing in the screenshots provided. Guessing this was just for debugging layout or something?

web/community-header/community-header-actions.react.js
53–62 ↗(On Diff #35108)

Wouldn't hurt to memoize this

This revision is now accepted and ready to land.Dec 30 2023, 2:41 AM

address comments + rebase before landing

Maybe I'm missing something, but it looks like the message list is missing in the screenshots provided. Guessing this was just for debugging layout or something?

Yea I was dealing with some layout issues earlier, and the message list was outside the scope of this diff but here's a better screenshot:

Screenshot 2024-01-02 at 5.19.18 PM.png (1×3 px, 936 KB)

This revision was landed with ongoing or failed builds.Jan 2 2024, 2:28 PM
This revision was automatically updated to reflect the committed changes.