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

Various Minor Fixes (Page Builder and webiny info CLI Command) #3331

Merged
merged 6 commits into from May 25, 2023

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented May 24, 2023

Changes

This PR addresses one CLI issue and a couple of PB-related issues.

1. webiny info Command Not Working

For some time, the webiny info command would not work if an environment wasn't specified (in which case the command should internally get a list of all environments user currently has locally set up). This has now been addressed.

2. Button Page Element Crashing On Empty Link URL

In some cases, a null value would end up being passed to the Button page element's Link component, which would cause an error being thrown. With this PR, falsy values have been taken into consideration, in which case href will be set simply to an empty string.

3. Website Settings - Theme Selector Not Working Properly

In a multi-theme setup, in the website settings form, at the end of the form, the select component that would enable users to pick a theme for the current tenant wasn't working as expected. On page load, the select component would be empty, which is not good DX (ideally the select component should show the selected value).

Since this is a bug in the Select component, which we've seen before, as a quick fix, we've just replaced it with an Autocomplete component. This might even work better in cases users has more themes set up in his project.

4. Intermittent Errors When Refreshing the Page Builder

Intermittently, the page builder would break upon refreshing the page. Essentially, this happened because of the async nature of the way the theme is loaded. This would only happen in multi-theme projects.

This has now been addressed.

How Has This Been Tested?

Manual.

Documentation

Changelog.

@adrians5j adrians5j added this to the 5.36.1 milestone May 24, 2023
@adrians5j adrians5j changed the title Page Builder Fixes Page Builder and Webiny CLI Fixes May 24, 2023
@adrians5j adrians5j changed the title Page Builder and Webiny CLI Fixes Various FIxes May 24, 2023
@adrians5j adrians5j changed the title Various FIxes Various Minor Fixes May 24, 2023
@adrians5j adrians5j marked this pull request as ready for review May 24, 2023 18:59
@adrians5j adrians5j merged commit a524ed5 into dev May 25, 2023
59 checks passed
@adrians5j adrians5j changed the title Various Minor Fixes Various Minor Fixes (Page Builder and webiny info CLI Command) May 25, 2023
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.

None yet

1 participant