As an author I want the ability to save a story as a template for future use
Feature Brief - Epic: Document Workflow
UX designs TBD
Acceptance Criteria
@samitron7 has the UX and will move over to Figma
Note: UX also needed for when editing a template
This is a really nice feature to have, but we are also trying to avoid adding new features during Alpha - Beta. Not a top priority amongst other UX needed items right now
We should move this ticket out of beta
This ticket is unblocked by https://github.com/google/web-stories-wp/pull/1997 which was merged earlier today!
Some additional work on the PHP side is likely required here, as we've implemented _templates_ as their own content type that sits next to the _story_ content type, for various reasons.
So "Save as template” would mean "switch this entity's type from 'story' to 'template'".
That means the _template_ content type also needs to be able to be edited in the editor, albeit with limited functionality ("the publish button and related areas will disappear").
Pretty sure this is an echo of what @swissspidy called out on Friday.
Am able to save as a template but these requirements are not available yet. I think answering some of these in more detail will help Pascal and team be able to flesh out the API a bit more too.
After saving as a template, the publish button and related areas will disappear, as you’re now editing an unpublishable template
After saving as a template, the saved template will not appear in the Dashboard under drafts,, and will instead appear under “My templates” in the templates gallery
@o-fernandez can you help expand on this so we know how to move forward?
Since this is not in scope for the Beta, and we don't have bandwidth, I temporarily moved it to the Backlog. But let me know if this helps. @swissspidy @BrittanyIRL
@samitron7 and others, feel free to chime in if you think it's critical to save a story as template from the editor directly.
That'd be much easier to implement on the server side, that's for sure 👍
This sounds like a great plan. Thanks for the feedback.
I also think for the time being i might disable this action from the my stories view in the dashboard so that people can't click it and make a billion saved templates that they will not be able to see.
Updated the ticket description/acceptance criteria with this approach. Let's plan for this and we can adjust in the future, as necessary, based on user feedback.
@o-fernandez I commented on the brief but I think being able to save template inside the editor is a nice (and pretty common practice in design tools) to have at some point in the future. I already have ui for it (dropdown arrow next to title exposes action like save to template, make a copy etc..).
@samitron7 updated the brief to include template editing, though that requires additional UX specs for your consideration which I've added to the spec. Will live this in UX needed to finalize the open considerations, let me know what you think.
@o-fernandez Got it. I do have design consideration for this already and will pull the designs into figma when this ticket is up on my queue.