Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add channel avatars [WPB-15756] #18855

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

e-maad
Copy link
Contributor

@e-maad e-maad commented Mar 12, 2025

StoryWPB-15756 [Web] Add channel avatars and accent colors to Web UI library

Description

Added channel avatars

Screenshots/Screencast (for UI changes)

Screenshot 2025-03-12 at 21 10 37
Screenshot 2025-03-12 at 21 10 47

Checklist

  • mentions the JIRA issue in the PR name (Ex. [WPB-XXXX])
  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

@@ -169,7 +172,17 @@ export const ConversationListCell = ({
'conversation-list-cell-left-opaque': isSelfUserRemoved || users.length === 0,
})}
>
{isGroup && <GroupAvatar conversationID={conversation.id} className="conversation-list-cell-avatar-arrow" />}
{/* show channel avatar for testing purpose */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this comment still be there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I am merging to feature branch, this check is there only for testing.

Comment on lines +176 to +177
{isGroup &&
(conversationName && conversationName?.toLowerCase().includes('channel') ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion: move this to a variable, e.g. shouldShowChannelAvatar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be removed anyway before merging to dev.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ D)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@e-maad e-maad merged commit 916dcb1 into feat/channels Mar 13, 2025
9 of 11 checks passed
@e-maad e-maad deleted the feat/channel-avatars-WPB-15756 branch March 13, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants