Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Imamoglu committed Jan 31, 2025
1 parent 7118caa commit a24d632
Showing 1 changed file with 68 additions and 1 deletion.
69 changes: 68 additions & 1 deletion src/6.6/6.6.10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,77 @@ This minor release contains
* Changed `symfony/*` dependencies to `^7.2`

### Addition of MySQLInvalidatorStorage
* Added a new MySQL cache invalidator storage so you can take advantage of delayed cache invalidation without needing Redis (Redis is still preferred).
* Introduced `\Shopware\Core\Framework\Adapter\Cache\InvalidatorStorage\MySQLInvalidatorStorage` to collect and handle cache invalidations in MySQL as an atomic operation.
* This new storage option allows delayed cache invalidation without requiring Redis (though Redis remains the recommended solution).
* To switch to MySQL for delayed cache invalidation, update your configuration as follows:
```yaml
shopware:
cache:
invalidation:
delay: 1
delay_options:
storage: mysql
```
### [A11y-HTML] Offer HTML alternative to our pdf standard documents
* Added HTML alternative to our pdf standard documents
#### Core:
* Changed `Shopware\Core\Checkout\Document\Renderer\CreditNoteRenderer::render`
* to `setTemplate` for `RenderedDocument`
* to `setContext` for `RenderedDocument`
* to `setOrder` for `RenderedDocument`
* Changed `Shopware\Core\Checkout\Document\Renderer\DeliveryNoteRenderer::render`
* to `setTemplate` for `RenderedDocument`
* to `setContext` for `RenderedDocument`
* to `setOrder` for `RenderedDocument`
* Changed `Shopware\Core\Checkout\Document\Renderer\InvoiceRenderer::render`
* to `setTemplate` for `RenderedDocument`
* to `setContext` for `RenderedDocument`
* to `setOrder` for `RenderedDocument`
* Changed `Shopware\Core\Checkout\Document\Renderer\StornoRenderer::render`
* to `setTemplate` for `RenderedDocument`
* to `setContext` for `RenderedDocument`
* to `setOrder` for `RenderedDocument`
* Added parameters `template`, `context`, `order` in `Shopware\Core\Checkout\Document\Renderer\RenderedDocument`.
* Changed `Shopware\Core\Checkout\Document\SalesChannel\DocumentRoute::download` to implement authenticate for customer.
* Changed `Shopware\Core\Checkout\Document\Service\DocumentGenerator::readDocument` to load the media based on `fileType`.
* Changed `Shopware\Core\Checkout\Document\Service\DocumentGenerator::generate` to save `documentA11yMediaFileId` field.
* Changed `Shopware\Core\Checkout\Document\Service\DocumentGenerator::preview` to set the content based on `fileType`.
* Added `Shopware\Core\Checkout\Document\Service\DocumentFileRendererRegistry` to callable render by contentType.
* Added `Shopware\Core\Checkout\Document\Service\HtmlRenderer` to render the document file.
* Changed `Shopware\Core\Checkout\Document\Service\PdfRenderer` to use `documentTemplateRenderer` render the document.
* Changed `Shopware\Core\Checkout\Document\Controller\DocumentController::downloadDocument` to add the `fileType` configuration to the `DocumentGenerator`.
* Changed `src/Core/Framework/Resources/views/documents/base.html.twig` to implement accessibility for HTML documents.
* Added `Shopware\Core\Framework\Event\A11yRenderedDocumentAware` to provide the document ids to render the A11y document.
* Added `Shopware\Core\Content\Flow\Dispatching\Storer\A11yRenderedDocumentStorer` to store the document ids and documents to render the A11y documents.
* Changed `Shopware\Core\Checkout\Order\Event\OrderStateMachineStateChangeEvent` to implements `A11yRenderedDocumentAware`

#### Administration :

* Changed method `getDocumentPreview` in `document.api.service` service to add the `fileType` like <html or pdf> attributes.
* Changed `sw-order-document-card`.
* `onPreview` method to add new `fileType` attribute.
* `openDocument` method to add new `fileType` attribute.
* `downloadDocument` method to add new `fileType` attribute.
* `getDocumentColumns` computed to add new column `fileTypes`.
* Added method `availableFormatsFilter` in `sw-order-document-card` component to filter the available formats.
* Added block `sw_order_document_card_grid_column_avaiable_formats` in `sw-order-document-card.html.twig` to show the available formats column.
* Changed method `onPreview` in `sw-order-document-settings-modal` component to add new `fileType` attribute.
* Changed method `onPreview` in `sw-order-document-settings-credit-note-modal` component to add new `fileType` attribute.
* Changed method `onPreview` in `sw-order-document-settings-delivery-note-modal` component to add new `fileType` attribute.
* Changed method `onPreview` in `sw-order-document-settings-invoice-modal` component to add new `fileType` attribute.
* Added block `sw_order_document_settings_modal_form_document_footer_preview` in `sw-order-document-settings-modal.html.twig` to show the preview HTML button.
* Added method `loadTheLinksForA11y` in `sw-order-send-document-modal` component to load the HTML links for a11y.
* Changed method `onSendDocument` in `sw-order-send-document-modal` component to add `a11yDocuments` attribute for `mailService.sendMailTemplate`.
* Changed data `generalFormFields` in `sw-settings-document-detail` component to add `config` `fileTypes` to show formats like <pdf, html>.
* Added method `onRemoveDocumentType` in `sw-settings-document-detail` component to remove item with `sw-multi-select` component.
* Added method `onAddDocumentType` in `sw-settings-document-detail` component to add item with `sw-multi-select` component.
* Added block `sw_settings_document_detail_content_form_field_renderer_multi_select` in `sw-settings-document-detail.html.twig` to show the multi select component.

#### Storefront :

* Changed block `page_account_order_document_item_detail_file_name` in `src/Storefront/Resources/views/storefront/page/account/order-history/order-detail-document-item.html.twig` to add the link to render `html` document.

### Introduce global template data for language and navigation
* Added global template data for language and navigation
Expand Down

0 comments on commit a24d632

Please sign in to comment.