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

Related Posts Block: make the block available even when the module is disabled #32930

Merged
merged 15 commits into from
Sep 19, 2023

Commits on Sep 7, 2023

  1. Add changelog entry

    jeherve committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    3b2ea48 View commit details
    Browse the repository at this point in the history
  2. Move the block registration to a file that's loaded with the block

    Whether the module is active or not, we'll register the Related Posts block.
    jeherve committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    e2fcf05 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f77c60 View commit details
    Browse the repository at this point in the history
  4. Display a placeholder when the module is disabled

    - The placeholder includes a button inviting you to activate the module.
    - While the module status loads, we display placeholder block contents.
    jeherve committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    edf4a71 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Update test to take new RelatedPostsEdit into account

    - Include module status check
    - Move to function component
    - Mock additional functions
    jeherve committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    eeda671 View commit details
    Browse the repository at this point in the history
  2. Take WordPress.com into account as well

    Modules behave differently there
    jeherve committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    74ba77b View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Configuration menu
    Copy the full SHA
    c3f663c View commit details
    Browse the repository at this point in the history
  2. Fix tests

    jeherve committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    0625b7c View commit details
    Browse the repository at this point in the history
  3. Add new endpoints to fetch/update related posts status from option

    One can also disable Related Posts (while the module is active) via a toggle in Settings > Reading in Calypso. Let's add:
    
    - 2 new endpoints to fetch and update that info.
    - a new hook to handle this new status info in the block editor.
    - hook the new hook into the Related Posts' block in the editor.
    jeherve committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    c48c066 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    d46b362 View commit details
    Browse the repository at this point in the history
  2. Adjust styles

    jeherve committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    53ef5cc View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    83a114d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    189a0e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    ad77b19 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4fda28d View commit details
    Browse the repository at this point in the history