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

feat(carousel): rename block and reorganise settings #1962

Merged
merged 18 commits into from
Feb 8, 2025

Conversation

thomasguillot
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Similar to #1943, this time for the "Post Carousel" block.

How to test the changes in this Pull Request:

  1. Add a bunch of Carousel Post blocks to a page with various settings
  2. Switch to this branch
  3. Check if the blocks are still displaying the correct information and has kept the correct settings

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@thomasguillot thomasguillot changed the title Update/reorganise post carousel feat©rousel): rename block and reorganise settings Nov 15, 2024
@thomasguillot thomasguillot changed the title feat©rousel): rename block and reorganise settings feat(carousel): rename block and reorganise settings Nov 15, 2024
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

This needs a little updating to more closely match changes made in #2000:

  • Rename "Settings" panel to "Display"
  • Rename "Loop" panel to "Content"
  • Move "Display" panel below "Content" panel

These changes would bring the sidebar panels more in line with changes to the Content Loop block in #2000.

Aside from that, there are some additional changes we could consider to this block, either in this PR or another one. Consider these non-blocking suggestions rather than required changes.

  • Add option to "Allow duplicate stories" or not, and make sure it works the same way in both editor vs. front-end (see comment for details on how it's currently slightly broken)
  • Consider moving attributes from index.js to a block.json file for registering block attributes, to bring it in line with other blocks in our codebase

@thomasguillot
Copy link
Contributor Author

@dkoo made some changes: 65a1b0d and 4d9cc5c

@thomasguillot thomasguillot requested a review from dkoo February 7, 2025 11:27
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

@thomasguillot Thanks for the reorganization and the new block.json file! The changes here look great.

While testing this, I ran into an issue where setting block attributes that result in zero posts can crash the editor. However, I confirmed this is reproducible on trunk as well so it's not due to any of these changes. Filed a bug report here: 1200550061930446/1209344644455228

@thomasguillot thomasguillot merged commit 9905717 into trunk Feb 8, 2025
10 checks passed
@thomasguillot thomasguillot deleted the update/reorganise-post-carousel branch February 8, 2025 07:19
Copy link

github-actions bot commented Feb 8, 2025

Hey @thomasguillot, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Feb 20, 2025
# [4.7.0-alpha.1](v4.6.0...v4.7.0-alpha.1) (2025-02-20)

### Bug Fixes

* **carousel:** avoid editor crash on empty ([#2058](#2058)) ([c316801](c316801))
* **modal-checkout:** better iframe sizing ([#2052](#2052)) ([aa308f2](aa308f2))
* **recaptcha:** use clone of #place_order button to trigger checkout ([#2028](#2028)) ([46eb8b5](46eb8b5)), closes [#2030](#2030) [#2030](#2030)

### Features

* add styles to fix Braintree modal appearance ([#2036](#2036)) ([9ab2c62](9ab2c62))
* add toggle for transaction details ([#2049](#2049)) ([d254aca](d254aca))
* **carousel:** rename block and reorganise settings ([#1962](#1962)) ([9905717](9905717))
* update blocks with new brand ([#2050](#2050)) ([2711302](2711302))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 4.7.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants