Skip to content

[web-shared][web] Fix events tab search#2107

Open
karthikscale3 wants to merge 113 commits into
mainfrom
feat/events-exact-id-search
Open

[web-shared][web] Fix events tab search#2107
karthikscale3 wants to merge 113 commits into
mainfrom
feat/events-exact-id-search

Conversation

@karthikscale3
Copy link
Copy Markdown
Contributor

Summary

  • Replace client-side Events tab substring search with server-backed exact ID lookup
  • Support full correlation IDs (step_, wait_, hook_) and event IDs (evnt_)
  • Show loading skeleton while fetching, toast on Enter with partial IDs, and scoped results to the current run

Test plan

  • Open a workflow run in @workflow/web → Events tab
  • Paste a full step_* ID → verify all step events load (including those not on the first page)
  • Paste a full evnt_* ID → verify single event loads
  • Paste a full wait_* / hook_* ID → verify correlated events load
  • Paste a partial ID and press Enter → verify toast: "Enter a full correlation ID or event ID"
  • Clear search → verify default paginated list returns
  • Change sort order during an active search → verify results re-fetch in new order
  • Run pnpm --filter @workflow/web-shared test -- exact-event-search-id.test.ts

Made with Cursor

Workflow-server only accepts step, wait, and hook correlation IDs — not wrun_. Update the search placeholder and validation toast accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
@karthikscale3 karthikscale3 changed the title Add exact ID search to Events tab [web-shared][web] Fix events tab search May 25, 2026
Normalize lowercase ULIDs, scope Enter toasts to ID-like input, abort stale searches, disable search when unavailable, expand parser tests, and cap correlation pagination in workflow web.

Co-authored-by: Cursor <cursoragent@cursor.com>
karthikscale3 and others added 2 commits May 25, 2026 13:24
Guard successful exact-ID search against aborted requests, invalidate in-flight work when the input clears, and return truncation metadata from correlation pagination.

Co-authored-by: Cursor <cursoragent@cursor.com>
Return a discriminated union from onExactIdSearch and show search errors in the Events tab instead of mislabeling them as missing IDs.

Co-authored-by: Cursor <cursoragent@cursor.com>
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