- Issue created by @mglaman
- Status changed to Postponed
3 months ago 6:13pm 16 June 2025 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
โจ Allow working with a new (unsaved) entity Active is laying the groundwork for this.
- ๐บ๐ธUnited States hooroomoo
This will unblock โจ [PP-1] Navigate to page/component that's causing a publish error within the same tab Active
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
- ๐บ๐ธUnited States hooroomoo
Also would be great to have this by the content templates work so the url for editing a content template can be independent of the entity type and entity in the route
- ๐ซ๐ฎFinland lauriii Finland
This is needed by Content Templates which is still a priority for stable, but we're tracking it separately.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
โจ Allow working with a new (unsaved) entity Active just landed. Note that the FE pieces of #3529836 still need to happen, and it might make sense to just tackle all of that here See #3529836-27: Enable starting with an empty XB UI (so without first having to create an entity with a component tree) โ .
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
@hooroomoo already confirmed: #3529836-29: Enable starting with an empty XB UI (so without first having to create an entity with a component tree) โ ๐๐
- Status changed to Active
28 days ago 9:53am 20 August 2025 - First commit to issue fork.
- Merge request !1460Draft: Get /xb to load the react app without interfering with Drupal's routes โ (Closed) created by jessebaker
- ๐ฌ๐งUnited Kingdom jessebaker
jessebaker โ changed the visibility of the branch 3502887-prepare-for-avoiding to hidden.
- First commit to issue fork.
- ๐ฌ๐งUnited Kingdom jessebaker
Next steps:
Now that Drupal is no longer aware of which entity is being edited because the Route is handled by the React SPA we need another way of getting the
drupalSettings.canvas.entityTypeKeys
@bnjmnm suggested instead loading the keys for all the different entityTypes (keyed by the entity type) https://git.drupalcode.org/project/canvas/-/merge_requests/4#note_581234
Before this MR it was possible to do this
const titleInput = entity_form_fields[`${canvasSettings.entityTypeKeys.label}[0][value]`];
With the change above we would be able to do
const titleInput = entity_form_fields[`${canvasSettings.entityTypeKeys[entityType].label}[0][value]`];
More context
(Probably too much context, but in case it's useful)
drupalSettings.canvas.entityTypeKeys
was previously based on the current entity being edited and looked something like{ "id": "id", "uuid": "uuid", "revision": "revision_id", "label": "title", "langcode": "langcode", "published": "status", "owner": "owner", "bundle": "", "default_langcode": "default_langcode", "revision_translation_affected": "revision_translation_affected" }
We would take the value of
entityTypeKeys.label
(in the above example "title") and that would let us know how to get page title from theentity_form_fields
which look like e.g."entity_form_fields": { "langcode[0][value]": "en", "title[0][value]": "Untitled page", "path[0][alias]": "\/untitled-page", "path[0][langcode]": "en", "image[media_library_selection]": "", "description[0][value]": "" },
- ๐ฌ๐งUnited Kingdom f.mazeikis Brighton
f.mazeikis โ made their first commit to this issueโs fork.
-
jessebaker โ
committed c5fd26f0 on 1.x
Issue #3502887 by mglaman, hooroomoo, jessebaker, bnjmnm, f.mazeikis:...
-
jessebaker โ
committed c5fd26f0 on 1.x
Now that this issue is closed, please review the contribution record.
As a contributor, attribute any organization helped you, or if you volunteered your own time.
Maintainers, please credit people who helped resolve this issue.