diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs
index 9ac1e3779c..ff3bb3fb71 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs
@@ -29,15 +29,9 @@
{{#each this.members as |membership|}}
-
-
-
-
+
+
+
{{else}}
{{#unless this.isFetchingMembers}}
{{i18n "chat.channel.no_memberships_found"}}
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-user-info.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-user-info.hbs
new file mode 100644
index 0000000000..e9fa4b9b44
--- /dev/null
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-user-info.hbs
@@ -0,0 +1,8 @@
+{{#if @user}}
+
+
+
+
+
+
+{{/if}}
\ No newline at end of file
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-user-info.js b/plugins/chat/assets/javascripts/discourse/components/chat-user-info.js
new file mode 100644
index 0000000000..ccc7d150af
--- /dev/null
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-user-info.js
@@ -0,0 +1,8 @@
+import Component from "@glimmer/component";
+import { userPath } from "discourse/lib/url";
+
+export default class ChatUserInfo extends Component {
+ get userPath() {
+ return userPath(this.args.user.username);
+ }
+}
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel-info.scss b/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
index 0c9a4f9a8d..bc6d069e71 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel-info.scss
@@ -112,9 +112,8 @@ input.channel-members-view__search-input {
align-items: center;
padding: 0.5rem 0 0.5rem 1px;
- &:hover {
- background-color: var(--tertiary-very-low);
- border-radius: 0.25rem;
+ &:not(:last-child) {
+ border-bottom: 1px solid var(--primary-low);
}
.chat-user-avatar {
diff --git a/plugins/chat/test/javascripts/components/chat-user-info-test.js b/plugins/chat/test/javascripts/components/chat-user-info-test.js
new file mode 100644
index 0000000000..b19ab3a7ec
--- /dev/null
+++ b/plugins/chat/test/javascripts/components/chat-user-info-test.js
@@ -0,0 +1,24 @@
+import { setupRenderingTest } from "discourse/tests/helpers/component-test";
+import hbs from "htmlbars-inline-precompile";
+import { module, test } from "qunit";
+import { render } from "@ember/test-helpers";
+
+module("Discourse Chat | Component | chat-user-info", function (hooks) {
+ setupRenderingTest(hooks);
+
+ test("avatar and name", async function (assert) {
+ this.set("user", this.currentUser);
+
+ await render(hbs`
`);
+
+ assert
+ .dom(`a[data-user-card=${this.user.username}] div.chat-user-avatar`)
+ .exists();
+
+ assert
+ .dom(
+ `a[data-user-card=${this.user.username}] span.chat-user-display-name`
+ )
+ .includesText(this.user.username);
+ });
+});