Skip to content

Releases: excelwebzone/symfony-admin-bundle

v2.1.60

14 Feb 20:33

Choose a tag to compare

refactor(reports): render table data-* attributes from config

- Consolidates report table `data-*` attributes into a `reportConfig` variable.
- Merges explicit keys (endpoint, totals, card-view) with `reportData`.
- Replaces repeated conditional attribute output with a loop emitting `data-<name>`
  attributes and escaping values via `html_attr`.
- Improves readability and simplifies extending/overriding attributes via `reportData`.

v2.1.59

15 Jan 23:19

Choose a tag to compare

feat(twig): enhance table column layout customization

- Adds `TableLayoutExtension` to normalize user-saved and default column layouts.
- Updates `macros.html.twig` to robustly merge user settings with defaults using regex extraction and normalization.
- Registers the new extension in `services.yaml`.
- Exposes `preg_extract_matches` in `StringExtension` for regex parsing in Twig.
- Improves robustness and backward compatibility of column layout handling.

v2.1.58

03 Dec 17:56

Choose a tag to compare

fix(repo): skip IN/NOT IN when values are empty

- Adds guards in AbstractRepository to only append IN/NOT IN when values are non-empty.
- Prevents invalid or redundant query clauses from empty arrays/collections.
- Ensures correct filtering behavior and leaner SQL.

v2.1.57

05 Nov 20:14

Choose a tag to compare

feat(report-export): enforce fixed row height in XLSX

- Adds `forceXlsxRowHeights()` to set a fixed row height (default 15pt) for all rows in every sheet of the exported XLSX.
- Ensures consistent row heights even when cell content contains line breaks.

v2.1.56

04 Nov 19:11

Choose a tag to compare

fix(report-export): set default page to 1 in command

- Updates the default value for the 'page' option to 1 instead of null in `ReportExportCommand`.
- Ensures pagination starts from the first page if no page is specified.

v2.1.55

03 Nov 21:59

Choose a tag to compare

Disable gzip and chmod by default in CSV export

Changed the default behavior of ExportData::closeCsvFile to not gzip or chmod CSV files. Updated related comments and usages in ReportExportCommand and BulkExportTrait to reflect this change.

v2.1.54

03 Nov 21:25

Choose a tag to compare

fix(report-export): pass file handle to closeCsvFile

- Replaces `$csvFilePath` with `$csvFile` when calling `ExportData::closeCsvFile`.
- Ensures the correct file handle is finalized during report export.

v2.1.53

03 Nov 21:05

Choose a tag to compare

perf(report-export): enable gzip compression by default for CSV exports

- Changes default behavior of `ExportData::closeCsvFile` to gzip CSV files and remove the original after compression.
- Updates usages in `ReportExportCommand` and `BulkExportTrait` to reflect this change.
- Clarifies comments to indicate the new default behavior.

v2.1.52

02 Nov 00:27

Choose a tag to compare

refactor(command-runner): simplify command argument string construction

- Refactors logic for building the command parameters string.
- Removes unnecessary escaping.
- Streamlines handling of argument values for better readability and maintainability.

v2.1.51

01 Nov 21:15

Choose a tag to compare

fix(report-export): sanitize & normalize CSV export data

- Adds UTF-8 BOM for Excel compatibility.
- Sanitizes output rows to prevent CSV/Excel formula injection.
- Normalizes encoding.
- Strips control characters.
- Standardizes newlines.
- Improves safety and compatibility of exported CSV files.