Skip to content

DEV: new topic map outlet and header participant flexibility #32826

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

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { concat, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { service } from "@ember/service";
import { eq } from "truth-helpers";
import { eq, or } from "truth-helpers";
import avatar from "discourse/helpers/bound-avatar-template";
import icon from "discourse/helpers/d-icon";
import getURL from "discourse/lib/get-url";
Expand Down Expand Up @@ -38,7 +38,11 @@ export default class Participant extends Component {
title={{@username}}
>
{{#if (eq @type "user")}}
{{avatar @user.avatar_template "tiny" (hash title=@username)}}
{{avatar
@user.avatar_template
(or @avatarSize "tiny")
(hash title=@username)
}}
{{else}}
<span>
{{icon "users"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ export default class TopicMapSummary extends Component {
@userFilters={{@postStream.userFilters}}
/>
{{/if}}
<PluginOutlet
@name="topic-map-participants-after"
@outletArgs={{hash topic=@topic}}
Copy link
Contributor

@CvX CvX May 21, 2025

Choose a reason for hiding this comment

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

@davidtaylorhq the other PR will need an update (or this one, if we get the plugin outlet change merged first 😉)

/>
<div class="topic-map__buttons">
{{#if this.readTimeMinutes}}
<div class="estimated-read-time">
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/common/components/topic-map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ body:not(.archetype-private_message) {
gap: 0.75em;

&.--single-stat {
button {
.fk-d-menu__trigger {
flex-direction: row;
gap: 0.25em;

span {
font-size: var(--font-0);
color: var(--primary-700) !important;
color: var(--primary-700);
min-width: unset;
overflow: visible;
}
Expand Down
Loading