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

Add reusable blocks data layer #3017

Merged
merged 4 commits into from
Nov 7, 2017
Merged

Add reusable blocks data layer #3017

merged 4 commits into from
Nov 7, 2017

Commits on Nov 7, 2017

  1. Add reusable blocks data layer

    Adds the actions, selectors and reducers necessary for supporting reusable
    blocks. There are 5 actions:
    
    - FETCH_REUSABLE_BLOCKS: Loads reusable blocks from the API and inserts
      them into the store.
    - UPDATE_REUSABLE_BLOCK: Inserts of updates a reusable block that is in
      the store.
    - SAVE_REUSABLE_BLOCK: Persists a reusable block that's in the store to
      the API.
    - MAKE_BLOCK_STATIC: Transforms a reusable block on the page into a
      regular block.
    - MAKE_BLOCK_REUSABLE: Transforms a regular block on the page into a
      reusable block.
    noisysocks authored and youknowriad committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    d8400a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19c86aa View commit details
    Browse the repository at this point in the history
  3. Seperate metadata (isSaving) from reusable block data in the Redux tree

    Re-shape the Redux state tree so that metadata like `isSaving` is kept
    seperately from each reusable block's actual data.
    noisysocks authored and youknowriad committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    ae8fc05 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6e0cf2 View commit details
    Browse the repository at this point in the history