1
0
mirror of synced 2026-05-22 15:03:15 +00:00

4 Commits

Author SHA1 Message Date
Bannon Tanner 6228f42ee6 FEAT: add group level gating (#66)
Adds ability to gate topics by group membership. Shows separate subheading text and has input for a custom CTA button link.

Group gating can work independently of the category and tag gating, or in conjunction.
2026-03-19 14:10:52 -05:00
Jarek Radosz 64570b5331 DEV: Update linting and add types (#61)
* DEV: Update linting and add types

* DEV: Update linting and add types
2026-01-28 13:17:37 +00:00
Alan Guo Xiang Tan 4e4b632298 DEV: Add backward compatibility for tag object arrays (#60)
What is the problem?

Discourse core PR #36678 changes `topic.tags` from a string array
(e.g., `["support", "bug"]`) to an object array (e.g.,
`[{id: 12, name: "support", slug: "support"}]`). This breaks the
`TopicInGatedCategory#recalculate` method which checks if topic tags
include enabled tags using `this.enabledTags.includes(t)`.

What is the solution?

Update the gated tag checking logic to extract the tag name using
`typeof t === "string" ? t : t.name` before comparing against
`this.enabledTags`. This ensures backward compatibility with both
the old string format and the new object format.
2026-01-19 10:47:19 +08:00
Loïc Guitaut c5e98c2af8 DEV: Add system spec to check core features are working fine (#50) 2025-04-09 15:16:41 +02:00