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

[Modal Layout Picker] Filter layouts based on supported blocks. #2444

Closed
chipsnyder opened this issue Jun 29, 2020 · 0 comments
Closed

[Modal Layout Picker] Filter layouts based on supported blocks. #2444

chipsnyder opened this issue Jun 29, 2020 · 0 comments
Assignees
Labels
Page Templates [Type] Enhancement Improves a current area of the editor

Comments

@chipsnyder
Copy link
Contributor

chipsnyder commented Jun 29, 2020

Is your feature request related to a problem? Please describe.

This task is part of the effort to rework the Starter Page Template Picker for new pages. This part of the initiative will focus on modifying the API call /wpcom/v2/sites/{site}/block-layouts to include the supported_blocks
query parameter which will be used to only include layouts that have met a server defined threshold of supported blocks.

Goals

  • Create a mechanism that takes exposes the same array of coreBlocks defined in Gutenberg and exposes those to the App.
    • For now, this can be as simple as duplicating the list in coreBlocks to the apps.
    • Ideally this would be a mechanism that would be shared by the block registration as well as the list passed to the apps but that can be separated out to a future enhancement.
  • Use this array to modify the API call /wpcom/v2/sites/{site}/block-layouts with the query paramert supported_blocks that was developed as part of Filtering of templates based on the supported blocks #2415

Additional context

Blueprint Flow - iOS
Blueprint Flow - Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Page Templates [Type] Enhancement Improves a current area of the editor
Projects
None yet
Development

No branches or pull requests

2 participants