DEV: Implement glimmer topic-list (#26743)

(experimental)

The initial implementation of glimmer topic-list and related components. Does not include new APIs and isn't compatible with existing customization. That's gonna come in future PRs.

Enabled by adding groups to `experimental_glimmer_topic_list_groups` setting.
This commit is contained in:
Jarek Radosz
2024-05-21 14:36:15 +02:00
committed by GitHub
parent eb2df2b7d6
commit 87769a83c4
33 changed files with 1795 additions and 68 deletions

View File

@@ -74,7 +74,8 @@ class CurrentUserSerializer < BasicUserSerializer
:new_new_view_enabled?,
:use_experimental_topic_bulk_actions?,
:use_admin_sidebar,
:can_view_raw_email
:can_view_raw_email,
:use_glimmer_topic_list?
delegate :user_stat, to: :object, private: true
delegate :any_posts, :draft_count, :pending_posts_count, :read_faq?, to: :user_stat
@@ -314,4 +315,8 @@ class CurrentUserSerializer < BasicUserSerializer
def can_view_raw_email
scope.user.in_any_groups?(SiteSetting.view_raw_email_allowed_groups_map)
end
def use_glimmer_topic_list?
scope.user.in_any_groups?(SiteSetting.experimental_glimmer_topic_list_groups_map)
end
end