discourse/app/assets/javascripts
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 DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
bootstrap-json DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
discourse DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
discourse-common Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
discourse-hbr Build(deps-dev): Bump webpack in /app/assets/javascripts (#23939) 2023-10-16 11:23:00 +02:00
discourse-i18n DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
discourse-plugins Build(deps): Bump ember-template-imports from 3.4.2 to 4.0.0 in /app/assets/javascripts (#23970) 2023-10-18 12:42:26 +01:00
discourse-widget-hbs DEV: Consolidate and update jsconfig, and add types packages (#23824) 2023-10-18 12:13:20 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
float-kit Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
patches Build(deps): Bump ember-this-fallback from 0.3.1 to 0.4.0 in /app/assets/javascripts (#23959) 2023-10-18 10:56:35 +01:00
pretty-text Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
select-kit Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
theme-transpiler DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
truth-helpers Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
wizard Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
package.json DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00