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

Libs 8.0.0 release #412

Merged
merged 24 commits into from
May 21, 2024
Merged

Libs 8.0.0 release #412

merged 24 commits into from
May 21, 2024

Conversation

iruzevic
Copy link
Member

@iruzevic iruzevic commented Apr 29, 2024

Updated

  • Eightshift-forms-utils to the latest version 2.0.0.
  • @infinum/eightshift-libs to the latest version 8.0.0.
  • @infinum/eightshift-frontend-libs to the latest version 12.0.0.

Removed

  • All Data are not loaded from utils lib.
  • Top bar no longer supports listing all forms items for faster loading.
  • src/Exception/MissingFilterInfoException.php because it is not used anymore.

Added

  • New Caching service for manifest data.

Fixed

  • Custom post type labels are not translatable.

Changed

  • Filter script_dependency_theme is now script_dependency_theme_captcha.

TODO

  • Changelog
  • Release
  • Composer remove temp items

@iruzevic iruzevic self-assigned this Apr 29, 2024
@iruzevic iruzevic marked this pull request as draft April 29, 2024 21:47
@iruzevic iruzevic requested review from a team, mbmjertan and dingo-d April 30, 2024 16:05
@iruzevic iruzevic marked this pull request as ready for review April 30, 2024 16:06
src/Rest/Routes/Settings/LocationsRoute.php Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
setCache Outdated Show resolved Hide resolved
Copy link
Contributor

@piqusy piqusy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👏🏼

Left a few suggestions

src/Blocks/components/admin-settings/admin-settings.php Outdated Show resolved Hide resolved
src/CustomPostType/Result.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@dingo-d dingo-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of the setCache empty file? Does it have to be committed?

Changed the getManifest to getManifestDir - how will this impact userland code? Is getManifest used, for instance, in projects? If so, will updating to this version break this implementation?
If the answer is yes, the version of the forms should be updated to 3.0.0 notifying users of a BC break.

The same happened with some UtilsGeneralHelper to Helpers classes, but I think those are used internally, so they are not necessarily BC breaks.

Also, I've left a couple of suggestions regarding naming, and some potentially misnamed methods.

composer.json Outdated Show resolved Hide resolved
src/Blocks/SettingsBlocks.php Outdated Show resolved Hide resolved
src/Cache/ManifestCache.php Outdated Show resolved Hide resolved
src/Cache/ManifestCache.php Outdated Show resolved Hide resolved
src/Cache/ManifestCache.php Outdated Show resolved Hide resolved
src/Validation/Validator.php Outdated Show resolved Hide resolved
@iruzevic
Copy link
Member Author

iruzevic commented May 6, 2024

What is the purpose of the setCache empty file? Does it have to be committed?
Accident commit, I have remove it.

Changed the getManifest to getManifestDir - how will this impact userland code? Is getManifest used, for instance, in projects? If so, will updating to this version break this implementation? If the answer is yes, the version of the forms should be updated to 3.0.0 notifying users of a BC break.

As these forms change, this will impact users in no way. As the addon has its own libs and we are not implementing any breaking changes to the user's implementation in the project, so I don't see any need to bump the forms to 3.0.0

Also, I've left a couple of suggestions regarding naming, and some potentially misnamed methods.

tnx, will fix it

@dingo-d
Copy link
Collaborator

dingo-d commented May 6, 2024

As these forms change, this will impact users in no way. As the addon has its own libs and we are not implementing any breaking changes to the user's implementation in the project, so I don't see any need to bump the forms to 3.0.0

So the changes in the blocks won't affect the existing blocks on the existing forms? I'm just wondering if this will have any impact on the custom blocks that can be added and are depending on the old utils.

@iruzevic
Copy link
Member Author

iruzevic commented May 6, 2024

As these forms change, this will impact users in no way. As the addon has its own libs and we are not implementing any breaking changes to the user's implementation in the project, so I don't see any need to bump the forms to 3.0.0

So the changes in the blocks won't affect the existing blocks on the existing forms? I'm just wondering if this will have any impact on the custom blocks that can be added and are depending on the old utils.

As the forms are now for the users to develop on like Boilerplate is, what ever we do on the internal logic will not affect the user in any way. For the forms a major update will be is the users needs to make any migrations or some corrections in the filters. So I would say that we are on with staying on the 2+ version

dingo-d
dingo-d previously approved these changes May 6, 2024
dadadavorin
dadadavorin previously approved these changes May 6, 2024
iruzevic and others added 4 commits May 13, 2024 13:36
* adding filer and shortcode type
# Conflicts:
#	CHANGELOG.md
#	composer.lock
#	eightshift-forms.php
#	src/Integrations/Hubspot/HubspotClient.php
@iruzevic iruzevic dismissed stale reviews from dadadavorin and dingo-d via 71f533d May 17, 2024 12:45
Copy link
Contributor

@piqusy piqusy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👏🏼

Left a few suggestions

"infinum/eightshift-coding-standards": "^1.6",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"infinum/eightshift-coding-standards": "2.0.0-beta",
"php-parallel-lint/php-parallel-lint": "^1.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we hold this off until the issue with non-escaped folder names has been resolved?
php-parallel-lint/PHP-Parallel-Lint#171 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check what I can do on my side, but we will need to address this definitely :/

src/Blocks/components/form/assets/utils.js Show resolved Hide resolved
@@ -293,6 +293,9 @@ export class Utils {
messageContainer.innerHTML = `<div><span>${msg}</span></div>`;
}
} else {
messageContainer?.classList?.add(this.state.getStateSelector('isActive'));
messageContainer.dataset.status = status;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
messageContainer.dataset.status = status;
messageContainer?.dataset.status = status;

src/Blocks/custom/moments/moments.php Outdated Show resolved Hide resolved
src/Rest/Routes/AbstractFormSubmit.php Outdated Show resolved Hide resolved
src/Security/SettingsSecurity.php Outdated Show resolved Hide resolved
src/Security/SettingsSecurity.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@dingo-d dingo-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments.

I think this update should warrant a major version, as a lot of internal things changed.

composer.json Show resolved Hide resolved
"infinum/eightshift-coding-standards": "^1.6",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"infinum/eightshift-coding-standards": "2.0.0-beta",
"php-parallel-lint/php-parallel-lint": "^1.3",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check what I can do on my side, but we will need to address this definitely :/

eightshift-forms.php Outdated Show resolved Hide resolved
Comment on lines 45 to 47
if (\file_exists(__DIR__ . '/vendor-prefixed/autoload.php')) {
require __DIR__ . '/vendor-prefixed/autoload.php';
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should a check for the existence of this file also be checked against and returned early if it's missing like for the regular autoloader?

phpcs.xml.dist Outdated Show resolved Hide resolved
src/Integrations/Mailer/Mailer.php Outdated Show resolved Hide resolved
@iruzevic iruzevic requested review from piqusy and dingo-d May 20, 2024 08:05
Copy link
Contributor

@goranalkovic-infinum goranalkovic-infinum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ other comments

className='es-no-field-spacing'
/>
}
<IconToggle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just Toggle now (won't fail tho)

piqusy
piqusy previously approved these changes May 20, 2024
@iruzevic iruzevic merged commit e379f78 into develop May 21, 2024
6 checks passed
@iruzevic iruzevic deleted the feature/new-libs branch May 21, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants