discourse/app/assets/stylesheets/common/admin
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_base.scss DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin_emojis.scss A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
admin_intro.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
admin_report_chart.scss A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
admin_report_counters.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
admin_report_inline_table.scss FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin_report_stacked_chart.scss FIX: better handling of resizing in stacked charts (#6921) 2019-01-22 11:20:50 +01:00
admin_report_table.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
admin_report.scss UX: highlight vars updates (#20346) 2023-02-21 10:15:49 +01:00
admin_reports.scss DEV: Remove unused scss (#16134) 2022-03-08 17:39:40 +01:00
admin_revamp.scss DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
api.scss FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
backups.scss UX: display warning message when uploads are not included in backup. (#23253) 2023-08-31 10:21:07 +05:30
badges.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
customize-install-theme.scss UX: Improve the "install theme/component" modal on mobile (#20777) 2023-03-27 14:11:31 -04:00
customize.scss UX: improve handling of long theme names in admin (#23963) 2023-10-18 09:41:21 -04:00
dashboard.scss REFACTOR: move shadow vars to css custom props (#22094) 2023-06-13 16:38:31 -04:00
emails.scss UX: improve use of space for readability of admin email modal (#19797) 2023-01-09 14:24:58 +01:00
json_schema_editor.scss FEATURE: Support collapsing array sections in JSON Schema field types (#20118) 2023-02-07 08:22:01 -05:00
mini_profiler.scss A11Y: Adjust contrast and font size for mini profiler widget (#22246) 2023-06-22 18:01:21 -04:00
penalty.scss UX: Set penalty history to sticky (#19933) 2023-01-23 07:14:23 -06:00
plugins.scss FEATURE: display commit hash for each plugin on /admin/plugins page. (#22176) 2023-06-26 10:09:57 +05:30
settings.scss DEV: Sanitize integer site settings in front- and back-end (#23816) 2023-10-06 19:21:01 +02:00
staff_logs.scss UX: clarify descriptions for watched words, style (#20678) 2023-03-21 10:40:26 -04:00
users.scss REFACTOR: user directories without <table>, second attempt (#20515) 2023-03-02 15:10:19 -05:00