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

Unlink Template not functional #3800

Open
alexwestholm opened this issue Jan 8, 2024 · 0 comments
Open

Unlink Template not functional #3800

alexwestholm opened this issue Jan 8, 2024 · 0 comments
Labels

Comments

@alexwestholm
Copy link

alexwestholm commented Jan 8, 2024

Version

5.38.2

Operating System

Mac OS X

Browser

Chrome, Safari, Firefox

What are the steps to reproduce this bug?

  1. Navigate to /page-builder/page-templates
  2. Click + New Template at the top of the Templates list
  3. Enter "test" for all fields. Assumption: data entered here has no impact on functionality.
  4. Click Create and enter Page Builder UI
  5. Click the + button to begin adding content, and add an Empty Block
  6. From the Add Element menu, add a Paragraph from the Basic category, and drop it on the + button in the empty block, resulting in a structure that looks like Block > Grid > Cell > Paragraph
  7. Hit Save Changes in upper right. You should now have a template that displays a lorem ipsum paragraph.
  8. Navigate to /page-builder/pages?folderId=root and hit + New Page
  9. When prompted to select a template, locate the "test" template created during step 7, click it, then click the Use Template button in the upper right.
  10. When Page Builder launches, the lock icon on the left will appear locked. Click this to show the Unlink Template dialog, and hit the Unlink Template button to proceed.
  11. Webiny silently fails to perform the unlink operation, the UI reloads, and nothing has changed.

What is the expected behavior?

After clicking the Unlink Template, it is expected that PageBuilder reloads and the content added from the Page Template is now editable without any linkage to the template itself. In other words, elements should become local copies of the elements present in the template, editable in isolation on the Page that was being edited when the Unlink Template button was clicked.

What do you see instead?

Nothing changes. A request is made to the corresponding environment's GraphQL API, as follows:

[ { "operationName": "UnlinkPageFromTemplate", "variables": { "id": "659bff9d7eaa5a00095a0a15#0001" }, "query": "mutation UnlinkPageFromTemplate($id: ID!) {\n pageBuilder {\n unlinkPageFromTemplate(id: $id) {\n data {\n content\n __typename\n }\n __typename\n }\n __typename\n }\n}\n" } ]

This query yields a 200 response, then the PageBuilder UI reloads. But no changes have taken effect. The block remains locked, and the user is still unable to access the Paragraph for editing.

Additional information

No response

Possible solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant