discourse/app/assets/javascripts/admin/addon
Alan Guo Xiang Tan 1b56a55f50
DEV: Sidebar default tags and categories are determined at user creation (#18620)
The previous sidebar default tags and categories implementation did not
allow for a user to configure their sidebar to have no categories or
tags. This commit changes how the defaults are applied. When a user is being created,
we create the SidebarSectionLink records based on the `default_sidebar_categories` and
`default_sidebar_tags` site settings. SidebarSectionLink records are
only created for categories and tags which the user has visibility on at
the point of user creation.

With this change, we're also adding the ability for admins to apply
changes to the `default_sidebar_categories` and `default_sidebar_tags`
site settings historically when changing their site setting. When a new
category/tag has been added to the default, the new category/tag will be
added to the sidebar for all users if the admin elects to apply the changes historically.
Like wise when a tag/category is removed, the tag/category will be
removed from the sidebar for all users if the admin elects to apply the
changes historically.

Internal Ref: /t/73500
2022-10-27 06:38:50 +08:00
..
adapters
components DEV: Refactor the last few bootbox dialogs (#18416) 2022-10-07 11:38:27 -04:00
controllers FIX: Correctly debounce various functions (#18673) 2022-10-20 13:28:09 +02:00
helpers DEV: Remove 'htmlSafe' string prototype extensions (#16766) 2022-05-13 14:58:26 -05:00
mixins DEV: Sidebar default tags and categories are determined at user creation (#18620) 2022-10-27 06:38:50 +08:00
models FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
routes FIX: Staff action log 'show details' links (#18542) 2022-10-11 12:17:36 +01:00
services DEV: Refactor the last few bootbox dialogs (#18416) 2022-10-07 11:38:27 -04:00
templates DEV: Remove unneeded templateOnly() stubs (#18701) 2022-10-21 15:12:53 +01:00