Minor issues with the admin's Email Customization

AI-generated summary

watchmanmonitor reported three minor bugs regarding email customization in the admin panel. First, the “Saved!” notification persists after navigating to the next template. Second, preview text incorrectly displays as bold regardless of the actual formatting. Third, the default subjects for Pending Users Reminder and Queued Posts Reminder erroneously show as [object Object] (watchmanmonitor).

techAPJ confirmed that the first two issues were resolved by eviltrout and techAPJ respectively. The [object Object] error was attributed to the queued_posts_reminder having two subject keys, which caused a rendering conflict. To fix this, techAPJ implemented a solution that links users to the “customize text” page with a pre-filled search query, rather than providing multiple input boxes. This change ensures users can correctly customize the subject lines without encountering the object reference error.

It’s a minor thing, but after saving an email customization, and moving to the next template, the “Saved!” doesn’t go away.

3 Likes

Currently, the preview text is all in bold, regardless of the text’s bold-state

6 Likes

The default subject for Pending Users Reminder and Queued Posts Reminder is just [object Object]

5 Likes

Here’s another mention of object Object, interestly, I’m deploying in English.

@eviltrout fixed this via:

https://github.com/discourse/discourse/commit/8eeb027c653d37452d220a08ae04eafd34b833f9

3 Likes

Fixed via:

https://github.com/discourse/discourse/commit/4bc6cfd71894c3736bd6fcd508eebe0d053ae3c9

3 Likes

This issue was tricky! :challengeaccepted:

It was happening because queued_posts_reminder has two subject keys:

To solve this issue what I did was instead of providing two input boxes for customizing subject keys, I linked the user to the “customize text” page:

Clicking on that link will take user to the “customize text” page with search query pre-filled:


https://github.com/discourse/discourse/commit/86374c90de9535bcc306ff1eda17794c1b08070b

3 Likes