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

Blocks: use a single source of truth for blocks metadata #32602

Closed
11 tasks done
Tracked by #17099
monsieur-z opened this issue Aug 21, 2023 · 0 comments
Closed
11 tasks done
Tracked by #17099

Blocks: use a single source of truth for blocks metadata #32602

monsieur-z opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
Epic Formerly "Primary Issue", or "Master Issue" [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@monsieur-z
Copy link
Contributor

monsieur-z commented Aug 21, 2023

Following #32408, a block.json metadata file was created for each block so that wp.org could list them on the Jetpack plugin page. However, the block registration methods in both the back and front ends don't consider these files yet: they read metadata from an object that's exported in a JS file. Metadata is duplicated.

The recommended method for block registration is to specify a path to a block.json file. We should try that and get rid of data that's not present in that file.

Tasks

  1. [Package] Blocks [Plugin] Jetpack [Pri] Normal [Tests] Includes Tests [Type] Enhancement
    monsieur-z
  2. RNA [Block] Business Hours [JS Package] Shared Extension Utils [Package] Blocks [Plugin] Jetpack [Tests] Includes Tests
    monsieur-z
  3. RNA [Block] AI Chat [Block] Amazon [Block] Blogroll [Block] Business Hours [Block] Create With Voice [Block] Google Docs Embed [Block] Recipe [JS Package] Shared Extension Utils [Package] Blocks [Plugin] Jetpack [Tests] Includes Tests
    monsieur-z
  4. [Block] AI Image [Block] AI Paragraph [Plugin] Jetpack
    monsieur-z
  5. [Block] Blogroll [Plugin] Jetpack
    monsieur-z
  6. 7 of 7
    [Focus] Blocks [Pri] Normal [Type] Janitorial
    monsieur-z
  7. [Focus] Blocks [Plugin] Jetpack [Pri] Normal [Type] Enhancement
    monsieur-z
  8. [Focus] Blocks [Plugin] Jetpack [Pri] Low [Status] Wontfix [Type] Enhancement
    monsieur-z
  9. [Focus] Blocks [Pri] Normal [Tools] Development CLI [Type] Enhancement
    jeherve
@monsieur-z monsieur-z added Epic Formerly "Primary Issue", or "Master Issue" [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Pri] Normal [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Aug 21, 2023
@monsieur-z monsieur-z self-assigned this Aug 22, 2023
@jeherve jeherve added Epic Formerly "Primary Issue", or "Master Issue" and removed Epic Formerly "Primary Issue", or "Master Issue" labels Aug 29, 2023
@jeherve jeherve changed the title Use a single source of truth for blocks metadata Blocks: use a single source of truth for blocks metadata Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Formerly "Primary Issue", or "Master Issue" [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

2 participants