0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 07:23:30 +08:00
discourse/frontend
Kris c020921e6f
UX: restore moderator color to PM warnings (#41293)
Reported here:
https://meta.discourse.org/t/official-warning-pm-notification-feature/387448/8?u=awesomerobot

We had `isWarning`, but it wasn't wired up to anything after the glimmer
migration so it never activated to add the moderator color to warnings

8dd0a9c736/frontend/discourse/app/components/post.gjs (L436-L437)

this adds the getter so the correct class is added to warning PMs and we
get the color

Before:
<img width="700" alt="image"
src="https://github.com/user-attachments/assets/309df242-25b2-4013-910f-31ddafae6ca4"
/>



After:
<img width="700" alt="image"
src="https://github.com/user-attachments/assets/fa3139b8-7ce0-48e5-bc8c-345d30f8d99e"
/>

included a test to avoid future regressions
2026-06-30 10:19:13 -04:00
..
asset-processor DEPS: Bump vitest from 4.1.8 to 4.1.9 (#41101) 2026-06-23 15:00:05 +02:00
deprecation-silencer DEV: Remove (again) the old non-rollup plugin compiler (#39419) 2026-04-21 21:07:46 +02:00
discourse UX: restore moderator color to PM warnings (#41293) 2026-06-30 10:19:13 -04:00
discourse-i18n DEPS: Bump the embroider group across 1 directory with 4 updates (#40856) 2026-06-16 14:57:02 +02:00
discourse-markdown-it DEPS: Bump the embroider group across 1 directory with 4 updates (#40856) 2026-06-16 14:57:02 +02:00
discourse-types
pretty-text DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
.npmrc
polyfills.js