Skip to content

Commit

Permalink
Release 4.3.0 (#1108)
Browse files Browse the repository at this point in the history
* Do not remove post meta when action is disabled, #1053

* Update cross-spawn fixing a security warning (on dev environments only)

* Update node-fetch addressing a security (on dev environments only)

* Update micromatch addressing a security issue (on dev environment only(

* Update cookie addressing a security issue (on dev environmrnts)

* Prevent DOM text reinterpreted as HTML

* Update the changelog

* Move notification settings to a specific tab, #190

* Allow users to change metabox name, #227

* Update the changelog

* Fix error when a trigger node type is not found

* Fix php warning: PHP Deprecated:  ltrim(): Passing null to parameter #1

PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/andersonmartins/LocalSites/future-free/app/public/wp-includes/formatting.php on line 4467

* Update the changelog

* Fix DB error when deleting orphan scheduled steps, #1060

* Fix warning about method get_data not existent

* Update minified js scritps

* Add global.execution_id variable for the workflow execution, #1061

* 704 export import (#1062)

* Implement workflow exporting feature

* Add settings to the exported backup

* Split the backup window in a component

* Fix error on default tab

* Fix file upload

* Adjust the notices

* Adjust UI and create new component

* Improve code splitting tab into new components

* Rename folders

* Implement export and import for general and notifications

* Allow to export and import display settings

* Allow to import advanced settings

* Allow to import post types settings

* Fix export and import actions to workflow screenshots

* Fix displaced labels, #1057

* Translate the user roles in the settings page, #1050

* Add * to indicate a required field on post query, #974

* Update language files

* Update js files

* Bump version to 4.2.0-beta.1

* Update the changelgo

* Change backup page name to Export / Import

* Remove extra chars in backup screen, #1063

* Improve error handling when importing a backup file

* Fix error on importing JSON missing some data, #1065

* Add setting to enable/disable the screenshot feature, #1066

* Add custom data field to Ray Debug step, #1067

* Replace input field with text area on log message field, #1068

* Add support to metadata in the variables resolvers, #1069, #939
Add more space for subject and custom email address on send email step.

* Set default value to the Email Recipient on Send Email step, #1071

* Add "meta" property on variables schema

* Add site ID to the site data type schema

* Adjust hooks on settings to implemenet export/import on Pro

* Add general filters and actions for export/import

* Pass the selected settings to the filter

* Update the changelog

* Bump version to 4.2.0-beta.2

* Update the js files

* Update language files

* Make sure to reply only json in the export/import api

* Code cleanup

* Code cleanup

* Deprecate functions not used and use proper facades

* Fix error when date or time format are empty, #212

* Fix empty label when custom title and label are empty, #1075

* Fix size of label in the block editor, #1076

* Update the changelog

* Implement Post is Published trigger, #944

* Implement basic trigger for Post Status Changes, #945

* Implement basic trigger for Post is Scheduled, #946

* Basic implementation of the variables selector, or expression builder

* Add label and description to the variables list

* Make adjustments to the variables selector

* Improve style on expression editor

* Improve button to edit the expression

* Add actual variables list to the expression editor

* Fix the display of variables descriptions

* Use the expression builder in the debug data field on Ray Debug

* Replace simple setting fields with the new expression builder

* Improve expression builder code

* Minor improvement to the steps in the graph

* Fix double click

* Some minor improvements

* Bump version to 4.3.0-beta.1

* Fix color to indicate the step data flow panel as dev panel

* Update the changelog

* Add better support to metadata in the expression builder

* Add the item id to the description message in the expression builder

* Reorganize the code

* Improve visual of variables selector

* Display the variable ID when showing its description

* Refactor methods handleClick to onClick

* Fix the selection of items in the variables selector.
Fix the update in the path, removing all items that come after the
current selected column.

* Refactor the list of variables renaming properties
Rename "id" and "name" to "name" and "label" respectively.
Since we don't list the variables into options list anymore, we don't
need to convert to a format compatible to the tree component.

* Refactor the functions that get expanded variables

* Stop exporting function getVariablesLIst

* Improve listing child properties on variables that are objects, #947, #976

* Disable autocomplete in the expression builder
Disabling it until we are able to implement the autocompleter based on
the current context. The event onCursorChange seems to not work right
now.

* Add default message when no variable is hovered
This avoids to make the popover panel to grow when hovering a variable
for the first time.

* Refactor the expression builder to a modal window instead of a popover

* Improve style of the expression editor

* Fix user meta resolution in the workflow

* Remove arrow and add new Status column, #970

* Update the changelog

* Improve UI of the Debug Ray step settings

* Refactor the query builder using the expression builder

* Implement single variable mode on the expression builder

* Improve query builder in the conditional step

* Update the changelog

* Remove prefix from post and user data type properties

* Remove a blank line in the code

* Implement basic step for metadata changes, #1059

* Fix output of the metadata chagnes trigger, #1059

* Move the changes to the correct file :), #1059

* Update the changelog

* Update js files

* Bump version to 4.3.0-beta.3

* Clarify the description of branch output in the conditional step

* Improve step settings field description

* Move metadata settings to specific panel in the meta changed step

* Add the oldMetaValue to the output of Post Meta Changed trigger

* Rename the new meta value output

* Add new output to the meta changed step

* Update field description

* Adjust the max size of the conditional modal to 600px

* Auto focus the expression builder and close it when single variable mode

* Fix property names of post and user removing prefix
Add post_name property for posts

* Fix the permalink in the post before on Post Updated trigger

* Ignore long lines on phpcs

* Add the basic action to add post meta, #732

* Fix the "Is single" setting on the meta add action

* Update the changelog

* Add the basic action to delete post meta, #732

* Add new $metaValue param to the deleteMeta method

* Add a stop command to the dev-workspace environment

* Add new action to update post meta, #732

* Add manually enabled via checkbox support to bulk-edit, #942

* Implement save workflow hotkey, #1084

* Improve fields description, #1081

* Update the changelog

* Fix post field values, #1079

* Fix the validation message for the recipient field in the Send Email, #1078

* Fix default date format in the shortcode

* Add new display setting to set wrapper and class to the shortcode, #203

* Only display the bulk sync option if enabled, #622

* Pass the post type to the new filter, #622

* Update language files, #1077

* Add explanation text to the meta keys field, #1080

* Minor visual improvements to the UI

* Fix loading a workflow that doesn't have a specific step type, #883

* Fix the first save to transit from auto-saved to draft, #1086

* Replace deprecated jQuery `.click` method

* Remove focus from the toolbar button when node is selected, #1083

* Add docs about how to register new data type

* Improve style of the selected items in the variables list

* Remove the steps property from the workflow data type schema and fix meta

* Add future action variable to post variables, #948

* Fix the custom date source

* 1090 edit labels (#1091)

* Remove not used function

* Refactor part of the workflow store and add basic node details panel

* Refactor the way we handle editedWorkflow

* Update the changelog

* Refactor the keyboard shortcuts definition

* Fix the edit behavior on workflow summary panel

* Fix top margin of the expression editor

* Fix the cronstep when instantiating a post resolver

* Bump version number to 4.3.0-beta.4

* Update .pot files

* Update minified js files

* Update changelog

* Bump version to 4.3.0-beta.5

* Bump nanoid from 3.3.7 to 3.3.8 (#1082)

Bumps [nanoid](/~https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](/~https://github.com/ai/nanoid/releases)
- [Changelog](/~https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anderson Grüdtner Martins <anderson@publishpress.com>

* Bump webpack from 5.92.0 to 5.94.0 (#925)

Bumps [webpack](/~https://github.com/webpack/webpack) from 5.92.0 to 5.94.0.
- [Release notes](/~https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.92.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anderson Grüdtner Martins <anderson@publishpress.com>

* Fix optional param declared before required param, #1094

* Fix the auto-layout algorithm, #1102

* Update js scripts

* Improve text for variables modal

* Update the changelog

* Improve the text on expression builder for single variable mode

* Update js scripts

* Update language files

* Bump version to 4.3.0

* Update the changelog

* Bump copyright year to 2025

* Update the changelog in the readme.txt file

* Fix call to deprecated method `next`, #1107

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
andergmartins and dependabot[bot] authored Jan 8, 2025
1 parent 3aab0cb commit e64a3bc
Show file tree
Hide file tree
Showing 303 changed files with 125,006 additions and 46,821 deletions.
4 changes: 3 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
<exclude-pattern>/cache/*</exclude-pattern>
<exclude-pattern>/.cache/*</exclude-pattern>

<rule ref="PSR12"/>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
<rule ref="WordPressVIPMinimum">
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date" />
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
Expand Down
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,69 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [4.3.0] - 08 Jan, 2025

### Added

- Add new variables selector and an expression builder (Issue #976).
- Add support to metadata in the variables resolvers and post type variables (Issue #1069, #939).
- Add the site ID to the site data type schema.
- Add the post author property to the post data type schema in the workflow editor (Issue #947).
- Add the post slug property to the post data type schema in the workflow editor.
- Add new trigger: Post is Published - PRO (Issue #944).
- Add new trigger: Post Status Changes - PRO (Issue #945).
- Add new trigger: Post is Scheduled - PRO (Issue #946).
- Add new trigger: Post Meta Changed - PRO (Issue #1059).
- Add new action: Post Meta Add - PRO (Issue #732).
- Add new action: Post Meta Delete - PRO (Issue #732).
- Add new action: Post Meta Update - PRO (Issue #732).
- Add the option to change manually enabled workflows in the bulk edit screen (Issue #942).
- Add the "Save as current status" shortcut to the workflow editor (CTRL/CMD + S) (Issue #1084).
- Add new display settings to customize the shortcode output (Issue #203).
- Add new step setting field to customize the step label in the workflow editor (Issue #1090).
- Add Future Action data support in the workflow editor, allowing to reference future actions in expressions (Issue #948).

### Changed

- Replace text fields and input/variables selectors on step settings with the new expression builder (Issue #976).
- Changed the border of selected steps to dashed line.
- Moved the panel "Step Data Flow" to the developer mode.
- Removed the arrow indicator from the workflow title and added a new Status column to the workflows list screen (Issue #970).
- Post's variable resolver now also accept a property without `post_` prefix.
- User's variable resolver now also accept a property without `user_` prefix.
- Changed the options in the "Debug Data" field to be more intuitive allowing a custom data expression to be selected.
- The conditional step now uses the new expression builder.
- Improved the UI in the conditional step settings.
- Added field descriptions to the post query step settings panel (Issue #1081).
- Only display the bulk edit option "Update Future Action from Post Metadata" if feature is enabled (Issue #622).
- Updated language files.
- Remove focus from the toolbar Delete button when workflow step is selected (Issue #1083).
- Improved the text in the variables selector modal.

### Fixed

- Fix error when the date or time format is empty in the settings page (Issue #212).
- Fix empty title and label in the future action panel when custom title and label are not set (Issue #1075).
- Fix the width of the checkbox in the future action panel (#1076).
- Fix the permalink in the Post Updated trigger for the post before variable.
- Fix the variable names in the "Add extra terms to post" step (Issue #1079).
- Fix the validation message for the recipient field in the Send Email step (Issue #1078).
- Fix the date format in the shortcode.
- Fix loading a workflow that doesn't have a specific step type (Issue #883).
- Fix the first save of a workflow to transit from auto-saved to draft (Issue #1086).
- Fix warning about deprecated jQuery click() method in the workflow editor.
- Fix the auto-layout algorithm to avoid overlapping edges and correctly dimension each node and spacing between nodes (Issue #1102).
- Fix the warning about deprecated method `next` in the class `ActionScheduler_Schedule` (Issue #1107).

### Developers

- Deprecated the method `get_wp_date` in the class `PostExpirator_Util` and use the method `getWpDate` from the class `PublishPress\Future\Framework\WordPress\Facade\DateTimeFacade instead.
- Deprecated the method `wp_timezone_string` in the class `PostExpirator_Util` and use the method `getTimezoneString` from the class `PublishPress\Future\Framework\System\DateTimeHandler` instead.
- Deprecated the method `get_timezone_offset` in the class `PostExpirator_Util`.
- Deprecated the method `sanitize_array_of_integers` in the class `PostExpirator_Util`.
- Add new param $metaValue to the method `deleteMeta` in the class `PublishPress\Future\Framework\WordPress\Models\PostModel`.
- Remove the `steps` property from the workflow data type schema.

## [4.2.0] - 09 Dec, 2024

### Added
Expand Down
17 changes: 17 additions & 0 deletions assets/css/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,20 @@ body.espresso-admin #publishpress-future-classic-editor .components-input-contro
min-width: 30px;
padding: 0 4px;
}

.pp-future-workflow-status-icon {
margin-right: 5px;
cursor: pointer;
}

.pp-future-workflow-status-icon.active {
color: #46b450;
}

.pp-future-workflow-status-icon.inactive {
color: #dc3232;
}

.wp-list-table .column-workflow_status {
width: 75px;
}
2 changes: 1 addition & 1 deletion assets/css/woocommerce.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

.fixed .column-expirationdate {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/251.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/360.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e64a3bc

Please sign in to comment.