62 Discourse fixes and opt-in features from JTech Forums

AI-generated summary

TripleU submitted 62 pull requests from JTech Forums, comprising 20 bug fixes, 1 privacy fix, and numerous enhancements and new features. These changes, derived from two years of forum management, included gamification tweaks like capping reply points and disabling likes by category, as well as UI improvements like code line numbers and external link indicators. mcwumbly acknowledged the contribution but noted that such large batches of PRs consume significant maintenance resources. He emphasized that while the effort bar for creating PRs is lower due to AI tools, discussing changes on Meta before opening PRs is the established norm to avoid misaligned efforts.

TripleU apologized for missing the pre-discussion requirement, clarifying that the changes were already in use on their plugin and offered to close the PRs if necessary. sam and mcwumbly agreed that this situation highlights a broader shift in contribution workflows due to new technologies, necessitating new approaches to triage and discussion. manuel added that the bottleneck for contributions is no longer code writing, but building shared understanding and alignment.

sam subsequently merged a batch of clear bug fixes in PR #46902. He identified several “compelling” features suitable for integration or quick discussion, including separate maskable icons for better Android app display, a notification type filter in the UI, code line numbers with a non-intrusive gutter, dismissible global notices, and a user note creation event. Other proposals, such as per-user slow mode and configurable badge thresholds, were flagged as requiring further product discussion due to their scope or policy implications. Gamification point caps were also noted as sensible but potentially consolidatable into a single design.

We run JTech Forums on Discourse. These changes come from problems we ran into as forum admins or users. New options preserve the current defaults.

Open a group and then a pull request to see what changes, where it applies, and why we proposed it.

PR types · 20 bug fixes · 1 privacy fix · 26 enhancements to existing behavior · 15 new features

Gamification, likes and badges (11)
PR #46543 · Bug fix · Score only active likes

What — Adds pa.deleted_at IS NULL to DiscourseGamification::LikeReceived and DiscourseGamification::LikeGiven.

Where — The Gamification leaderboard.

Why — Unliking a post can leave leaderboard points behind.

View PR #46543

PR #46566 · Enhancement · Cap reply points

What — Adds a site-wide daily limit on how many eligible replies earn cheers per user.

Where — The bundled Gamification plugin.

Why — An optional daily cap limits points from rapid replying.

View PR #46566

PR #46567 · Enhancement · Cap points from the same liker

What — Adds a daily cap applied separately to each liker and author pair.

Where — The bundled Gamification plugin.

Why — A daily cap limits score inflation between the same two users.

View PR #46567

PR #46568 · Enhancement · Cap points for giving likes

What — Adds a daily limit on how many eligible likes a person can give for cheers.

Where — The bundled Gamification plugin.

Why — A daily cap limits score gains from high-volume liking.

View PR #46568

PR #46576 · Enhancement · Disable likes by category

What — Add a site setting that blocks new likes and reactions in the selected categories while preserving existing counts and the usual undo window.

Where — Like and reaction controls in selected categories.

Why — Sites can turn off new likes in selected categories.

View PR #46576

PR #46577 · Enhancement · Restrict likes by group

What — Add a group allowlist for new likes and reactions. Members who lose access can still remove their existing reactions within the usual undo window.

Where — Site settings and post like permissions.

Why — Sites can limit new likes to trusted or verified groups.

View PR #46577

PR #46578 · Enhancement · Quiet likes by category

What — Add a category list that suppresses new like and reaction notifications and hides corresponding likes from profile activity. Reactions and counts remain available on posts.

Where — Like alerts and profile activity for selected categories.

Why — Members can react without sending alerts in busy categories.

View PR #46578

PR #46579 · Enhancement · Exclude likes from totals

What — Let admins exclude selected categories from user and directory like totals and related trust-level calculations. Existing totals update in the background after settings or category changes.

Where — User totals, the directory, and trust-level calculations.

Why — Off-topic likes can stay on posts without affecting member totals.

View PR #46579

PR #46580 · Enhancement · Automatic trust-level flair

What — Add a setting that displays the highest configured trust level flair for members without a selected flair, using current trust level and group visibility.

Where — Avatars on sites with configured trust-level flair.

Why — Display configured flair when members have chosen none.

View PR #46580

PR #46581 · Enhancement · Configurable badge thresholds

What — Add a list of count overrides for selected seeded badge ladders. The effective grant queries and badge descriptions use the selected counts.

Where — Admin badge settings for built-in badges.

Why — Adjust built-in badge goals through a setting.

View PR #46581

PR #46582 · Enhancement · Configurable Solved thresholds

What — Add a count setting for Guidance Counsellor, Know-it-All, and Solution Institution. Grants and badge descriptions use the selected counts.

Where — Badge settings in the bundled Solved plugin.

Why — Sites can choose targets for the higher Solved badges.

View PR #46582

Notifications and staff tools (11)
PR #46544 · Bug fix · Filter paginated notifications

What — Applies the parsed notification_types filter in the paginated branch too and keeps filter_by_types in load_more_notifications.

Where — The paginated notification history API.

Why — Apply the type filter when loading older notifications.

View PR #46544

PR #46598 · Enhancement · User note creation event

What — Triggers DiscourseEvent.trigger(:user_note_created, record, user, created_by, opts) in DiscourseUserNotes.add_note.

Where — The bundled User Notes plugin.

Why — Plugins can listen for new notes without patching the model.

View PR #46598

PR #46583 · Enhancement · Filter notifications in the UI

What — Add a notification type dropdown that works with the read status filter and keeps the selection when loading more notifications.

Where — The full notification history page.

Why — Find older alerts by type alongside read and unread filters.

View PR #46583

PR #46596 · Feature · Alerts for deleted replies

What — Add an optional group list for in-app deletion notifications. Deliver the action and topic to eligible staff who can view the discussion.

Where — Staff notification history for ordinary topic replies.

Why — Notify selected staff who can see the affected topic.

View PR #46596

PR #46584 · Feature · PM badge holders

What — An opt-in staff composer picker adds active, distinct badge holders to the current draft while preserving existing recipients and the normal send step.

Where — The staff personal message composer.

Why — Staff can add badge holders to an ordinary PM draft.

View PR #46584

PR #46585 · Feature · Staff post-reader report

What — An optional post admin action shows up to 200 signed-in readers with recorded viewing time and their last visit to the topic, restricted to staff who can see the post.

Where — The post action menu on ordinary topics.

Why — Check recorded reads for an ordinary post or announcement.

View PR #46585

PR #46604 · Feature · Desktop notification toasts

What — An optional toast displays new unread notifications in the visible desktop tab. People opt in from preferences, and the site sets duration, stack size, and excluded types. Do Not Disturb is respected.

Where — The desktop browser and user notification preferences.

Why — Offer in-page alerts that respect user settings and Do Not Disturb.

View PR #46604

PR #46591 · Enhancement · Dismissible global notices

What — An optional close button remembers the dismissal in the browser for the exact text that was displayed. Changes to the notice show again.

Where — The global notice at the top of the site.

Why — Readers can dismiss a notice and still see the next one.

View PR #46591

PR #46597 · Feature · Queued-post outcome alerts

What — Configure separate recipient groups for approval and rejection notices. Only staff with access to the review item receive a notice.

Where — Approvals and rejections in the review queue.

Why — Configure recipients separately for approvals and rejections.

View PR #46597

PR #46599 · Feature · User note alerts

What — Configure staff recipient groups in User Notes. The notice links to the user’s profile and is hidden when staff access is lost or User Notes is disabled.

Where — The bundled User Notes plugin and staff notification history.

Why — Notify selected staff about new notes without including note text.

View PR #46599

PR #46600 · Feature · Review note alerts

What — Configure a staff recipient group for review notes. The alert links to the item, observes review access and scoped API permissions, and skips recipients who already received an explicit mention.

Where — Notes in the review queue.

Why — Notify eligible reviewers and avoid duplicating mentions.

View PR #46600

Moderation and posting (12)
PR #46569 · Enhancement · TL4 replies in closed topics

What — Adds a site setting that controls whether trust level 4 users can reply in closed topics.

Where — Trust Level 4 reply permissions.

Why — Sites can turn off the TL4 exception for closed replies.

View PR #46569

PR #46570 · Enhancement · TL4 topic reopening

What — Adds a site setting for the reopen permission. The topic menu, direct status updates and topic timers respect it.

Where — The topic status menu and timers for Trust Level 4.

Why — Sites can reserve reopening and reopen timers for staff.

View PR #46570

PR #46571 · Enhancement · Category moderator replies

What — Adds a setting that controls closed-topic replies in the categories a group moderates.

Where — Reply permissions in group-moderated categories.

Why — Choose whether category moderators can reply in closed topics.

View PR #46571

PR #46572 · Enhancement · Category moderator reopening

What — Adds a setting for reopening topics in moderated categories. The menu, status changes and topic timers respect it.

Where — Topic status and timers in group-moderated categories.

Why — Choose whether category moderators can reopen topics.

View PR #46572

PR #46573 · Feature · Category moderator topic moves

What — Adds an option to move existing topics into visible categories the group moderates, subject to source edit permissions and destination review requirements.

Where — The topic move dialog for category group moderators.

Why — Allow moves into moderated categories under existing access rules.

View PR #46573

PR #46574 · Feature · Category moderator settings

What — Adds an option for a scoped category editor. The server permits only a defined set of general and appearance fields and topic template settings.

Where — Settings of group-moderated categories.

Why — Delegate ordinary settings edits while protecting permissions.

View PR #46574

PR #46575 · Feature · Category moderator subcategories

What — Adds a Create subcategory action on eligible parent categories. The child inherits the parent access rules, moderation groups and posting review requirements.

Where — Subcategory creation under group-moderated categories.

Why — Let moderators create children that inherit parent access rules.

View PR #46575

PR #46601 · Feature · Approval for replies in one topic

What — Allow moderators to require approval of new replies in a single topic from the topic actions menu. Replies go to the existing review queue and staff can audit changes to the setting.

Where — The topic moderation menu and review queue.

Why — Queue new replies without closing the discussion.

View PR #46601

PR #46602 · Feature · Per-user slow mode

What — Let staff set a posting interval and optional expiry on a user’s admin page. The interval applies across category topics and replies, and changes are recorded in the staff action log.

Where — Staff user controls and ordinary topic posting.

Why — Slow down one member without slowing down the entire topic.

View PR #46602

PR #46603 · Feature · Category confirmation prompts

What — Category editors can set a plain-text confirmation without changing moderator approval or permissions, with an optional inclusive trust-level cap.

Where — Category settings and the new-topic composer.

Why — Remind authors of category rules before they submit a topic.

View PR #46603

PR #46586 · Feature · Topic footer notices

What — An optional staff action adds, edits, or clears a plain-text footer notice visible to users who can already read the topic. Updates appear in the staff log.

Where — The staff action menu and topic footer.

Why — Let staff put instructions near the Reply button.

View PR #46586

PR #46587 · Feature · Pin a post to the footer

What — An optional post admin action pins one ordinary post as a copy in the topic footer, with a link to the original. The copy is loaded independently of the post stream and is omitted if the viewer cannot see the post.

Where — The post action menu and topic footer.

Why — Keep a useful answer easy to find at the end of a topic.

View PR #46587

Mobile layout and keyboard access (14)
PR #46549 · Bug fix · Empty profile controls

What — Hides > li:empty in .user-main .about .controls ul, matching .user-card .usercard-controls.

Where — The user profile actions row.

Why — Plugin slots with no content can leave gaps between controls.

View PR #46549

PR #46550 · Bug fix · Empty profile location row

What — Hides the empty row while preserving locations, websites, and content supplied by the plugin outlet.

Where — The user profile header.

Why — Remove blank space when the location and website are both empty.

View PR #46550

PR #46551 · Bug fix · iPad slide-in menus

What — Starts the menu at the lower edge of the bar and reduces the menu height so it fits on screen.

Where — The iPad navigation bar and slide-in menus.

Why — Keep the navigation bar from covering menu rows.

View PR #46551

PR #46552 · Bug fix · Narrow post history dialogs

What — Lets the counter shrink so all four arrows fit inside the footer.

Where — Post revision history dialogs.

Why — Keep revision arrows inside the dialog on small screens.

View PR #46552

PR #46553 · Bug fix · Mobile PM tags

What — Lets the picker wrap below the title and fit within the composer.

Where — The mobile personal message composer.

Why — Let tags wrap below the title to prevent horizontal overflow.

View PR #46553

PR #46554 · Bug fix · Mobile preferences pickers

What — Lets preference fieldsets shrink and caps the picker at the width of its container.

Where — Preferences on narrow screens.

Why — Let narrow forms shrink enough to fit their multiselects.

View PR #46554

PR #46555 · Bug fix · Sidebar keyboard hints

What — Uses the same keyboard capability check as other shortcut hints. The help can appear once keyboard use is detected.

Where — The desktop sidebar.

Why — Wait for keyboard detection before showing shortcut help.

View PR #46555

PR #46556 · Bug fix · Mobile code copy spacing

What — Puts the extra padding on the inline end of the code block, where the button sits.

Where — Code blocks on phones in right-to-left interfaces.

Why — Keep padding beside the copy button in either text direction.

View PR #46556

PR #46557 · Bug fix · Mixed-direction quote borders

What — Uses the quote’s own inline start for its border.

Where — Quotes in posts with mixed text directions.

Why — Put the quote bar on the start side of the quoted text.

View PR #46557

PR #46558 · Bug fix · Full-width printed topics

What — Hides the sidebar and skip links in print and gives the content a single full-width column.

Where — The topic print layout.

Why — Use the page width for posts when printing a topic.

View PR #46558

PR #46559 · Bug fix · Image-link focus outlines

What — Draws the focus outline inside the image when the link receives keyboard focus.

Where — Keyboard navigation on linked post images.

Why — Restore the keyboard focus indicator removed by the lightbox.

View PR #46559

PR #46560 · Bug fix · Topic-map avatar focus

What — Fits each link to its avatar and draws the outline inside the link.

Where — The avatar row in the topic map.

Why — Keep keyboard outlines visible inside the clipped avatar row.

View PR #46560

PR #46561 · Bug fix · Post author focus

What — Keeps the link inside the row, truncates the name, and draws the outline inside the link.

Where — Author names in the header of a post.

Why — Keep long names and their focus outlines inside narrow rows.

View PR #46561

PR #46562 · Bug fix · Sticky header focus

What — Draws both outlines inside their links.

Where — Topic and category links in the sticky header.

Why — Keep focus visible on clipped topic and category links.

View PR #46562

Themes and appearance (5)
PR #46545 · Bug fix · Theme default palette

What — Adds a Theme default choice alongside the named palettes when the picker is visible.

Where — Preferences → Interface → Color schemes.

Why — Show the default choice when the theme limits the palette list.

View PR #46545

PR #46546 · Bug fix · Color preview mode switching

What — Updates link#cs-preview-light and link#cs-preview-dark media attributes when loading a preview and when switching between light, dark, and auto modes.

Where — Preferences → Interface and the light/dark switch.

Why — Keep an old preview from overriding the selected color mode.

View PR #46546

PR #46548 · Bug fix · Disabled period picker caret

What — Hides .angle-icon when this.selectKit.options.disabled is true and uses cursor: default on .period-chooser.is-disabled .period-chooser-header.

Where — The period picker on Gamification leaderboards.

Why — A fixed leaderboard range should look like a fixed range.

View PR #46548

PR #46564 · Enhancement · Small logo on mobile

What — Adds a switch in Appearance → Logo to use the small logo on mobile when no mobile logo is uploaded. Explicit mobile logos take priority.

Where — Admin → Appearance → Logo.

Why — Let sites reuse the small logo when no mobile logo is set.

View PR #46564

PR #46565 · Enhancement · Separate maskable icon

What — Adds an optional maskable icon upload in Appearance → Logo and uses it for the maskable manifest entry.

Where — Admin → Appearance → Logo and the web app manifest.

Why — Let apps use an icon designed for launchers that mask it.

View PR #46565

Reading, search and navigation (9)
PR #46547 · Privacy fix · Whispers in AI embeddings

What — Filters topic_truncation and post_truncation to regular, non-hidden posts and skips non-regular posts in Jobs::GenerateEmbeddings.

Where — Discourse AI semantic search.

Why — Keep staff whispers from influencing public semantic search.

View PR #46547

PR #46588 · Enhancement · Clickable desktop topic rows

What — An opt-in opens the topic from noninteractive row space with normal or new-tab gestures, while preserving links, text selection, and bulk actions.

Where — The desktop topic list.

Why — Open from row whitespace while preserving links and controls.

View PR #46588

PR #46589 · Enhancement · Latest reply previews

What — An optional field provides a plain-text preview and author metadata for the latest visible regular reply, with one batch query per list and no extra author query.

Where — Ordinary topic lists and their API payloads.

Why — Let themes show the latest visible reply and its author.

View PR #46589

PR #46590 · Enhancement · Emoji-free excerpts

What — The existing excerpt helpers accept an optional strip_emojis keyword that omits cooked emoji images while preserving other image handling.

Where — The Post.excerpt and PrettyText.excerpt helpers.

Why — Let compact previews omit emoji shortcodes on request.

View PR #46590

PR #46563 · Bug fix · Same-site links outside Discourse

What — The link interceptor leaves URLs with no matching Ember route to the browser. Known client routes and registered rewrites continue through the router.

Where — Same-origin links clicked in Discourse.

Why — Open standalone same-site pages without hitting a client 404.

View PR #46563

PR #46592 · Enhancement · Code language labels

What — An optional label uses the author’s explicit language, even when the code-block copy controls are disabled.

Where — Fenced code blocks in posts.

Why — Show the declared language even when copy controls are off.

View PR #46592

PR #46594 · Enhancement · External-link indicators

What — An optional icon and accessible description mark outbound HTTP links in posts. The site can treat additional exact hostnames as internal.

Where — External links in ordinary posts.

Why — Show when a link leaves the forum and its configured hosts.

View PR #46594

PR #46595 · Enhancement · Search selected text

What — An optional selection toolbar button opens forum search with the selected phrase as a query parameter for users with search access.

Where — The post text selection toolbar.

Why — Search directly from the post toolbar with punctuation intact.

View PR #46595

PR #46593 · Enhancement · Code line numbers

What — A separate, synchronized gutter shows logical line numbers beside code. It follows the code’s scroll position and typography and leaves the code text available for copying.

Where — Multiline code blocks in posts.

Why — Make lines easy to reference without changing copied code.

View PR #46593

Which of these would help your forum? I’d like to hear how you’d use it.

This giant batch of PRs came as a bit of a surprise. It’s great to see folks making direct contributions like this, but in the past, we’ve strongly encouraged discussing things here first, before encouraging people to put effort into things that may not be a great fit.

Our systems aren’t designed for this kind of thing. Pull requests do consume resources, both in terms of machine time and attention.

With the effort bar getting lower, I suppose we need to think about where to introduce some additional helpful friction into the process, without making it too much of a burden for contributors or maintainers.

It’s not something we’ve encountered before, so I’m not coming here with a clear set of guidelines yet (and I’m not really the right person to be establishing them). I’ll let someone on our team who is closer to problem share more of their thoughts on this in when they get a chance.

Some of these may be great, but we’ll need to figure out how best to evaluate that with you.

Just wanted to jump in first and share this first in case you see them get closed or labeled in advance of that and are wondering why.

Thanks for the response. I did read that PRs should have a Meta topic, which is why I made this one. What I missed was that the discussion should happen before opening the PRs. My bad.

Feel free to close all 62 if that’s what makes sense for the team. We already run these changes in our own plugin, so we’re good either way. We figured some of them might help other Discourse sites too.

I’ve always thought of Discourse as this amazing open source project that took off. I hadn’t really thought about what a batch like this costs the team in build time and attention. Your reply put that into perspective for me.

One bit of context: we opened them all at once, but the changes came out of about two years of running our forum and fixing things as we went. I figured the same AI tools that helped us put the PRs together could also help with a first pass at review. I underestimated how much the team would still have to take on.

It is a lot… bugs I do want to catch and merge, but a lot of this is functionality changes that requires discussion, reasoning and so on.

I think it’s good that we’re having this conversation.

I’ve seen other projects going through similar things, where norms established a decade ago are being challenged with what is possible for people to do now. It is a lot easier now to make many more good contributions.

We’re certainly going through something new here.

On our end, until now, we’ve mostly been experiencing it as a deluge of reports on the security angle. There too, we’ve had to shift our approach. We’re investing heavily in finding more issues ourselves, automating more of the triage of anything reported by others, validating patches, etc.

Being able to do something similar for other kinds of changes, whether they be bugs or features is something we should be thinking about.

It will take time for us all to adjust to this and figure out what kind of backpressure belongs where.

I would like to see if we can use this opportunity to test some ideas together, but the week is coming to a close. Let me circle back with some more thoughts early next week.

Thanks, Dave. I went through all 62 PRs and added a label next to each one in the original post.

Also think that’s a good opportunity to look at how we encourage and guide contributions in general, and in Development specifically. For many contributions, the code is no longer the bottleneck or the main effort. It’s rather starting a conversation, building a shared understanding, and getting others on board. We need different workflows and patterns to support that better.

I picked up most of the bug fixes in:

Let me know @TripleU if I missed anything else here that is clearly a bug.

Features we probably want to talk through!

Thanks so much… going to just merge the batch to save a bit of time here.

Here is a jumping point for the feature discussion:

Most compelling (small, clear value, fit existing patterns)

  1. #46565 Separate maskable icon. The manifest currently reuses the regular icon as the “maskable” one (the version Android launchers crop to a circle or squircle), so logos without safe-area padding get cropped. It’s a small change (one optional upload, one manifest entry) that fixes how the installed app looks on Android. It’s close to a bug fix and the easiest of these to justify.
  2. #46583 Notification type filter in the UI. The server already supports filter_by_types, and #46691 made it work on the full history page. This just exposes it in the interface: a dropdown alongside the read/unread filter. The value is obvious and the risk is low.
  3. #46593 Code line numbers. People regularly ask for this, and it’s hard to do well in a theme. This version is careful: a separate gutter that scrolls with the code, so copied code doesn’t include the numbers. It’s opt-in and about 200 lines.
  4. #46591 Dismissible global notices. Admins often want a banner that users can close. Remembering the dismissal per exact text means changing the notice shows it again. It’s small and opt-in.
  5. #46598 User note creation event. A one-line event so plugins can react to new user notes. It’s an easy yes.

Worth discussing (real value, but bigger or policy-heavy)
6. #46602 Per-user slow mode. Today moderators can only slow down a whole topic or silence someone. A posting interval for one user would be a useful step in between. But it’s the second-largest PR (about 960 lines across 23 files) and touches posting enforcement, so it needs a product decision first.
7. #46581 / #46582 Configurable badge thresholds. Small communities can’t reach the built-in badge targets. It’s useful, but it adds settings for core and Solved badges and changes badge descriptions, so it’s worth agreeing on the approach first.
8. #46566–#46568 Gamification point caps. These stop people farming the leaderboard with rapid replies or likes between the same pair of users. They’re sensible for the Gamification plugin, but three separate settings could probably be one design.
9. #46576 / #46577 Disable or restrict likes by category or group. This comes up often, but it touches like permissions everywhere (likes, reactions, the undo window) and overlaps with existing plugins.