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

Product Collection: Use Interactivity API for pagination #10361

Merged
merged 16 commits into from
Aug 11, 2023

Commits on Jul 13, 2023

  1. Configuration menu
    Copy the full SHA
    5847587 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2b5431 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c0e090c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ab84aa View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Configuration menu
    Copy the full SHA
    91f2432 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Configuration menu
    Copy the full SHA
    56671c9 View commit details
    Browse the repository at this point in the history
  2. Cache initial regions

    DAreRodz committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    35c0e5f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b4c991 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ade05ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    967f00d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8f1c4a3 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Fix navigation-id retrieval

    DAreRodz committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    763ddf8 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Introduce interactivity to Product Collection block and navigation en…

    …hancements
    
    This commit brings significant improvements to the ProductCollection block.
    
    1. A new property `parsed_block` is added to the class to hold the block with its attributes before it gets rendered. This allows for more complex manipulations of the block and its attributes.
    
    2. Interactivity has been added to the product collection block. The block is marked as an interactive region so it can be updated during client-side navigation. The `add_navigation_id_directive` method is responsible for adding this functionality. This ensures better UX as users navigate through the products.
    
    3. Navigation links inside the Query Pagination block are also made interactive. The `add_navigation_link_directives` function is responsible for this. All anchor tags in the pagination are given the `data-wc-navigation-link` attribute with relevant navigation payload. This includes prefetching and scroll behavior. The pagination links are given unique keys for 'previous' and 'next' navigation.
    
    4. The `render_block` filter hook has been used to add these functionalities to the product collection and query pagination blocks during render.
    imanish003 committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    066376b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'add/data-wc-navigation-directives' into add/10328-produ…

    …ct-collection-interactivity-api
    imanish003 authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ba05986 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Resolve merge conflicts

    imanish003 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    f7557e8 View commit details
    Browse the repository at this point in the history
  2. Disable scroll

    imanish003 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7fadbcb View commit details
    Browse the repository at this point in the history