mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Refactor the Automation Plugin UI to match admin UI guidelines (#31060)
This change updates the Automation plugin to make use of the `use_new_show_route` plugin flag, as well as generally updating the UI to match current admin UI guidelines. Notable changes include: - Moving template/router/controller files to make use of the `admin.adminPlugins.show` route. - Changing the URIs from `/admin/plugins/discourse-automation` to `/admin/plugins/automation`, to match the `PLUGIN_NAME`. - Adding UI wrappers around the New/Edit forms, and polishing the list of defined automations.
This commit is contained in:
@ -7,13 +7,16 @@ en:
|
||||
delete_automation: delete automation
|
||||
discourse_automation:
|
||||
title: Automation
|
||||
create: Create
|
||||
update: Update
|
||||
table_title: Automations
|
||||
create: Add automation
|
||||
update: Update automation
|
||||
back: Back
|
||||
edit: Edit
|
||||
select_script: Select a script
|
||||
select_trigger: Select a trigger
|
||||
confirm_automation_reset: This action will reset script and trigger options, new state will be saved, do you want to proceed?
|
||||
confirm_automation_trigger: This action will trigger the automation, do you want to proceed?
|
||||
no_automation_yet: You haven’t created any automations yet. Choose an option below to get started.
|
||||
no_automation_yet: There are currently no automations configured.
|
||||
filter_placeholder: Filter by name or description...
|
||||
edit_automation:
|
||||
trigger_section:
|
||||
|
@ -10,13 +10,13 @@ DiscourseAutomation::Engine.routes.draw do
|
||||
put "/append-last-checked-by/:post_id" => "append_last_checked_by#post_checked"
|
||||
end
|
||||
|
||||
scope "/admin/plugins/discourse-automation",
|
||||
scope "/admin/plugins/automation",
|
||||
as: "admin_discourse_automation",
|
||||
constraints: AdminConstraint.new do
|
||||
scope format: false do
|
||||
get "/" => "admin#index"
|
||||
get "/new" => "admin#new"
|
||||
get "/:id" => "admin#edit"
|
||||
get "/automation" => "admin#index"
|
||||
get "/automation/new" => "admin#new"
|
||||
get "/automation/:id" => "admin#edit"
|
||||
end
|
||||
|
||||
scope format: :json do
|
||||
|
Reference in New Issue
Block a user