Skip to content

Commit 2093ad1

Browse files
committed
Manual review changes
1 parent d0f0413 commit 2093ad1

File tree

3 files changed

+8
-142
lines changed

3 files changed

+8
-142
lines changed

code_samples/ai_actions/config/packages/ibexa_admin_ui.yaml

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,6 @@
1-
parameters:
2-
# Admin siteaccess group name
3-
admin_group_name: admin_group
4-
51
ibexa:
6-
siteaccess:
7-
list: [admin]
8-
groups:
9-
# WARNING: Do not remove or rename this group.
10-
# It's used to distinguish common siteaccesses from admin ones.
11-
# In case of multisite with multiple admin panels, remember to add any additional admin siteaccess to this group.
12-
admin_group: [admin]
13-
142
system:
153
admin_group:
16-
# System languages. Note that by default, content, content types, and other data are in eng-GB locale,
17-
# so removing eng-GB from this list may lead to errors or content not being shown, unless you change
18-
# all eng-GB data to other locales first.
19-
# For admin this needs to contain all languages you want to translate content to on the given repository.
20-
languages: [eng-GB]
21-
content_tree_module:
22-
contextual_tree_root_location_ids:
23-
- 2 # Home (Content structure)
24-
- 5 # Users
25-
- 43 # Media
26-
- 48 # Setup
27-
- 55 # Forms
28-
- 56 # Site skeletons
29-
- 60 # Components
30-
- 67 # Dashboards
31-
subtree_paths:
32-
content: /1/2/
33-
media: /1/43/
34-
page_builder:
35-
siteaccess_list: [ site ]
36-
assets:
37-
icon_sets:
38-
streamlineicons: /bundles/ibexaicons/img/all-icons.svg
39-
default_icon_set: streamlineicons
40-
content_type:
41-
about:
42-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#about'
43-
article:
44-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#article'
45-
blog:
46-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#blog'
47-
blog_post:
48-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#blog_post'
49-
editor:
50-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#author'
51-
folder:
52-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#folder'
53-
form:
54-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#form'
55-
place:
56-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#place'
57-
product:
58-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#product'
59-
field:
60-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#field'
61-
user:
62-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#user'
63-
user_group:
64-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#user_group'
65-
file:
66-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#file'
67-
gallery:
68-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#gallery'
69-
image:
70-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#image'
71-
video:
72-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#video'
73-
landing_page:
74-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#landing_page'
75-
default-config:
76-
thumbnail: '/bundles/ibexaicons/img/all-icons.svg#file'
77-
user_content_type_identifier: ['user', 'customer', 'member', 'editor']
78-
user_profile:
79-
enabled: true
80-
content_types: ['editor']
81-
field_groups: ['about', 'contact']
82-
default_page: 'dashboard'
83-
content:
84-
default_ttl: 0
854
admin_ui_forms:
865
content_edit:
876
form_templates:
Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,4 @@
1-
const Encore = require('@symfony/webpack-encore');
2-
const path = require('path');
3-
const getIbexaConfig = require('./ibexa.webpack.config.js');
4-
const ibexaConfig = getIbexaConfig(Encore);
51
const ibexaConfigManager = require('./ibexa.webpack.config.manager.js');
6-
const customConfigs = require('./ibexa.webpack.custom.configs.js');
7-
const {
8-
isReactBlockPathCreated,
9-
} = require('./ibexa.webpack.config.react.blocks.js');
10-
11-
Encore.reset();
12-
Encore.setOutputPath('public/build/')
13-
.setPublicPath('/build')
14-
.enableStimulusBridge('./assets/controllers.json')
15-
.enableSassLoader()
16-
.enableReactPreset()
17-
.enableSingleRuntimeChunk()
18-
.copyFiles({
19-
from: './assets/images',
20-
to: 'images/[path][name].[ext]',
21-
pattern: /\.(png|svg)$/,
22-
})
23-
24-
// enables @babel/preset-env polyfills
25-
.configureBabelPresetEnv((config) => {
26-
config.useBuiltIns = 'usage';
27-
config.corejs = 3;
28-
});
29-
30-
// Welcome page stylesheets
31-
Encore.addEntry('welcome-page-css', [
32-
path.resolve(__dirname, './assets/scss/welcome-page.scss'),
33-
]);
34-
35-
// Welcome page javascripts
36-
Encore.addEntry('welcome-page-js', [
37-
path.resolve(__dirname, './assets/js/welcome.page.js'),
38-
]);
392

403
ibexaConfigManager.add({
414
ibexaConfig,
@@ -44,19 +7,3 @@ ibexaConfigManager.add({
447
path.resolve(__dirname, './assets/js/addAudioModule.js')
458
],
469
});
47-
48-
if (isReactBlockPathCreated) {
49-
// React Blocks javascript
50-
Encore.addEntry('react-blocks-js', './assets/js/react.blocks.js');
51-
}
52-
53-
Encore.addEntry('app', './assets/app.js');
54-
55-
const projectConfig = Encore.getWebpackConfig();
56-
57-
projectConfig.name = 'app';
58-
59-
module.exports = [ibexaConfig, ...customConfigs, projectConfig];
60-
61-
// uncomment this line if you've commented-out the above lines
62-
// module.exports = [ eZConfig, ibexaConfig, ...customConfigs ];

docs/ai_actions/extend_ai_actions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ This action is parameterized with the [RuntimeContext](../api/php_api/php_api_re
2323

2424
| Type of context | Type of options | Usage | Example |
2525
|---|---|---|---|
26-
| Runtime Context | Runtime options | Set additional parameters that are relevant to the specific action that is currently executed | Information about the language of the content that is being processed |
26+
| Runtime Context | Runtime options | Sets additional parameters that are relevant to the specific action that is currently executed | Information about the language of the content that is being processed |
2727
| Action Context | Action Type options | Sets additional parameters for the Action Type | Information about the expected response length |
28-
| Action Context | Action Handler options |Set additional parameters for the Action Handler | Information about the model, temperature, prompt, and max tokens allowed. |
29-
| Action Context | System options | Set additional information, not matching the other option collections | Information about the fallback locale |
28+
| Action Context | Action Handler options | Sets additional parameters for the Action Handler | Information about the model, temperature, prompt, and max tokens allowed |
29+
| Action Context | System options | Sets additional information, not matching the other option collections | Information about the fallback locale |
3030

3131
Both `ActionContext` and `RuntimeContext` are passed to the Action Handler (an object implementing the [ActionHandlerInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-Action-ActionHandlerInterface.html)) to execute the action. The Action Handler is responsible for combining all the options together, sending them to the AI service and returning an [ActionResponse](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionResponseInterface.html).
3232

@@ -65,9 +65,9 @@ To manage Action Configurations through the PHP API, you need to use the [Action
6565

6666
You can manage them using the following methods:
6767

68-
- Create them with `ActionConfigurationServiceInterface::createActionConfiguration()`, passing the [ActionConfigurationCreateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationCreateStruct.html).
69-
- Update them with `ActionConfigurationServiceInterface::updateActionConfiguration()`, passing the [ActionConfigurationUpdateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationUpdateStruct.html).
70-
- Delete them with `ActionConfigurationServiceInterface::deleteActionConfiguration()`, passing the [ActionConfigurationInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfigurationInterface.html).
68+
- Creating them with `ActionConfigurationServiceInterface::createActionConfiguration()` by passing the [ActionConfigurationCreateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationCreateStruct.html).
69+
- Updating them with `ActionConfigurationServiceInterface::updateActionConfiguration()` by passing the [ActionConfigurationUpdateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationUpdateStruct.html).
70+
- Deleting them with `ActionConfigurationServiceInterface::deleteActionConfiguration()` by passing the [ActionConfigurationInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfigurationInterface.html).
7171

7272
See the [AI Actions event reference](ai_action_events.md#action-configurations-management) for a list of events related to these operations.
7373

@@ -326,7 +326,7 @@ This template embeds the AI component, but only if a dedicated `transcript` fiel
326326

327327
And add it to the SiteAccess configuration for the `admin_group`:
328328
``` yaml
329-
[[= include_file('code_samples/ai_actions/config/packages/ibexa_admin_ui.yaml', 4, 5) =]][[= include_file('code_samples/ai_actions/config/packages/ibexa_admin_ui.yaml', 13, 15) =]][[= include_file('code_samples/ai_actions/config/packages/ibexa_admin_ui.yaml', 84) =]]
329+
[[= include_file('code_samples/ai_actions/config/packages/ibexa_admin_ui.yaml') =]]
330330
```
331331

332332
The configuration of the AI component takes the following parameters:
@@ -362,7 +362,7 @@ And include it into the back office using Webpack Encore.
362362
See [configuring assets from main project files](importing_assets_from_bundle.md#configuration-from-main-project-files) to learn more about this mechanism.
363363

364364
``` js
365-
[[= include_file('code_samples/ai_actions/webpack.config.js', 39, 47) =]]
365+
[[= include_file('code_samples/ai_actions/webpack.config.js') =]]
366366
```
367367

368368
Your custom Action Type is now fully integrated into the back office UI and can be used by the Editors.

0 commit comments

Comments
 (0)