Skip to content

Feature/workflow templates - #366

Merged
vincentgrobler merged 5 commits into
mainfrom
feature/workflow-templates
Apr 22, 2026
Merged

Feature/workflow templates#366
vincentgrobler merged 5 commits into
mainfrom
feature/workflow-templates

Conversation

@vincentgrobler

@vincentgrobler vincentgrobler commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

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

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • ♻️ Refactor (no functional changes)
  • 🧪 Test update

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Browser testing (specify browsers)

Screenshots (if applicable)

Checklist

  • My code follows the project's coding standards
  • I have run npm run lint and there are no errors
  • I have run npm run test and all tests pass
  • I have added tests for my changes (if applicable)
  • I have updated the documentation (if applicable)
  • My source files have AGPL licence headers
  • My changes generate no new TypeScript errors

- 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)
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crewform Ready Ready Preview, Comment Apr 22, 2026 6:27am

- 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
@vincentgrobler
vincentgrobler merged commit 315f782 into main Apr 22, 2026
8 checks passed
@vincentgrobler
vincentgrobler deleted the feature/workflow-templates branch April 22, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant