Skip to content

feat: workflow presets for bundled pipeline steps#760

Open
mvanhorn wants to merge 1 commit into
mayocream:mainfrom
mvanhorn:fix/592-workflow-presets-bundled-pipeline-steps
Open

feat: workflow presets for bundled pipeline steps#760
mvanhorn wants to merge 1 commit into
mayocream:mainfrom
mvanhorn:fix/592-workflow-presets-bundled-pipeline-steps

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds reusable workflow presets that bundle pipeline steps (for example Detect+OCR, or Translate+Render), so a partial pipeline runs in one click instead of relying on the rigid Run All.

Why this matters

This maintainer-authored request (with community votes from RedRain77, Dear-moon, and TenviLi) asks for named step bundles, motivated by VRAM management (running the LLM and inpainting models in separate phases) and reviewability (getting clean inpainted images before translating) (#592). The backend already accepts an arbitrary ordered steps: string[] in StartPipelineRequest, and the toolbar's runStep helper already executes arbitrary chains, so this is a frontend-only addition that names and persists bundles.

A workflowPresets slice is added to the persisted zustand preferencesStore (mirroring the existing favoriteFonts pattern) with addWorkflowPreset/removeWorkflowPreset/renameWorkflowPreset actions and two built-in defaults. CanvasToolbar.tsx gets a presets dropdown that composes the corresponding chain pickers and calls the existing runStep with the deduped step list, reusing getConfig() engine-id resolution so no engine ids are hardcoded. A small dialog creates, names, and deletes presets. No Rust, RPC, or generated-schema changes.

Changes

  • workflowPresets slice + actions in preferencesStore, persisted, with seeded defaults.
  • Presets dropdown in CanvasToolbar that runs the composed step chain.
  • Create/name/delete dialog.

Testing

  • Store round-trips presets through persistence; add/remove/rename behave as expected.
  • Selecting a preset runs the deduped step chain.

Refs #592

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Thanks for your first PR to Koharu.

Please review our contribution guide before review:
https://koharu.rs/contribute/introduction/

In the PR description, include:

  • what changed
  • any user-visible behavior differences
  • how you verified the change

If AI helped produce the patch, a human still needs to review and understand it before submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant