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

Selecting a pattern in the Template Part replacement flow is editing rather than replacing #44147

Closed
jameskoster opened this issue Sep 14, 2022 · 4 comments
Labels
[Block] Template Part Affects the Template Parts Block [Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended

Comments

@jameskoster
Copy link
Contributor

In the template part replacement flow, if you select an existing template part then the original one is replaced as expected. However, if you select a pattern then the original template part is edited which feels unexpected. Here's a video demo:

tp.mp4

@talldan I'm sure we merged a PR that enabled the creation of template parts directly from patterns. Did I mis-remember? Or is it possible that this flow was accidentally overlooked?

@jameskoster jameskoster added [Type] Bug An existing feature does not function as intended [Priority] High Used to indicate top priority items that need quick attention [Block] Template Part Affects the Template Parts Block labels Sep 14, 2022
@talldan
Copy link
Contributor

talldan commented Sep 15, 2022

In the template part replacement flow, if you select an existing template part then the original one is replaced as expected. However, if you select a pattern then the original template part is edited which feels unexpected.

I think the template part replace flow has been like this from very early on, so it's probably something that was overlooked.

Choosing another template part swaps the template part being used. Choosing a pattern replaces the template part's inner blocks. I see how it can be misleading given both are presented as part of the same flow, and the latter could be quite disruptive for template parts being used in other templates. Pattern selection could alternatively create a new template part and swap the template part being used. I think that would be a pretty straightforward change.

@talldan I'm sure we merged a PR that enabled the creation of template parts directly from patterns. Did I mis-remember? Or is it possible that this flow was accidentally overlooked?

When adding a template part block from the inserter? It hasn't been merged. I haven't been able to give it much attention lately, though I do have some better ideas in terms of the API.

@talldan
Copy link
Contributor

talldan commented Sep 15, 2022

It looks like you mentioned a similar thing here about creating a new template part when replacing with a pattern -#41397 (comment)

@jameskoster
Copy link
Contributor Author

Oh yes, I'll close this issue in favor of #41397. It would be really good to solve this particular portion as it feels very confusing to use at the moment 🙈

@talldan
Copy link
Contributor

talldan commented Sep 16, 2022

PR to fix this at #44221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Template Part Affects the Template Parts Block [Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

No branches or pull requests

2 participants