Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Testing #1822

Merged
merged 63 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
0a76b4c
Sync branch [skip ci]
pirate-bot Jul 17, 2023
2df4e19
Sync branch [skip ci]
pirate-bot Jul 17, 2023
387297e
chore(deps-dev): bump @playwright/test from 1.34.1 to 1.36.1
dependabot[bot] Jul 17, 2023
7edbaec
chore(deps-dev): bump @typescript-eslint/parser from 5.61.0 to 6.0.0
dependabot[bot] Jul 17, 2023
eb8c660
chore: add section e2e
Soare-Robert-Daniel Jul 18, 2023
0ef44af
chore: add accordion e2e
Soare-Robert-Daniel Jul 18, 2023
13baa9d
chore: add Tabs E2E
Soare-Robert-Daniel Jul 18, 2023
8829f9d
chore: add countdown E2E
Soare-Robert-Daniel Jul 18, 2023
7c72daf
chore: add Slider E2E
Soare-Robert-Daniel Jul 27, 2023
2a7552a
chore: add file loading for Form File E2E
Soare-Robert-Daniel Jul 27, 2023
620220b
chore: add content check for e2e
Soare-Robert-Daniel Jul 27, 2023
18da321
fix: z-index for section dividers
Soare-Robert-Daniel Jul 31, 2023
a564d84
chore: improve scoping & editor selector
Soare-Robert-Daniel Aug 1, 2023
2b3e581
Merge pull request #1775 from Codeinwp/dev/e2e-tests
HardeepAsrani Aug 1, 2023
0733925
Merge pull request #1770 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 1, 2023
c0114eb
Merge pull request #1771 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 1, 2023
533bd94
chore(deps-dev): bump @wordpress/e2e-tests from 7.4.0 to 7.9.0
dependabot[bot] Aug 1, 2023
62b1c3d
chore(deps-dev): bump @wordpress/scripts from 26.5.0 to 26.9.0
dependabot[bot] Aug 1, 2023
074be9f
Merge pull request #1783 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 1, 2023
25d4fb8
Merge pull request #1782 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 1, 2023
7f170c0
chore(deps-dev): bump phpstan/phpstan from 1.10.22 to 1.10.26
dependabot[bot] Aug 1, 2023
5c8f543
chore(deps): bump masterminds/html5 from 2.7.5 to 2.8.1
dependabot[bot] Aug 1, 2023
06d3f24
chore(deps): bump stripe/stripe-php from 10.16.0 to 10.19.0
dependabot[bot] Aug 1, 2023
9342d3b
chore(deps-dev): bump php-stubs/woocommerce-stubs from 7.8.1 to 7.9.0
dependabot[bot] Aug 1, 2023
23fa8e9
chore(deps-dev): bump @wordpress/env from 8.3.0 to 8.4.0
dependabot[bot] Aug 1, 2023
93e3d6e
chore(deps-dev): bump @testing-library/jest-dom from 5.16.5 to 5.17.0
dependabot[bot] Aug 1, 2023
fe9bf41
chore(deps-dev): bump @wordpress/compose from 6.14.0 to 6.15.0
dependabot[bot] Aug 1, 2023
497ad63
chore(deps): bump @wordpress/icons from 9.28.0 to 9.29.0
dependabot[bot] Aug 1, 2023
61d33ae
chore(deps-dev): bump @automattic/babel-plugin-replace-textdomain
dependabot[bot] Aug 1, 2023
f8abcdf
chore(deps-dev): bump @wordpress/block-editor from 12.5.0 to 12.6.0
dependabot[bot] Aug 1, 2023
e871c2d
chore(deps-dev): bump @wordpress/dom-ready from 3.37.0 to 3.38.0
dependabot[bot] Aug 1, 2023
b70e402
Sync branch [skip ci]
pirate-bot Aug 4, 2023
d7e8dcc
fix: keep inspector top header state between Desktop and Tablet\Mobile
Soare-Robert-Daniel Aug 7, 2023
a2e4c7a
Sync branch [skip ci]
pirate-bot Aug 9, 2023
ec37949
Merge pull request #1797 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
caefe76
Merge pull request #1796 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
572dc61
Merge pull request #1784 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Aug 10, 2023
929f5da
Merge pull request #1787 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Aug 10, 2023
56c9881
Merge pull request #1792 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
3b83549
Merge pull request #1791 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
21790b1
Merge pull request #1790 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
15e0986
Merge pull request #1788 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
6df7e07
Merge pull request #1789 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
82b9473
Merge pull request #1786 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Aug 10, 2023
876d1af
Merge pull request #1785 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Aug 10, 2023
3411db9
chore(deps-dev): bump @wordpress/components from 25.4.0 to 25.5.0
dependabot[bot] Aug 10, 2023
8da356f
Merge pull request #1806 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
fdfbccd
chore(deps-dev): bump @typescript-eslint/parser from 6.0.0 to 6.3.0
dependabot[bot] Aug 10, 2023
cba6a19
Merge pull request #1807 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Aug 10, 2023
21a6d9f
Sync branch [skip ci]
pirate-bot Aug 11, 2023
ccae01a
Sync branch [skip ci]
pirate-bot Aug 11, 2023
04e0488
fix: submission page Add New in multisite
Soare-Robert-Daniel Aug 11, 2023
d2e299b
fix: cap height & font-size scaling for Progress Bar
Soare-Robert-Daniel Aug 11, 2023
e72846d
fix(wp5.9): undefined checking for stripe store
Soare-Robert-Daniel Aug 16, 2023
7dc8e53
fix: missing submit messages for Form
Soare-Robert-Daniel Aug 16, 2023
f80bc45
chore: use 64px max value
Soare-Robert-Daniel Aug 16, 2023
3c41ba6
chore: add elementor selector
Soare-Robert-Daniel Aug 16, 2023
3861428
Merge pull request #1780 from Codeinwp/fix/section-divider-z
HardeepAsrani Aug 21, 2023
5bdc9e4
Merge pull request #1801 from Codeinwp/fix/inspector-tab-reset
HardeepAsrani Aug 21, 2023
8a99b08
Merge pull request #1813 from Codeinwp/fix/submission-multisite
HardeepAsrani Aug 21, 2023
fe759ea
Merge pull request #1814 from Codeinwp/fix/progress-mobile-scaling
HardeepAsrani Aug 21, 2023
51082b0
Merge pull request #1816 from Codeinwp/fix/stripe-checkout-wp59
HardeepAsrani Aug 21, 2023
0adae93
Merge pull request #1817 from Codeinwp/fix/form-contact
HardeepAsrani Aug 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 25 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions inc/integrations/api/form-response-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ class Form_Data_Response {
* @since 2.0.0
*/
public function __construct() {
$this->response['success'] = false;
$this->response['reasons'] = array();
$this->response['code'] = self::SUCCESS_EMAIL_SEND;
$this->response['displayError'] = 'Error. Please try again.';
$this->response['success'] = false;
$this->response['reasons'] = array();
$this->response['code'] = self::SUCCESS_EMAIL_SEND;
$this->response['displayError'] = 'Error. Please try again.';
$this->response['submitMessage'] = 'Success';
}

/**
Expand Down Expand Up @@ -148,6 +149,17 @@ public function set_reasons( $reasons ) {
return $this;
}

/**
* Set success message.
*
* @param string $message The message.
* @since 2.4
*/
public function set_success_message( $message ) {
$this->response['submitMessage'] = $message;
return $this;
}

/**
* Check if success.
*
Expand Down
5 changes: 5 additions & 0 deletions inc/plugins/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ private function the_otter_banner() {
.otter-banner__version {
align-self: center;
}

/* Hide the "Add New" button for Multisite WP. Second part is for Elementor */
a.page-title-action:first-of-type, #e-admin-top-bar-root:not(.e-admin-top-bar--active)~#wpbody .wrap a.page-title-action:first-of-type {
display: none;
}
</style>
<div class="otter-banner">
<div class="otter-banner__image">
Expand Down
16 changes: 9 additions & 7 deletions inc/server/class-form-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,20 +278,22 @@ public function frontend( $request ) {
do_action( 'otter_form_after_submit', $form_data );

if ( ! ( $form_data instanceof Form_Data_Request ) ) {
$res->set_code( Form_Data_Response::ERROR_RUNTIME_ERROR );
$res->add_reason( __( 'The form data class is not valid after performing provider actions! Some hook is corrupting the data.', 'otter-blocks' ) );
$res->set_code( Form_Data_Response::ERROR_RUNTIME_ERROR )
->add_reason( __( 'The form data class is not valid after performing provider actions! Some hook is corrupting the data.', 'otter-blocks' ) );
}

if ( $form_data->has_error() ) {
$res->set_code( $form_data->get_error_code() );
$res->set_code( $form_data->get_error_code() )
->set_display_error( $form_options->get_error_message() );
} else {
$res->set_code( Form_Data_Response::SUCCESS_EMAIL_SEND );
$res->mark_as_success();
$res->set_code( Form_Data_Response::SUCCESS_EMAIL_SEND )
->set_success_message( $form_options->get_submit_message() )
->mark_as_success();
}
}
} catch ( Exception $e ) {
$res->set_code( Form_Data_Response::ERROR_RUNTIME_ERROR );
$res->add_reason( $e->getMessage() );
$res->set_code( Form_Data_Response::ERROR_RUNTIME_ERROR )
->add_reason( $e->getMessage() );
$form_data->set_error( Form_Data_Response::ERROR_RUNTIME_ERROR, $e->getMessage() );
$this->send_error_email( $form_data );
} finally {
Expand Down
Loading
Loading