discourse/app
Jarek Radosz 9c5fc6f1df
DEV: Add more-topics plugin API (#29143)
From plugin-api comment:

Registers a new tab to be displayed in "more topics" area at the bottom of a topic page.

```gjs
 api.registerMoreTopicsTab({
   id: "other-topics",
   name: i18n("other_topics.tab"),
   component: <template>tbd</template>,
   condition: ({ topic }) => topic.otherTopics?.length > 0,
 });
```

You can additionally use more-topics-tabs value transformer to conditionally show/hide
specific tabs.

```js
api.registerValueTransformer("more-topics-tabs", ({ value, context }) => {
  if (context.user?.aFeatureFlag) {
    // Remove "suggested" from the topics page
    return value.filter(
      (tab) =>
        context.currentContext !== "topic" ||
        tab.id !== "suggested-topics"
    );
  }
});
```
2024-11-04 17:32:49 +01:00
..
assets DEV: Add more-topics plugin API (#29143) 2024-11-04 17:32:49 +01:00
controllers FEATURE: Add 'Community title' field to about config page (#29500) 2024-10-31 10:04:31 +03:00
helpers DEV: Drop WithServiceHelper 2024-09-05 09:58:20 +02:00
jobs DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models This commit fixes an undesirable geometric query memory usage introduced in b908abe35a (#29539) 2024-11-04 09:00:03 +11:00
serializers FEATURE - Add username column to custom emoji table (#29522) 2024-11-01 10:32:59 -05:00
services DEV: Remove hash-like access from service contracts 2024-10-29 16:02:51 +01:00
views FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00