mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 03:56:21 +08:00
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:
@ -178,8 +178,8 @@ Fabricator(:chat_webhook_event, class_name: "Chat::WebhookEvent") do
|
||||
end
|
||||
|
||||
Fabricator(:incoming_chat_webhook, class_name: "Chat::IncomingWebhook") do
|
||||
name { sequence(:name) { |i| "#{i + 1}" } }
|
||||
key { sequence(:key) { |i| "#{i + 1}" } }
|
||||
name { sequence(:name) { |i| "Test webhook #{i + 1}" } }
|
||||
emoji { %w[:joy: :rocket: :handshake:].sample }
|
||||
chat_channel { Fabricate(:chat_channel, chatable: Fabricate(:category)) }
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user