Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Implement the Block Hooks API to automatically inject the Mini-Cart block #11745

Merged
merged 12 commits into from
Dec 4, 2023

Commits on Dec 4, 2023

  1. Change the default for Mini Cart block

    The Block Hooks API currently doesn’t allow for setting the default state of the block injected into content so this ensures the mini-cart block has a better default state for injection. The current default (displaying total value in cart) takes up more width increasing the risk of poor layout.
    nerrad committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    eb0c5e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    507fc49 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c778c6f View commit details
    Browse the repository at this point in the history
  4. Fix filter name.

    nerrad committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    6411878 View commit details
    Browse the repository at this point in the history
  5. remove experimental prefix.

    On thinking about this, I don’t think these need to be experimental. They are intentionally provided as escape hatches for hosts/themes that want to opt-in/out so we’ll have to support them when this is shipped (at least until its no longer needed!)
    nerrad committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    a1bc678 View commit details
    Browse the repository at this point in the history
  6. fix variable name!

    nerrad committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    2170971 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7f64bae View commit details
    Browse the repository at this point in the history
  8. remove another incorrect text expectation

    Defaults for the block affect this expectation.
    nerrad committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    7accebc View commit details
    Browse the repository at this point in the history
  9. fix E2E tests

    gigitux committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    bef0c1d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5237a81 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3038db6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c71aa6a View commit details
    Browse the repository at this point in the history