21 Commits

Author SHA1 Message Date
37227a3aeb Add attachments to workflow 2025-02-03 21:15:00 +00:00
16fe07cce7 More automatic eslint fixes, update baseline and eslint docs 2024-12-11 11:32:29 +01:00
a6aa2a81c2 Resolve merge with master 2024-12-11 10:46:06 +01:00
aa0785fc71 Apply prettier rules 2024-11-14 18:47:38 +01:00
f05c25853c Fix of errors: automatic and some manual 2024-11-04 19:56:03 +01:00
118ae291e2
Add direct download link feature with new button implementation
Introduce a new feature that allows for direct download links by integrating TempUrlGeneratorInterface. Added new DOWNLOAD_LINK_ONLY group and corresponding logic to generate download links in StoredObjectNormalizer. Implement a new Twig filter and Vue component for rendering the download button. Updated tests to cover the new functionality.
2024-10-08 15:15:38 +02:00
47f575de92
Enhance version restoration and download features
Introduce a version restoration button and logic to track restored versions throughout the UI. Update download buttons to display action strings conditionally and implement toast notifications for version restoration.
2024-09-19 13:42:23 +02:00
3d49c959e0
Update DropFile to handle object versioning 2024-09-03 15:42:04 +02:00
775535e683
refactor file drop widget 2024-05-28 11:25:59 +02:00
fca929f56f
Dav: add UI to edit document 2024-05-23 17:00:46 +02:00
3db5b62d57
Feature: [UI] use download button group in calendar list 2023-02-28 22:37:46 +01:00
a16244a3f5 Feature: [docgen] generate documents in an async queue
The documents are now generated in a queue, using symfony messenger. This queue should be configured:

```yaml
# app/config/messenger.yaml
framework:
    messenger:
        # reset services after consuming messages
        # reset_on_message: true

        failure_transport: failed

        transports:
            # https://symfony.com/doc/current/messenger.html#transport-configuration
            async: '%env(MESSENGER_TRANSPORT_DSN)%'
            priority:
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
            failed: 'doctrine://default?queue_name=failed'

        routing:
            # ... other messages
            'Chill\DocGeneratorBundle\Service\Messenger\RequestGenerationMessage': priority
```

`StoredObject`s now have additionnal properties:

* status (pending, failure, ready (by default) ), which explain if the document is generated;
* a generationTrialCounter, which is incremented on each generation trial, which prevent each generation more than 5 times;

The generator computation is moved from the `DocGenTemplateController` to a `Generator` (implementing `GeneratorInterface`. 

There are new methods to `Context` which allow to normalize/denormalize context data to/from a messenger's `Message`.
2023-02-28 15:25:47 +00:00
9f5b11e6cc Feature: allow to convert to PDF from Chill and group action button on document
BREAKING CHANGE: avoid using the macro for download button. To keep the UI clean, use always the new "group of action buttons".
2023-01-31 16:30:19 +00:00
a9bc98738e fix weird bug with ts import 2022-06-27 14:51:48 +02:00
nobohan
1beae4d713 AccompanyingCourseWorkEdit: download existing documents 2022-03-14 14:42:04 +01:00
nobohan
5f71b46bb7 tentative to add asyncupload into modal 2022-02-23 17:21:35 +01:00
6501a0148e fix downloading document 2021-12-15 22:14:20 +01:00
2245f83631 generate document with relatorio: config and driver 2021-12-02 17:00:09 +01:00
a740ad29ea replace sc-button + bt- in js and php files 2021-07-08 15:56:00 +02:00
3ca5018e45 fix import of dropzone in uploader 2021-03-25 22:01:17 +01:00
eaa0ad925f fix folder name 2021-03-18 13:37:13 +01:00