Skip to content

Add status filter dropdown to Activity requests table#19157

Merged
jvcalderon merged 6 commits into
operations/statusfrom
operations/actions-timeline-2
Jul 9, 2026
Merged

Add status filter dropdown to Activity requests table#19157
jvcalderon merged 6 commits into
operations/statusfrom
operations/actions-timeline-2

Conversation

@jvcalderon

@jvcalderon jvcalderon commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Addresses

Description

Adds a status filter dropdown (All statuses / Processing / Needs input / Completed / Failed) to the Activity page, placed left-aligned between the summary tiles and the requests table.

The filter is server-side rather than client-only, so pagination and the "Showing X-Y of Z items" count stay accurate for the selected status instead of only reflecting whatever happened to be on the currently loaded page:

  • New CouchDB view keyed by [status, updatedAt] for status-scoped, paginated queries (packages/server/src/sdk/workspace/ai/agentRequests/views.ts).
  • fetchRequests now accepts an optional status; the controller validates it against AgentRequestStatus before passing it through.
  • AgentRequestStatus is now derived from a single AGENT_REQUEST_STATUSES const array (packages/types/src/documents/global/agentRequests.ts) instead of being duplicated as a separate validation list, following the same pattern already used for UrlValidationProtocol.
  • Real-time updates re-fetch the current page when a filter is active, since a status change can move a request in or out of the filtered set in a way a local patch can't express correctly.

Screen recording

Screen.Recording.2026-07-06.at.16.52.43.mov

Launchcontrol

Adds a status filter to the Activity page so you can quickly narrow the requests table down to just Processing, Needs input, Completed, or Failed requests.

Review in cubic

Adds a status filter (All statuses / Processing / Needs input /
Completed / Failed) to the Activity page, backed by a new server-side
paginated query rather than a client-only filter, so the row count and
pagination stay accurate for the selected status.

- New CouchDB view keyed by [status, updatedAt] for status-scoped,
  paginated queries.
- fetchRequests accepts an optional status; the controller validates
  it against AgentRequestStatus.
- AgentRequestStatus is now derived from a single AGENT_REQUEST_STATUSES
  const array instead of being duplicated as a validation list.
- Real-time updates re-fetch the current page when a filter is active,
  since a status change can move a request in or out of the filtered set.
@github-actions github-actions Bot added the size/m label Jul 6, 2026
@jvcalderon
jvcalderon marked this pull request as ready for review July 6, 2026 15:29
@readme-ai-writer

readme-ai-writer Bot commented Jul 6, 2026

Copy link
Copy Markdown

📚 No documentation changes were needed for this PR.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 8 files

Confidence score: 5/5

  • Safe to merge after the addressed issues were fixed.

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Base automatically changed from operations/actions-timeline to operations/status July 8, 2026 14:51

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 1 file (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

@jvcalderon
jvcalderon merged commit 77c2319 into operations/status Jul 9, 2026
33 checks passed
@jvcalderon
jvcalderon deleted the operations/actions-timeline-2 branch July 9, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants