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

Update the sites/block-layouts endpoint to use the existing set of layouts and categories. #2414

Closed
enejb opened this issue Jun 22, 2020 · 1 comment
Assignees

Comments

@enejb
Copy link
Contributor

enejb commented Jun 22, 2020

We want to expand the current number of mobile only layouts to include all the .com layouts. And make so that any new and exists .com layouts once added will be show up as layouts in the block-layouts endpoint.

Describe the solution you'd like
The newly created api endpoint #2413 should contain additional layouts and categories that a user can choose from.

What does Done look like?

  • Use the system that already exists in wpcom to return the current layouts. We want to be able to get the new layouts or updates on .com service without putting extra effort for the mobile side.
  • Filter the layouts by supported block. (Only return layouts that only have the supported blocks)
  • Provide a excluded lust so that even more layouts can be excluded if so desired listed.
  • Endpoint continuous to support the current preview_width and scale attributes as expected.

Things that are not included.

  • Support for vertical content. (This can be re examined in the future PRs/Issues.)
@enejb enejb self-assigned this Jun 22, 2020
@enejb enejb changed the title Expand Block Layouts Endpoint with additional mobile layouts Update the sites/block-layouts endpoint to use the existing set of layouts and categories. Jun 29, 2020
@enejb
Copy link
Contributor Author

enejb commented Jul 1, 2020

Since we shipped D45634-code I am closing this Issue as done.

@enejb enejb closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant