Feature/workflow templates - #366
Merged
Merged
Conversation
- Migration: workflow_templates table with RLS, indexes, marketplace fields
- Types: WorkflowTemplate, TemplateDefinition, TemplateVariable, TemplateAgentDef,
TemplateTeamDef, TemplateTriggerDef
- DB: CRUD operations + installTemplate() core function that resolves
{{variable}} placeholders and auto-creates agents, teams, and triggers
- Hooks: usePublishedTemplates, useTemplateDetail, useInstallTemplate, etc.
- Variable resolution via deep JSON string replacement
- TemplateCard: icon, name, category badge, agent/team/trigger badges, stats - TemplateInstallModal: dynamic variable form, preview of created resources, install button, success state - Marketplace.tsx: 'Templates' browse tab alongside Agents/Teams, grid rendering with TemplateCard, install flow via TemplateInstallModal
5 starter templates with detailed prompts, variables, and team configs: - Weekly Sports Coach (CRON, 1 agent, 4 variables) - Content Research Pipeline (3 agents, pipeline team, 3 variables) - Daily News Digest (2 agents, pipeline + daily CRON, 3 variables) - Code Review Assistant (1 agent, webhook trigger, 3 variables) - Weekly Report Generator (2 agents, pipeline + weekly CRON, 3 variables)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- hooks: use inline query keys (matching marketplace pattern) to fix @typescript-eslint/no-unsafe-* errors, remove non-null assertions - db: remove unused idx param, fix unnecessary conditionals on non-nullable types, replace unsafe rpc() with direct update - modal: fix unnecessary ?? on non-nullable default, fix error handling - marketplace: remove unused refetchTemplates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Built a complete Workflow Templates system for CrewForm that enables users to install pre-built AI workflow blueprints with fill-in-the-blank variables. One click creates agents, teams, and CRON triggers automatically.
Related Issue
Type of Change
How Has This Been Tested?
Screenshots (if applicable)
Checklist
npm run lintand there are no errorsnpm run testand all tests pass