Skip to content

Commit e5ab4f2

Browse files
mnoconjulitafalconduszaadriendupuisdabrtSteveb-p
authored
Release 5.0.7 (#3134)
* Raptor integration - feature branch (#3121) * first batch added * content added * recommendations twig page added * updates * content moved, structure updated * guide added * guide content * fixes, content moved * fixes after review * Raptor integration - feature branch: fix links (#3123) * Add preview of linked PHP API Ref entries * Fix few links * new batch of fixes * updates * new blocks added * name fix * fix * new page added to cards on raptor_connector landing page * fixes - first batch * new fixes * PHP & JS CS Fixes * new fixes * block names fixed * code fixed * code fixed * links fixed * card fixed * IBX-11571: Rendering recommendations outside of Page Builder documented in Dev-doc (#3127) * Update JWT (#3108) * development_security.md: Update JWT firewalls ibexa/recipes-dev#122 ibexa/recipes-dev#124 ibexa/recipes-dev#125 * rest_api_authentication.md: XML isn't supported for JWT ibexa/rest#101 * render doc added * updates * img added, content added * mkdocs * fixes after rev * fix * fixes --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * php fix * composer.json fix - connector-raptor added * Raptor integration - feature branch: Fix PHP (#3130) * EventData.php: Wrap into a class * Event*.php: Format * language fixes * Raptor integration: Rework PHP (#3131) * tracking_php_api.md: Detail EventMapper, EventType, EventContext * tracking_php_api.md: caution about buy event --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * server description updated --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: julitafalcondusza <julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Added translation-related Twig Component groups (#3091) * Doc for Quable (#3085) * Renaming - part one * Current status * Install doc ready? * Fixed build * Configuration doc * Removed Quable other * Added product guide skeleton * Guide * Current status * Customize product embeds * Added missing search doc * Attribute rendering * Provided a list of attributes * Fixed mkdocs build * Self review * Added product code limitatin * Fix typos * Removed asset mentions * Self review * Selfreview done * Apply suggestion from @mnocon * Fixed table rendering * Added Quable API * Removed Quable client package * Adrien's review * After review * Apply suggestions from code review Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Review changes * Update docs/product_catalog/quable/install_quable.md Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Update docs/product_catalog/add_remote_pim_support.md Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Update docs/product_catalog/customize_product_embed_templates.md Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Manual changes * Apply suggestions from code review Co-authored-by: Paweł Niedzielski <pawel.tadeusz.niedzielski@gmail.com> * Manual review feedback * Added doc for language configuration (#3128) * Added doc for language configuration * Apply suggestion from @mnocon --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Paweł Niedzielski <pawel.tadeusz.niedzielski@gmail.com> * Added doc for TaxonomyNoEntries & TaxonomySubtree (#3082) * Added doc for TaxonomyNoEntries * Added doc for Taxonomy subtree * Fixed CS * Apply suggestions from code review Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Apply suggestion from @mnocon * Rebuild --------- Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * IBX-11485: Update doc for Symfony 7.4 (#3098) * Update doc for Symfny 7.4 * Added bundle entry * Apply suggestion from @mnocon * Added var/share mention * Review feedback * Apply suggestions from code review Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Product tour (#3065) * Product tour doc skeleton * Review feedback * Vale * Review feedback - part 2 * Added doc for the new config * Review feedback * Adjusted includes * Wording * Specified button name * Removed TODO * Help Center and Product tour enabled by default * Added images and interactive demo * Apply suggestions from code review Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Manual changes * [TMP] Fix build * Fixed build * Reworded --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Documented try_catch (and sql: execute) in migrations (#3060) * Added doc for try_catch and sql in migrations * Vale suggestions * Vale suggestion * Added missing code block * Review feedback * Apply suggestions from code review Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> * Improved example and clarified migration and migratoin step usage * Removed RN enties --------- Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * IBX-10998: Document Gemini connector (#3025) * IBX-10998: Document Gemini connector * Update docs/ai_actions/extend_ai_actions.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Implement reviewer comments * Apply suggestions from code review Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * Add RN entry * IBX-11401: Describe Gemini embeddings provider (#3120) * IBX-11401: Describe Gemini embeddings provider * Remove the RN entry * Fied broken link * Fixed event page name --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * Added doc for additional parameter for ibexa_render (#3043) * Added doc for additional parameter for ibexa_render * Added update sections * Update docs/update_and_migration/from_5.0/update_from_5.0.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Reworked RN drafts * Update docs/release_notes/ibexa_dxp_v4.6.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Removed RN entries --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Product tour: Deptract+Rector fixes (#3136) * deptrac.baseline.yaml: Ignore NotificationScenarioSubscriber * NotificationScenarioSubscriber: Apply Rector suggestions * customize_product_tour.md: Update hl_lines * updated_at_criterion.md: Rm EOF blank lines * Release 5.0.7 follow up (#3137) * Added homepage mention * Applied update doc suggestion * Reworded Gemini connector * Fixed link? * search_api.md: Minor fixes * Raptor Add/Update buy event (#3141) * tracking_php_api.md: Rm caution w/ EventType::BUY * recommendations_twig_functions: Add buy event, sort events * tracking_php_api.md: More PHP API Ref links in mapping intro --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * 5.0.7 update (#3143) * Added DB update scripts * Mention that ibexa:setup is deprecated * Reordered * Reworded * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Release 5.0.7 fixes (#3140) * Highlight and wording fixes * Fixes * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * Extracted to separate yaml file * Apply suggestion from @adriendupuis Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Release notes for v5.0.7 and v4.6.29 (#3133) * Init next release notes w/ postponed * mkdocs.yml: Increment latest_tag_* * Symfony 7.4 #3098 * Apply suggestion from @adriendupuis * Revert "Apply suggestion from @adriendupuis" This reverts commit 519103f. * ibexa_dxp_v5.0.md: Raptor connector LTS Update * ibexa_dxp_v5.0.md: Raptor connector LTS Update (Format) * Apply suggestion from vale * Apply suggestions from @julitafalcondusza Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * ibexa_dxp_v5.0.md: translation components, AI in PB * ibexa_dxp_v5.0.md: Narrowed link for Raptor connector * ibexa_dxp_v5.0.md: Sort editions and add Quable * ibexa_dxp_vX.Y.md: Taxonomy search criteria * ibexa_dxp_v4.6.md: Taxonomy search criteria: fix links * Comment include 'snippets/release_XY.md' * Use absolute links in snippets/release_XY.md * Add Quable to ibexa_dxp_v4.6.md * Add Integrated help's Product tour * Raptor connector isn't an LTS Update * Raptor connector isn't an LTS Update * Quable is an add-on * ibexa_dxp_v5.0.md: REST API request body examples * ibexa_dxp_v5.0.md: PHP API * ibexa_dxp_v5.0.md: PHP API * Quable PIM isn't for Commerce * Move Quable PIM up, rm badges * ibexa_dxp_v5.0.md: Fix link * Quable isn't for 4.6 * Add PHP API draft to release notes * Apply suggestion from @dabrt * remove blur, set versions and date * uncomment include_file * Apply suggestions from code review Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> * resync ibexa_dxp_v5.0.md and ibexa_dxp_v4.6.md * Apply suggestions from code review Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * resync ibexa_dxp_v5.0.md and ibexa_dxp_v4.6.md * Move AI Actions in blocks upper * TaxonomySubtree isn't new to these release * Update the next release date --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Made Date and time/Symbol attribute links version aware * Update docs/release_notes/ibexa_dxp_v4.6.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Update docs/release_notes/ibexa_dxp_v4.6.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Fixed broken link * Added PHP API links * Added security note --------- Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: julitafalcondusza <julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Paweł Niedzielski <pawel.tadeusz.niedzielski@gmail.com>
1 parent 8548070 commit e5ab4f2

153 files changed

Lines changed: 3651 additions & 283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ibexa_connector_gemini:
2+
text_to_text:
3+
models:
4+
gemini-pro-latest:
5+
label: 'Gemini Pro Latest'
6+
max_tokens: 4096
7+
gemini-flash-latest:
8+
label: 'Gemini Flash Latest'
9+
max_tokens: 4096
10+
default_model: gemini-pro-latest
11+
default_max_tokens: 4096 # Must be <= the model’s max_tokens
12+
default_temperature: 0.8
13+
image_to_text:
14+
models:
15+
gemini-flash-latest:
16+
label: 'Gemini Flash Latest'
17+
max_tokens: 4096
18+
default_model: gemini-flash-latest
19+
default_max_tokens: 4096
20+
default_temperature: 1.0
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
ibexa:
2+
system:
3+
admin_group:
4+
product_tour:
5+
my_general_scenario:
6+
type: 'general'
7+
scenario_title_translation_key: tour.my_general_scenario.title
8+
steps:
9+
welcome_step:
10+
step_title_translation_key: title
11+
background_image: /public/img/background.jpg
12+
blocks:
13+
- type: title
14+
params:
15+
text_translation_key: subtitle
16+
- type: text
17+
params:
18+
text_translation_key: tour.step.description
19+
- type: link
20+
params:
21+
url: https://doc.ibexa.co
22+
text_translation_key: tour.link.documentation
23+
- type: image
24+
params:
25+
src: /public/img/diagram.jpg
26+
alt_translation_key: tour.image.alt
27+
- type: video
28+
params:
29+
# 'Big Buck Bunny' licensed under CC 3.0 by the Blender foundation. Hosted by archive.org
30+
url: https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4
31+
- type: list
32+
params:
33+
title_translation_key: tour.list.title
34+
items_translation_keys:
35+
- tour.list.item1
36+
- tour.list.item2
37+
- tour.list.item3
38+
- type: twig_template
39+
params:
40+
template: custom_template.html.twig
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
ibexa:
2+
system:
3+
admin_group:
4+
product_tour:
5+
targetable_dashboard_scenario:
6+
type: 'targetable'
7+
scenario_title_translation_key: tour.targetable_dashboard_scenario.title
8+
steps:
9+
dashboard_options:
10+
step_title_translation_key: Open Dashboard options
11+
target: ".ibexa-db-header__more"
12+
# No interaction_mode specified or the value is set to null
13+
blocks:
14+
- type: text
15+
params:
16+
text_translation_key: Learn how to customize the blocks displayed on your dashboard
17+
open_dashboard_options:
18+
step_title_translation_key: Open Dashboard options
19+
target: '.ibexa-db-header__more'
20+
interaction_mode: clickable
21+
blocks:
22+
- type: text
23+
params:
24+
text_translation_key: Click here to customize your dashboard
25+
customize_dashboard:
26+
step_title_translation_key: Customize Dashboard
27+
target: '.ibexa-db-actions-popup-menu'
28+
interaction_mode: clickable
29+
blocks:
30+
- type: text
31+
params:
32+
text_translation_key: Choose "Customize dashboard"
33+
drag_and_drop_step:
34+
step_title_translation_key: Drag-and-drop blocks
35+
target: ".c-pb-toolbox-blocks-group__blocks > * .c-pb-toolbox-block__content:first-of-type"
36+
interaction_mode: draggable
37+
blocks:
38+
- type: text
39+
params:
40+
text_translation_key: Drag-and-drop blocks from the sidebar to the dashboard to customize it
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\EventSubscriber;
6+
7+
use Ibexa\Contracts\Core\Repository\NotificationService;
8+
use Ibexa\Contracts\IntegratedHelp\Event\RenderProductTourScenarioEvent;
9+
use Ibexa\IntegratedHelp\ProductTour\Block\LinkBlock;
10+
use Ibexa\IntegratedHelp\ProductTour\Block\TextBlock;
11+
use Ibexa\IntegratedHelp\ProductTour\ProductTourStep;
12+
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
13+
14+
final readonly class NotificationScenarioSubscriber implements EventSubscriberInterface
15+
{
16+
public function __construct(private NotificationService $notificationService)
17+
{
18+
}
19+
20+
public static function getSubscribedEvents(): array
21+
{
22+
return [
23+
RenderProductTourScenarioEvent::class => ['onRenderScenario'],
24+
];
25+
}
26+
27+
public function onRenderScenario(RenderProductTourScenarioEvent $event): void
28+
{
29+
$scenario = $event->getScenario();
30+
$steps = $scenario->getSteps();
31+
32+
if ($scenario->getIdentifier() !== 'notifications') {
33+
return;
34+
}
35+
36+
foreach ($steps as $step) {
37+
$scenario->removeStep($step);
38+
}
39+
40+
if (!$this->hasUnreadNotifications()) {
41+
return;
42+
}
43+
44+
$customStep = new ProductTourStep();
45+
$customStep->setIdentifier('custom_step_identifier');
46+
$customStep->setInteractionMode('clickable');
47+
$customStep->setTarget('.ibexa-header-user-menu__notifications-toggler');
48+
$customStep->setTitle('You have unread notifications');
49+
$customStep->addBlock(new TextBlock('Click here to preview your unread notifications.'));
50+
$customStep->addBlock(new LinkBlock(
51+
'https://doc.ibexa.co/projects/userguide/en/latest/getting_started/notifications/',
52+
'Learn more about notifications'
53+
));
54+
55+
$scenario->addStep($customStep);
56+
}
57+
58+
private function hasUnreadNotifications(): bool
59+
{
60+
return $this->notificationService->getPendingNotificationCount() > 0;
61+
}
62+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php declare(strict_types=1);
2+
3+
use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
4+
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductCategorySubtree;
5+
6+
$taxonomyEntryId = 42;
7+
$criteria = new ProductCategorySubtree($taxonomyEntryId);
8+
9+
/** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */
10+
$productQuery = new ProductQuery();
11+
$productQuery->setQuery($criteria);
12+
$results = $productService->findProducts($productQuery);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php declare(strict_types=1);
2+
3+
use DateTimeImmutable;
4+
use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
5+
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\Operator;
6+
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\UpdatedAt;
7+
8+
$criteria = new UpdatedAt(
9+
new DateTimeImmutable('2023-03-01'),
10+
Operator::GTE,
11+
);
12+
13+
/** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */
14+
$productQuery = new ProductQuery();
15+
$productQuery->setQuery($criteria);
16+
$results = $productService->findProducts($productQuery);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php declare(strict_types=1);
2+
3+
use DateTimeImmutable;
4+
use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
5+
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\UpdatedAtRange;
6+
7+
$criteria = new UpdatedAtRange(
8+
new DateTimeImmutable('2020-07-10T00:00:00+00:00'),
9+
new DateTimeImmutable('2023-07-12T00:00:00+00:00'),
10+
);
11+
12+
/** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */
13+
$productQuery = new ProductQuery();
14+
$productQuery->setQuery($criteria);
15+
$results = $productService->findProducts($productQuery);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-
2+
type: sql
3+
mode: execute
4+
query:
5+
-
6+
driver: mysql
7+
sql: 'INSERT INTO test_table (test_value) VALUES ("foo");'
8+
-
9+
driver: sqlite
10+
sql: 'INSERT INTO test_table (test_value) VALUES ("foo");'
11+
-
12+
driver: postgresql
13+
sql: "INSERT INTO test_table (test_value) VALUES ('foo');"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-
2+
type: try_catch
3+
mode: execute
4+
allowed_exceptions:
5+
- Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
6+
stop_after_first_exception: true
7+
steps:
8+
-
9+
type: language
10+
mode: create
11+
metadata:
12+
languageCode: ger-DE
13+
name: German
14+
enabled: true

code_samples/pim/Symbol/Format/Checksum/LuhnChecksum.php renamed to code_samples/product_catalog/Symbol/Format/Checksum/LuhnChecksum.php

File renamed without changes.

0 commit comments

Comments
 (0)