diff --git a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/DecorateContentEntryFormBind.tsx b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/DecorateContentEntryFormBind.tsx index 5c7e004..eae2c70 100644 --- a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/DecorateContentEntryFormBind.tsx +++ b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/DecorateContentEntryFormBind.tsx @@ -24,7 +24,7 @@ export const DecorateContentEntryFormBind = useBind.createDecorator(baseHook => const { model } = useModel(); // Skip tracking for non-article models - if (model.modelId !== "article") { + if (model.modelId !== "article-smart-seo") { return baseHook(params); } diff --git a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/SmartSeo.tsx b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/SmartSeo.tsx index b6cb9cf..f7a4a74 100644 --- a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/SmartSeo.tsx +++ b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/admin/src/SmartSeo.tsx @@ -120,7 +120,7 @@ export const SmartSeo = () => { name={"askAi"} before={"save"} element={} - modelIds={["article"]} + modelIds={["article-smart-seo"]} /> ); }; diff --git a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/package.json b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/package.json index bec1dd7..12cecb0 100644 --- a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/package.json +++ b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/package.json @@ -1,12 +1,12 @@ { - "name": "test-plugin-ai-api", - "main": "src/index.ts", - "keywords": [ - "webiny-extension", - "webiny-extension-type:api" - ], - "version": "1.0.0", - "dependencies": { - "@webiny/api-headless-cms": "5.41.1" - } + "name": "test-plugin-ai-api", + "main": "src/index.ts", + "keywords": [ + "webiny-extension", + "webiny-extension-type:api" + ], + "version": "1.0.0", + "dependencies": { + "@webiny/api-headless-cms": "5.41.1" + } } diff --git a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/src/Article.ts b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/src/Article.ts index a313c05..5ec2f7f 100644 --- a/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/src/Article.ts +++ b/headless-cms/test-plugins-ai/5.41.x/extensions/testPluginsAi/api/src/Article.ts @@ -7,13 +7,10 @@ export const Article = () => { return [ // Defines a new Ungrouped content models group. createCmsModelPlugin({ - name: "Article", - modelId: "article", + name: "Article - Smart SEO", + modelId: "article-smart-seo", description: "Article content model for Smart SEO", - group: { - id: "673b06847c123c0002c9cfdc", - name: "Ungrouped AI 2" - }, + group: {id: "", name: ""}, fields: [ createModelField({ fieldId: "content",