Skip to content

Conversation

@Pfannkuchensack
Copy link
Contributor

@Pfannkuchensack Pfannkuchensack commented Dec 16, 2025

Summary

Adds a new StylePresetField field type that enables database-driven dropdown selection of style presets in the workflow editor.

Changes:

  • Backend: New StylePresetField class in fields.py
  • Frontend: Added zod schemas, type guards, and field type definitions for StylePresetField
  • Frontend: Created StylePresetFieldInputComponent with Combobox that fetches presets via useListStylePresetsQuery()
  • Frontend: Registered field in InputFieldRenderer and added Redux action in nodesSlice
  • Frontend: Added translations for preset selection UI

Related Issues / Discussions

#8664

QA Instructions

  1. Start the application and open the workflow editor
  2. Add a "Prompt Template" node
  3. Verify the "Style Preset" field shows a dropdown with all available style presets (default + user presets)
  4. Select a preset and connect the node outputs to a prompt input
  5. Run the workflow and verify the template is applied correctly (replaces {prompt} placeholder)

Merge Plan

Standard merge, no special handling required.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

claude and others added 2 commits December 16, 2025 01:53
Add a new node that applies Style Preset templates to prompts in workflows.
The node takes a style preset ID and positive/negative prompts as inputs,
then replaces {prompt} placeholders in the template with the provided prompts.

This makes Style Preset templates accessible in Workflow mode, enabling
users to apply consistent styling across their workflow-based generations.
Adds a new StylePresetField type that enables dropdown selection of
style presets from the database in the workflow editor.

Changes:
- Add StylePresetField to backend (fields.py)
- Update Prompt Template node to use StylePresetField instead of string ID
- Add frontend field type definitions (zod schemas, type guards)
- Create StylePresetFieldInputComponent with Combobox
- Register field in InputFieldRenderer and nodesSlice
- Add translations for preset selection
@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations frontend PRs that change frontend files labels Dec 16, 2025
@Pfannkuchensack Pfannkuchensack changed the title Claude/add prompt template node r zr ln Feature: add prompt template node Dec 16, 2025
@Pfannkuchensack Pfannkuchensack marked this pull request as ready for review December 16, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants