Don
12 באוקטובר, 2023, 8:22am
1
Install this theme component
Hello
This theme component adds styling options to the solved and unsolved topics. You can set custom badge and background color.
By default it looks like this on topic list page
Styled (before title)
With background
Inline
Styled (after title)
Topic title, Topic header
Styled
Inline
There are a bunch of settings where you can change the icon, text and style separately solved and unsolved.
Global indicator settings
type
– styled (badge)
– inline (it placed inline before title)
placement (styled)
– before-title
– after-title
border-radius
– badge rounding
Solved Indicator settings
solved indicator
– It uses unicode but you can use other too. (e.g. emoji). It place before label.
…
…
…
solved border color
The badge has a 1px transparent border and this setting you can set a color for it.
enable solved topic background
Enabling this setting will activate the background field below it where you can set the topic list item background color.
Unsolved Indicator setting
Same settings for unsolved indicator below these…
If you want to enable the unsolved indicator than turn on the empty box on unsolved Discourse Solved plugin setting.
Todo:
– Try to move it to use as topic status (will appear everywhere the topic status is appear and it allows to use custom icon too)
20 לייקים
Heliosurge
(Dan DeMontmorency)
13 באוקטובר, 2023, 4:02am
2
Cool theme-component. Only one minor issue is the about category post also marked unsolved .
לייק 1
Don
13 באוקטובר, 2023, 6:29am
3
Hello @Heliosurge
Thank you
Technically the about topic is also a solvable topic. If you have enabled the empty box on unsolved setting on Discourse Solved plugin then the empty box is appears for the topic list about topic and in the about topic too. To hide the unsolved badge for a specific topic you have to close it.
2 לייקים
Heliosurge
(Dan DeMontmorency)
13 באוקטובר, 2023, 7:48am
4
לייק 1
barto_95
(🇵🇹 | )
3 בנובמבר, 2023, 6:15pm
7
Thank’s for component….
but with the component
https://github.com/VaperinaDEV/discourse-solved-quote-
the message résolve not show with green, component don’t work ….
it’s not possible to have 2 component one for subject and one for message work
Don
5 בנובמבר, 2023, 6:50am
8
Hello @barto_95
These two components should works together correctly but the correct component url is: GitHub - VaperinaDEV/discourse-solved-quote-customization
2 לייקים
Don
7 בפברואר, 2025, 8:38am
9
Hello I’ve updated this theme component to work with Glimmer topic list. Thanks for the report: Discourse topic-list changes · Issue #4 · VaperinaDEV/solved-topic-badge · GitHub
4 לייקים
The legacy topic list has been dropped this month.
The code can be removed:
value.push("solvable");
}
return value;
}
);
api.registerValueTransformer(
"latest-topic-list-item-class",
({ value, context }) => {
if (context.topic.get("can_have_answer")) {
value.push("solvable");
}
if (context.topic.get("has_accepted_answer")) {
value.push("status-solved");
}
return value;
}
);
api.onAppEvent("page:topic-loaded", (topic) => {
This file has been truncated. show original
Made a quick PR:
main ← Arkshine:remove-legacy-topc-list
merged 10:05PM - 21 Apr 25 UTC
Meta: https://meta.discourse.org/t/solved-topic-badge/281981/12?u=arkshine
Th… e legacy topic list has been dropped this month: https://github.com/discourse/discourse/pull/32081/commits/0571b957651eb69b605e97a330653988e71278a9.
This PR removes support for the legacy topic list.
6 לייקים
Don
21 באפריל, 2025, 10:11pm
16
Oops, sorry, I forgot to update this component. Thanks @Arkshine , I’ve merged it.
@ozkn , please update the component.
4 לייקים
Monikas
(JustMonika)
22 באפריל, 2025, 3:02am
17
This component is incompatible with discourse-umbrella-groupswitchdisplay and cannot be used together. An error has occurred which may prevent your site from working correctly.
Reason: Conflict between active themes/components.
Click here to update , reconfigure , or disable the component.
(This message is only visible to site administrators.)
ozkn
(Mathx)
22 באפריל, 2025, 7:19am
18
Thanks for the update. I updated and tried but I get the same error. @Don
לייק 1
Don
22 באפריל, 2025, 7:24am
19
5 לייקים
ozkn
(Mathx)
22 באפריל, 2025, 7:36am
20
Thanks, it’s working fine now without any problems.
2 לייקים
xkhalid
14 ביולי, 2025, 2:23am
22
Hi Guys,
After updating to the latest version:
3.5.0.beta8-dev (commit: 5eca6d826e)
I encountered a visual regression related to the Discourse Solved and Solved Topic Badge plugins.
Issue:
Previously, solved topics would have a green background , and unsolved topics (awaiting solution) would appear with a red background in the topic list.
Now, all solved topics no longer display the green background , even though the setting is enabled.
Details:
Screenshot (after the update):
Expected:
Solved topics should retain the green background for better visual clarity.
Please let me know if this is a regression or if any new CSS changes are required to restore this behavior.
לייק 1
Moin
14 ביולי, 2025, 6:09am
23
I think this happens on topics you have read because of the changes in
UX: Variable additions (#33473) · discourse/discourse@20f57ae · GitHub ,
which added a separate background color for visited topics.
You could probably fix that with your own CSS until the theme component is adapted, but I can’t check how right now.
Issues with components that aren’t official should generally be reported in the topic.
2 לייקים
xkhalid
14 ביולי, 2025, 12:24pm
25
Thanks Moin!
I managed to fix it using custom CSS:
.topic-list-item.solved,
.topic-list-item.visited.solved,
.latest-topic-list-item.solved,
.latest-topic-list-item.visited.solved {
background-color: var(--success-low) !important;
}
CC: @sam @j.jaffeux
@Don עקב תוספות משתנים אחרונות לליבה, ייתכן שתצטרך להתאים מעט את הרכיב שלך כדי שצבעי הרקע יעבדו, גם כאשר נושא נצפה.
3 לייקים
Don
14 ביולי, 2025, 5:51pm
27
4 לייקים
שלום @Don שמתי לב שהרקע הצבעוני עבור משתמשים שלא מחוברים לא מוצג.
והצבע הרקע עבור aside.quote.accepted-answer blockquote לא מקבל את הצבע של התג הסגור, האם יש דרך להתאים אותו?