Skip to content

fix(triggers): include fired and cancelled in instance status enum#3016

Open
danielkov wants to merge 1 commit into
mainfrom
fix/trigger-status-enum-fired-cancelled
Open

fix(triggers): include fired and cancelled in instance status enum#3016
danielkov wants to merge 1 commit into
mainfrom
fix/trigger-status-enum-fired-cancelled

Conversation

@danielkov
Copy link
Copy Markdown
Contributor

Summary

Triggers list response advertised status as active | paused, but wake triggers transition through fired and cancelled too. The dashboard's generated SDK rejected those payloads with a generic "Response validation failed" and the triggers page failed to load whenever any wake had fired or been cancelled.

  • Widens the Goa enum on the shared TriggerInstance output type. CreateTriggerInstanceForm and UpdateTriggerInstanceForm are left at active | paused — terminal states are system-written, not user-settable.
  • Regenerates Goa server code, the internal OpenAPI spec, and the dashboard SDK.
  • Dashboard StatusBadge gets explicit fired and cancelled cases so those instances render with a real label instead of falling through to "Paused".

✻ Clauded...

The triggers list endpoint advertised status as `active|paused`, but wake
triggers transition through `fired` and `cancelled` too. The dashboard's
generated SDK rejected the payload with a generic "Response validation
failed", breaking the triggers page. Widens the Goa enum on the output
type (CreateTriggerInstanceForm and UpdateTriggerInstanceForm inputs are
left unchanged — those are user-settable states only) and regenerates
the server + internal SDK. Dashboard StatusBadge gains explicit fired
and cancelled cases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@danielkov danielkov requested review from a team as code owners May 23, 2026 16:58
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 23, 2026

🦋 Changeset detected

Latest commit: e9115ac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
server Patch
dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

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

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 23, 2026 4:58pm

Request Review

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