| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Changelog; |
| 4 |
|
| 5 |
class ChangelogService |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get changelog data with translated strings. |
| 9 |
* |
| 10 |
* @return array{ |
| 11 |
* version: string, |
| 12 |
* release_date: string, |
| 13 |
* features: array<array{text: string}>, |
| 14 |
* improvements: array<array{text: string}>, |
| 15 |
* bugfixes: array<array{text: string}> |
| 16 |
* } |
| 17 |
*/ |
| 18 |
public static function getChangelogData(): array |
| 19 |
{ |
| 20 |
$changelogData = [ |
| 21 |
'version' => IVYFORMS_VERSION, |
| 22 |
'release_date' => '2026-08-21', |
| 23 |
'features' => [ |
| 24 |
['text' => __('Added AI form generation from a text prompt.', 'ivyforms')], |
| 25 |
[ |
| 26 |
'text' => __( |
| 27 |
'Added import from WS Form and Fluent Forms, including conditional logic.', |
| 28 |
'ivyforms' |
| 29 |
), |
| 30 |
], |
| 31 |
[ |
| 32 |
'text' => __( |
| 33 |
'Aligned MCP AI assistant capabilities with user permissions ' |
| 34 |
. 'and enabled the toggle by default.', |
| 35 |
'ivyforms' |
| 36 |
), |
| 37 |
], |
| 38 |
['text' => __('Added usage tracking for paid users.', 'ivyforms')], |
| 39 |
], |
| 40 |
'improvements' => [ |
| 41 |
['text' => __('Showed Field ID on the Slider field General tab.', 'ivyforms')], |
| 42 |
['text' => __('Aligned entry details field order with the form layout.', 'ivyforms')], |
| 43 |
[ |
| 44 |
'text' => __( |
| 45 |
'Prevented the add-field panel from being cut off when the license-inactive notice is shown.', |
| 46 |
'ivyforms' |
| 47 |
), |
| 48 |
], |
| 49 |
['text' => __('Aligned columns in the Settings permissions table.', 'ivyforms')], |
| 50 |
], |
| 51 |
'bugfixes' => [ |
| 52 |
['text' => __('Fixed IvyEditor HTML component issues.', 'ivyforms')], |
| 53 |
['text' => __('Fixed padding in the form selection field.', 'ivyforms')], |
| 54 |
[ |
| 55 |
'text' => __( |
| 56 |
'Fixed template card images not visible in Safari on macOS.', |
| 57 |
'ivyforms' |
| 58 |
), |
| 59 |
], |
| 60 |
[ |
| 61 |
'text' => __( |
| 62 |
'Fixed the payment fields "Show layouts" control showing next to CSS Classes.', |
| 63 |
'ivyforms' |
| 64 |
), |
| 65 |
], |
| 66 |
[ |
| 67 |
'text' => __( |
| 68 |
'Hardened MCP form create, settings, and add-field helpers used with Angie AI.', |
| 69 |
'ivyforms' |
| 70 |
), |
| 71 |
], |
| 72 |
], |
| 73 |
]; |
| 74 |
|
| 75 |
/** |
| 76 |
* Filter changelog data to allow Pro plugin to add its own changelog entries |
| 77 |
* |
| 78 |
* @param array $changelogData The changelog data array |
| 79 |
* @return array Modified changelog data |
| 80 |
*/ |
| 81 |
return apply_filters('ivyforms/changelog/get_data', $changelogData); |
| 82 |
} |
| 83 |
} |
| 84 |
|