discourse/app/assets/javascripts/admin/addon/templates
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 A11Y: UI emoji are decorative, use alt="" (#23690) 2023-09-28 13:30:19 -04:00
logs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
admin-badges.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
admin-revamp-config-area.hbs DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp-config.hbs DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp-lobby.hbs DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp.hbs DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin.hbs DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00
api-keys-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
api-keys-new.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
api-keys-show.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
api.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
backups-logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-colors-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-show.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-colors.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-email-style-edit.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-email-style.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-form-templates-edit.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-form-templates-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-form-templates-new.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-robots-txt.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-themes-edit.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-themes-index.hbs A11Y: UI emoji are decorative, use alt="" (#23690) 2023-09-28 13:30:19 -04:00
customize-themes-show.hbs DEV: Introduce {{body-class}}, soft-deprecate <DSection /> (#23479) 2023-09-11 13:44:52 +02:00
customize-themes.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
dashboard_general.hbs FEATURE: add custom date range filter for admin dashboard reports (#23702) 2023-09-29 14:44:17 +05:30
dashboard_moderation.hbs FEATURE: add custom date range filter for admin dashboard reports (#23702) 2023-09-29 14:44:17 +05:30
dashboard_reports.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
dashboard_security.hbs DEV: Remove use of PluginOutlet @tagName argument in core 2023-01-31 12:15:37 +00:00
dashboard.hbs FEATURE: add group filter for admin reports (#23381) 2023-09-05 11:17:18 +05:30
email-advanced-test.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-bounced.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
email-preview-digest.hbs SECURITY: Correctly escape 'text' email preview 2023-10-16 10:34:34 -04:00
email-received.hbs DEV: Add extra whitespace to tidy up prettified templates 2022-12-28 13:11:12 +00:00
email-rejected.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-sent.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-skipped.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
embedding.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
emojis.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
permalinks.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
plugins-index.hbs FIX: Improve admin plugin list and modernize code (#23256) 2023-08-28 10:48:59 +10:00
plugins.hbs UX: Remove Plugin Settings tab (#23345) 2023-08-31 12:11:39 +10:00
reports-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-term.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
site-settings-category.hbs DEV: Introduce {{body-class}}, soft-deprecate <DSection /> (#23479) 2023-09-11 13:44:52 +02:00
site-settings.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
site-text-edit.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
site-text-index.hbs DEV: Modernize admin-site-text route/controller (#23581) 2023-09-14 11:27:09 +01:00
site-text.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user-badges.hbs DEV: upgrade grant badge modal to glimmer (#23526) 2023-09-14 10:05:29 +08:00
user-fields.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
user-index.hbs Revert "FEATURE: Count only approved flagged posts in user pages (#22799)" (#23962) 2023-10-18 11:38:17 +10:00
user-tl3-requirements.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user.hbs DEV: Introduce {{body-class}}, soft-deprecate <DSection /> (#23479) 2023-09-11 13:44:52 +02:00
users-list-show.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
users-list.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
watched-words-action.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
watched-words.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
web-hooks-edit.hbs FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
web-hooks-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
web-hooks-show.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
web-hooks.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00