Skip to content

feat: Add workspace-scoped workflow runs view and controls#2233

Merged
daryllimyt merged 15 commits intomainfrom
feat/wf-runs-view
Mar 4, 2026
Merged

feat: Add workspace-scoped workflow runs view and controls#2233
daryllimyt merged 15 commits intomainfrom
feat/wf-runs-view

Conversation

@daryllimyt
Copy link
Contributor

@daryllimyt daryllimyt commented Mar 2, 2026

Checklist

  • Read CONTRIBUTING.md.
  • PR title is short and non-generic (see previously merged PRs for examples).
  • PR only implements a single feature or fixes a single bug.
  • Tests passing (uv run pytest tests)?
  • Lint / pre-commits passing (pre-commit run --all-files)?

Description

This PR adds a consolidated workflow runs management experience per workspace, backed by workspace-scoped Temporal queries and controls.

What’s included:

  • Backend workflow execution search API improvements with workspace-scoped filtering, status/relation/time/duration/user/trigger filters, cursor pagination support, and published-execution filtering.
  • Workflow run management actions for cancel/terminate/reset and bulk reset support in the runs workflow.
  • New workspace runs UI page with grouped status sections, server-side filtering/search, pagination controls, and run-level/bulk controls.
  • Frontend navigation/header integration for the runs view.
  • Additional unit/API test coverage for workflow execution search and workspace scoping behavior.

Related Issues

N/A

Screenshots / Recordings

N/A

Steps to QA

  1. Open the workspace runs page in the UI.
  2. Verify status-grouped runs render and server-side filters/search paginate correctly.
  3. Verify run actions (View workflow, Cancel, Terminate, Reset) and bulk actions behave as expected.
  4. Verify non-running runs do not expose terminate/cancel actions where blocked by UX rules.
  5. Verify backend search validations (time/duration ranges, cursor mismatch) return expected errors.

Summary by cubic

Adds a workspace-level Runs page with scoped search, per-run/bulk controls (cancel, terminate, reset), and periodic polling. Backend adds a workspace-scoped run search API, reset endpoints, and a minimal run model with workflow title, all strictly scoped to the workspace.

  • New Features

    • Backend: workspace-scoped search with filters (status include/exclude, relation, time/duration, user, trigger), published-only, cursor pagination (limit up to 500), typed responses; minimal run model includes workflow_id/title; reset points, reset (with reapply modes), and bulk reset; scheduled search attributes include ExecutionType.PUBLISHED.
    • Frontend: Runs page with grouped status, server-side search/pagination, periodic polling, and per-run/bulk actions; hides cancel/terminate when not running; sidebar/header nav; shared FilterMultiSelect reused by runs and cases.
    • Tests: HTTP/unit coverage for search limits, scoping, reset, and scheduled/manual/API start paths.
  • Bug Fixes

    • Improved cursor pagination and query cache keys to avoid skipped or stale pages.
    • Enforced workspace scope for execution queries to prevent cross-workspace access.
    • Made debug result serialization lazy to reduce overhead on large runs.
    • Tightened search route typing for safer params and responses.
    • Set Runs page title via Next.js metadata.

Written for commit 4b891c4. Summary will update on new commits.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 21 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="frontend/src/hooks/use-workflow-runs.ts">

<violation number="1" location="frontend/src/hooks/use-workflow-runs.ts:223">
P2: Include workspaceId in the reset-points queryKey to avoid cross-workspace cache collisions when executionIds overlap.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7d89f46c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@blacksmith-sh

This comment has been minimized.

@daryllimyt daryllimyt changed the title Add workspace-scoped workflow runs view and controls feat: Add workspace-scoped workflow runs view and controls Mar 3, 2026
@daryllimyt daryllimyt requested a review from jordan-umusu March 3, 2026 19:46
@daryllimyt daryllimyt merged commit 23f0153 into main Mar 4, 2026
20 checks passed
@daryllimyt daryllimyt deleted the feat/wf-runs-view branch March 4, 2026 23:08
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.

2 participants