Skip to content

feat: add criteria & prompt feature filtering to runs page - #164

Open
Cedric Vidal (cedricvidal) wants to merge 2 commits into
mainfrom
feat/runs-filter-criteria-features
Open

Cedric Vidal (cedricvidal) wants to merge 2 commits into
mainfrom
feat/runs-filter-criteria-features

Conversation

@cedricvidal

Copy link
Copy Markdown
Collaborator

Original author: Cedric Vidal (@cedricvidal)

Summary

Add criteria and prompt feature filtering to the Runs page, resolving #163.

Changes

API (apps/api/)

  • New query params on GET /api/v1/requests:
    • scenarioCriteria — comma-separated criteria IDs (e.g. has_azure,has_cloud). Filters runs whose scenario.criteria contains ALL specified IDs ($all).
    • promptFeatures — comma-separated feature IDs (e.g. asks_for_api,asks_for_azure). Resolves task prompts with ALL specified features detected, then filters runs by matching taskPromptId.
  • Extracted filter-building logic into request-filters.ts for testability.
  • 14 unit tests in request-filters.test.ts covering parsing and filter construction.

Portal (apps/portal/)

  • Extended api.listRuns() to pass scenarioCriteria and promptFeatures params.
  • New component PromptFeatureFilterBar — reusable toggle-badge filter bar for prompt features (mirrors existing CriteriaFilterBar).
  • Updated RunsList - Updated RunsList - **Updat f- **Updatio - Updated RunsList - Updated RunsList - **Updat f- **Updatio ing
  • **Upth use- **Upth use- **Upthse- **Upth use- **Upth use- **Upthse- **Upth use- at- **Upth use- **Upth use- **Upthse- **Upth use- **Upth use- **Upthse- **Upth use- at- **Upth use- **Upth use- **Upthse- **Upth use- **Upth use- **Upthse- **Upthtracted filter utilities |
    | apps/api/src/request-filters.test.ts | New — 14 unit tests |
    | apps/api/src/index.ts | Added new query param handling |
    | apps/portal/src/lib/api.ts | Extended l| apps/portal/src/lib/api.ts| Extendedl| apps/portal/src/lib/api.ts | Ex| | apps/portal/src/lib/api.ts | Extended l| apps/portal/src/lib/api.ts| Extendedl| ba| `apps/portal/src/lib/api
    Closes The runs page should allow filtering by criteria and task prompt feature #163

…T /requests

Add two new server-side filters to GET /api/v1/requests:
- scenarioCriteria: comma-separated criteria IDs, filters runs whose
  scenario.criteria contains ALL specified IDs ($all)
- promptFeatures: comma-separated feature IDs, resolves task prompts
  with ALL features detected, then filters runs by those taskPromptIds

Extract filter-building logic into request-filters.ts for testability.
Include 14 unit tests covering parsing and filter construction.

Closes #163 (API layer)
- Extend api.listRuns() to pass scenarioCriteria and promptFeatures params
- Create PromptFeatureFilterBar component (mirrors CriteriaFilterBar)
- Add CriteriaFilterBar for scenario criteria and PromptFeatureFilterBar
  to RunsList page with URL search param persistence
- Both filters use AND semantics: selecting multiple items shows runs
  matching ALL of them

Closes #163
@manekinekko Wassim Chegham (manekinekko) added area: portal Scope web portal, pages, and user-facing components. language: javascript Work involving JavaScript code, tooling, or dependencies. topic: testing Test coverage, test infrastructure, and validation quality. topic: ui Portal, visual presentation, layout, and interface components. type: enhancement New functionality or improvements to existing behavior. area: api Scope REST API, run orchestration, SSE streaming, and endpoints. and removed author: cedricvidal labels Sep 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: api Scope REST API, run orchestration, SSE streaming, and endpoints. area: portal Scope web portal, pages, and user-facing components. language: javascript Work involving JavaScript code, tooling, or dependencies. topic: testing Test coverage, test infrastructure, and validation quality. topic: ui Portal, visual presentation, layout, and interface components. type: enhancement New functionality or improvements to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The runs page should allow filtering by criteria and task prompt feature

2 participants