discourse/app/assets/javascripts/admin/addon/routes
Martin Brennan 9ef3a18ce4
DEV: Add new experimental admin UI route and sidebar (#23952)
This commit adds a new admin UI under the route `/admin-revamp`, which is
only accessible if the user is in a group defined by the new `enable_experimental_admin_ui_groups` site setting. It
also adds a special `admin` sidebar panel that is shown instead of the `main`
forum one when the admin is in this area.

![image](https://github.com/discourse/discourse/assets/920448/fa0f25e1-e178-4d94-aa5f-472fd3efd787)

We also add an "Admin Revamp" sidebar link to the community section, which
will only appear if the user is in the setting group:

![image](https://github.com/discourse/discourse/assets/920448/ec05ca8b-5a54-442b-ba89-6af35695c104)

Within this there are subroutes defined like `/admin-revamp/config/:area`,
these areas could contain any UI imaginable, this is just laying down an
initial idea of the structure and how the sidebar will work. Sidebar links are
currently hardcoded.

Some other changes:

* Changed the `main` and `chat` panels sidebar panel keys to use exported const values for reuse
* Allowed custom sidebar sections to hide their headers with the `hideSectionHeader` option
* Add a `groupSettingArray` setting on `this.siteSettings` in JS, which accepts a group site setting name
  and splits it by `|` then converts the items in the array to integers, similar to the `_map` magic for ruby
  group site settings
* Adds a `hidden` option for sidebar panels which prevents them from showing in separated mode and prevents
  the switch button from being shown

---------

Co-authored-by: Krzysztof Kotlarek <kotlarek.krzysztof@gmail.com>
2023-10-19 14:23:41 +10:00
..
admin-badges DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-api-index.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-api-keys-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys-new.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-backups-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-backups-logs.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-backups.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-badges.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-colors-show.js DEV: Update replaceWith on Route (#23153) 2023-08-21 16:53:54 -05:00
admin-customize-colors.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-email-style-edit.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-email-style-index.js DEV: Update replaceWith on Route (#23153) 2023-08-21 16:53:54 -05:00
admin-customize-email-style.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-email-templates-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-email-templates.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-form-templates-edit.js DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
admin-customize-form-templates-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-index.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-customize-robots-txt.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-themes-edit.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-themes-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-themes-show.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-themes.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-dashboard-general.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-dashboard-reports.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-dashboard.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-bounced.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-incomings.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-logs.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-preview-digest.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-received.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-rejected.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-sent.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-skipped.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-embedding.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-emojis.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-flags-posts-active.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-posts-old.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-topics-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-logs-screened-emails.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-screened-ip-addresses.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-screened-urls.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-staff-action-logs.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-permalinks.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-plugins.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-reports-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-reports-show.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-revamp-config-area.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp-config.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp-lobby.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-route-map.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-search-logs-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-search-logs-term.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-site-settings-category.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-site-settings-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-site-settings.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-site-text-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-site-text-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-badges.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-fields.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-user-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-tl3-requirements.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-user.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-list-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-list-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-users-list.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-watched-words-action.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-watched-words-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-watched-words.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks.js FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
admin.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00