FEATURE: Convert chat plugin UI to new show plugin and admin UI guidelines (#28632)

This commit converts the current chat plugin UI into the
new "show plugin" UI already followed by AI and Gamification.

In the process, I also:

* Made a dedicated /new route to create new webhooks
* Converted the webhook form to FormKit
* Made some fixes and improvements to the `AdminPluginConfigPage`, `AdminPageHeader`,
   and `AdminPageSubheader` generic components, so more plugins can
   adopt the UI guidelines too. This includes adding a header outlet so plugins
   can add action buttons to the plugin show page header.
* Fixes the submit button loading state for FormKit (by Joffrey)

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
Martin Brennan
2024-09-10 15:16:16 +10:00
committed by GitHub
parent 56877e9acf
commit 61c1d35f17
36 changed files with 828 additions and 538 deletions

View File

@ -25,7 +25,7 @@ RSpec.describe ApplicationController do
"admin_route" => {
"label" => "chat.admin.title",
"location" => "chat",
"use_new_show_route" => false,
"use_new_show_route" => true,
},
"enabled" => true,
},