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 announcement , display room avatar , make room name clickable. #734

Merged
merged 8 commits into from
Jan 1, 2025

Conversation

abirc8010
Copy link
Contributor

@abirc8010 abirc8010 commented Dec 25, 2024

Brief Title

Acceptance Criteria fulfillment

  • Display the room avatar alongside the room name.
  • Display room information when the room name is clicked.
  • Display the room announcement as in Rocket.Chat, and for large announcements, show them in a modal.
  • Add a showAnnouncement prop that can be passed to embeddedChat to hide the announcement if required

Fixes #733

Video/Screenshots

Screencast.from.2024-12-25.23-09-43.webm

For dark theme:

image

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-734 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@abirc8010
Copy link
Contributor Author

Hey @Spiral-Memory will this background be ok for dark theme in announcement ?

@Spiral-Memory
Copy link
Collaborator

Things are looking good, just add some padding in the modal.. give it some more height..

N then I'll approve and test and let you know my further comments.

@abirc8010
Copy link
Contributor Author

image

@Spiral-Memory I have added padding to modal and increased it's height

css={[
styles.announcementTextBox,
css`
text-decoration: ${isOverflowing ? 'underline' : 'none'};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why adding a underline when overflowing ? Specific reason ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to give a hint to user that the announcement is clickable , but I just realized that in RC the underline appears only if the user hovers over the announcement , should I consider removing it in normal view?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yaa better remove it, keep it on hover only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the text underline in normal view

@abirc8010
Copy link
Contributor Author

Hey @Spiral-Memory could you please create a sample announcement for the pr preview for testing purposes ?

@abirc8010 abirc8010 mentioned this pull request Dec 29, 2024
3 tasks
@Spiral-Memory
Copy link
Collaborator

Hey @Spiral-Memory could you please create a sample announcement for the pr preview for testing purposes ?

I don't think i have the permission to do that..

@Spiral-Memory Spiral-Memory merged commit d920d59 into RocketChat:develop Jan 1, 2025
3 checks passed
github-actions bot added a commit that referenced this pull request Jan 1, 2025
SinghaAnirban005 pushed a commit to SinghaAnirban005/EmbeddedChat that referenced this pull request Jan 1, 2025
…le. (RocketChat#734)

* Added room announcement feature , display avatar and make room name clickable

* remove showChannelAvatar from ECOptions

* Add padding

* Add padding to modal

* Remove text underline in announcement in normal view

* add showAnnouncement dependency to useEffect

* Run prettier

* replace channelInfo.description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: display room announcement , room avatar and make room name clickable
2 participants