Overview
We validated the ability to extend Drupal Canvas with the canvas_test_extension module, but this was achieved with proof of concept in mind and not necessarily how we intend to make these capabilities available long-term.
We should probably figure out what functionality should be offered, how to implement it, how to ensure it remains stable + provide good docs so the community can take advantage of these capabilities.
Proposed resolution
In #3550161: Extension plugins, UI, and initial browser APIs we implemented the infra and updated the test extension for how this will work.
This issue is for writing an ADR documenting those changes.
User interface changes
None.
Issue fork canvas-3514033
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
wim leersComment #3
effulgentsia commentedUntagging "stable blocker", because XB 1.0.0 does not require a public extensions API. That can come in future minor 1.x releases. The goal of XB 1.0.0 is to get it into people's hands for building and deploying real websites with it, and they don't need to extend the XB UI to do that.
Comment #11
balintbrewsComment #12
balintbrewsThe plan I outlined in the ADR was already approved by @lauriii. He and I worked together on the metadata schema, so that's also validated from a product standpoint.
Comment #13
tim.plunkettFixing component
Comment #14
balintbrewsThe initial implementation landed in #3550161: Extension plugins, UI, and initial browser APIs.
Comment #15
wim leersThis MR is now 92 days old. Let's get reviews going. Starting with @penyaskito, then @lauriii 🙏
Comment #17
penyaskitoApproved, assigned to @lauriii per #15.
Comment #18
penyaskitoComment #19
lauriiiLeft couple comments in the MR. Otherwise this is ready from my perspective.
Comment #20
penyaskitoAnswered. I don't think we need to define here how we will use `permissions` (or maybe change that to `scopes`) aside of the yml spec.
We will know more when we add any useful APIs that extensions can use, and we can update this accordingly.
Comment #21
lauriiiComment #23
penyaskitoThanks!
Comment #26
wim leersThis MR caused the following:
👻
0007 landed Jan 12, 0008 Jan 13, this one (007) Mar 19.
→ Let's rename this to 0009.
Noticed while working on a new ADR.
Comment #28
wim leersMR up.
Comment #30
wim leers