Skip to content

[Feature] Add "All" category to template workflows #3931

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

Merged
merged 9 commits into from
Jun 4, 2025

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented May 18, 2025

Adds "All" category to template workflows and refactors the template management into a dedicated composable. This PR improves workflow template organization by providing a centralized way to browse all available templates regardless of source, supported by proper test coverage.

Changes to data structure will also make it easier to add a search feature.

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne force-pushed the template-all-category branch 2 times, most recently from 0a5c424 to af71601 Compare May 20, 2025 19:35
@christian-byrne christian-byrne force-pushed the template-all-category branch from b27f751 to 2a84c6a Compare June 4, 2025 06:01
@christian-byrne christian-byrne force-pushed the template-all-category branch from 2a84c6a to 6242dd8 Compare June 4, 2025 06:02
@christian-byrne
Copy link
Contributor Author

The two failing tests are from the default category now being "All" rather than "Basics"

Selection_1470

Selection_1469

@christian-byrne christian-byrne marked this pull request as ready for review June 4, 2025 07:58
@christian-byrne christian-byrne added the New Browser Test Expectations New browser test screenshot should be set by github action label Jun 4, 2025
@christian-byrne
Copy link
Contributor Author

christian-byrne commented Jun 4, 2025

Would like to merge this. Note:

  • This was actually part of the original design for templates feature, but considered too much effort to implement at the time. So approval from design shouldn't be necessary.
  • Will make implementing search feature easy ([Feature Request] Make workflow templates searchable #3736). (We just auto-focus the All tab when searching.)

Any objection @webfiltered?

Copy link
Contributor

@webfiltered webfiltered left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM - I think the computed changes (last two) should go in.

The unused func nits aren't important though.

…- addresses @webfiltered's performance suggestions

Convert repeated function calls for template title and description to computed properties in TemplateWorkflowList.vue to avoid redundant computations during rendering.
…addresses @webfiltered's API cleanup suggestion

Remove fetchTemplateJson from useTemplateWorkflows exports since it's only used internally within the composable. Update corresponding test mocks.
@christian-byrne christian-byrne merged commit 73be826 into main Jun 4, 2025
10 checks passed
@christian-byrne christian-byrne deleted the template-all-category branch June 4, 2025 09:58
lordTyrion pushed a commit to playbook3d/ComfyUI_frontend that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Browser Test Expectations New browser test screenshot should be set by github action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants