🇺🇸United States @hooroomoo

Account created on 14 September 2021, almost 4 years ago
  • Software Engineer at Acquia 
#

Merge Requests

More

Recent comments

🇺🇸United States hooroomoo

hooroomoo made their first commit to this issue’s fork.

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch 3541027-create-new-templates to hidden.

🇺🇸United States hooroomoo

I approved but I think it's worth checking that the new tests are stable with the new 1.x changes that have gone in. But leaving it up to @jessebaker if he wants this in before the big rename

🇺🇸United States hooroomoo

Playwrights been flaky, but the newly added componentOperations.spec.ts failed on the latest CI run

🇺🇸United States hooroomoo

hooroomoo made their first commit to this issue’s fork.

🇺🇸United States hooroomoo

hooroomoo made their first commit to this issue’s fork.

🇺🇸United States hooroomoo

Mentioned this on a call but just want to record here, can the view mode response can also provide a key with the first available node entity that the frontend can use to display the template with? And if a content of that bundle doesn't exist yet then it can be null or something and the frontend can handle accordingly to maybe show an warning message in the UI to require a user to create content for it if they want to view the template for that bundle in XB.

🇺🇸United States hooroomoo

Moving the Allow linking a component prop of a template to a dynamic field to be higher in the FE list for visibility and higher priority because this could be big one due to it also has to make sure that the component props form can be correctly generated after a dynamic field is set to a prop.

https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch 3538576-two-add-components-to-layout to active.

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch 3538576-two-add-components-to-layout to hidden.

🇺🇸United States hooroomoo

I am not sure what the difference between the backend items in the map: HTTP endpoint: dynamic props sources and Handle dynamic props is...

I wonder if its the same thing but we just didn't realize when we created this map together. I see only 4 backend tickets got created instead of 5 so maybe it is a duplicate? But I'm not certain.

🇺🇸United States hooroomoo

My preference would be the first way (not flat). And yes the frontend can construct the 'layout_url' => '/xb/api/v0/layout-template/node/page/full/ given the response.

$view_modes = [
      'node' => [
        'page' => [
          'full' => [
            // Whether template has auto-save changes. This can be tru even if
            // existing_template is false since we auto-save templates before
            // first publishing without creating a new saved template.
            'auto-save-changes' => TRUE,
            // Where the there is an existing template saved.
            'existing_template' => TRUE,
            // The ID does require an exisitng template because it is based on
            // entity props that can't be changed.
            'template_id' => 'node.page.full',
          ]
          'teaser' => [
            'auto-save-changes' => FALSE,
            'existing_template' => FALSE,
            'template_id' => 'node.teaser.full',
          ]
        ]
        'article' => [
          'full' => [
            'auto-save-changes' => FALSE,
            'existing_template' => TRUE,
            'template_id' => 'node.article.page',
          ]
          'teaser' => [
            'auto-save-changes' => TRUE,
            'existing_template' => TRUE,
            'template_id' => 'node.article.teaser',
          ]
        ]
      ],
    ];
🇺🇸United States hooroomoo

Current state of MR (things are hardcoded and the UI is missing some things still e.g. showing the layers menu in the left sidebar when editing a content template ):

Front can make GET request to xb/api/v0/layout-template/node/article/full/1 and then receives the HTML to render the template. Here I added two components to the template.

Next publish the template (POST) to xb/api/v0/layout-template/node/article/full/1. PATCH also works to edit a prop. But still need to add the ability to set a component prop as a field which I'll add tomorrow to prove it works. @tedbow provided a hardcoded list of dynamic suggestions in the backend.

Can see that the content template is now being used for all articles.

Next step on the frontend side:
1. Add the ability to set a component prop as a field in the UI

🇺🇸United States hooroomoo

@wim leers Sorry about that! I understand it was not clear and is confusing. I'm just going to close this issue and continue work on Content templates, the boss battle: create a UI for editing templates Active .

I pushed all the changes from here to 3518248-layout-controller

🇺🇸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

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch xb-1346 to hidden.

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch 3538602-code-editor-can to hidden.

🇺🇸United States hooroomoo

hooroomoo changed the visibility of the branch 3508317-browsers-undo-state to hidden.

🇺🇸United States hooroomoo

Merged but assigning back to @bnjmnm to add screenshots/gif

Production build 0.71.5 2024