From f35db8068bdc3512e691fb1f43e5679d5175e6e1 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Wed, 18 Dec 2024 17:39:31 +1000 Subject: [PATCH] DEV: Change to use DPageSubheader (#1033) Previously was AdminPageSubheader until https://github.com/discourse/discourse/pull/30146 --- .../discourse/components/ai-llms-list-editor.gjs | 16 +++++++++------- .../components/ai-persona-list-editor.gjs | 12 +++++++----- .../javascripts/discourse/components/ai-spam.gjs | 8 ++++---- .../discourse/components/ai-tool-list-editor.gjs | 10 +++++----- .../discourse/components/ai-usage.gjs | 8 ++++---- spec/system/admin_ai_persona_spec.rb | 6 +++--- spec/system/ai_bot/tool_spec.rb | 6 +++--- spec/system/llms/ai_llm_spec.rb | 6 +++--- 8 files changed, 38 insertions(+), 34 deletions(-) diff --git a/assets/javascripts/discourse/components/ai-llms-list-editor.gjs b/assets/javascripts/discourse/components/ai-llms-list-editor.gjs index 7f39a499..820f75e5 100644 --- a/assets/javascripts/discourse/components/ai-llms-list-editor.gjs +++ b/assets/javascripts/discourse/components/ai-llms-list-editor.gjs @@ -4,9 +4,9 @@ import { action } from "@ember/object"; import { LinkTo } from "@ember/routing"; import { service } from "@ember/service"; import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item"; +import DPageSubheader from "discourse/components/d-page-subheader"; import i18n from "discourse-common/helpers/i18n"; import I18n from "discourse-i18n"; -import AdminPageSubheader from "admin/components/admin-page-subheader"; import AdminSectionLandingItem from "admin/components/admin-section-landing-item"; import AdminSectionLandingWrapper from "admin/components/admin-section-landing-wrapper"; import AiLlmEditor from "./ai-llm-editor"; @@ -121,9 +121,11 @@ export default class AiLlmsListEditor extends Component { {{else}} {{#if this.hasLlmElements}}
- @@ -183,11 +185,11 @@ export default class AiLlmsListEditor extends Component { {{/if}}
- {{else}} - <:actions as |actions|> @@ -52,7 +54,7 @@ export default class AiPersonaListEditor extends Component { class="ai-persona-list-editor__new-button" /> - + {{#if @personas}}
diff --git a/assets/javascripts/discourse/components/ai-spam.gjs b/assets/javascripts/discourse/components/ai-spam.gjs index b6646a37..d7f7a9af 100644 --- a/assets/javascripts/discourse/components/ai-spam.gjs +++ b/assets/javascripts/discourse/components/ai-spam.gjs @@ -6,6 +6,7 @@ import { action } from "@ember/object"; import { LinkTo } from "@ember/routing"; import { service } from "@ember/service"; import DButton from "discourse/components/d-button"; +import DPageSubheader from "discourse/components/d-page-subheader"; import DStatTiles from "discourse/components/d-stat-tiles"; import DToggleSwitch from "discourse/components/d-toggle-switch"; import DTooltip from "discourse/components/d-tooltip"; @@ -15,7 +16,6 @@ import { popupAjaxError } from "discourse/lib/ajax-error"; import i18n from "discourse-common/helpers/i18n"; import getURL from "discourse-common/lib/get-url"; import AdminConfigAreaCard from "admin/components/admin-config-area-card"; -import AdminPageSubheader from "admin/components/admin-page-subheader"; import ComboBox from "select-kit/components/combo-box"; import SpamTestModal from "./modal/spam-test-modal"; @@ -165,9 +165,9 @@ export default class AiSpam extends Component {