Add status filter dropdown to Activity requests table#19157
Merged
Conversation
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.
jvcalderon
marked this pull request as ready for review
July 6, 2026 15:29
|
📚 No documentation changes were needed for this PR. |
Contributor
There was a problem hiding this comment.
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
Contributor
There was a problem hiding this comment.
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
Dakuan
approved these changes
Jul 9, 2026
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.
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:
[status, updatedAt]for status-scoped, paginated queries (packages/server/src/sdk/workspace/ai/agentRequests/views.ts).fetchRequestsnow accepts an optionalstatus; the controller validates it againstAgentRequestStatusbefore passing it through.AgentRequestStatusis now derived from a singleAGENT_REQUEST_STATUSESconst array (packages/types/src/documents/global/agentRequests.ts) instead of being duplicated as a separate validation list, following the same pattern already used forUrlValidationProtocol.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.