Skip to content

feat(automations): Search and page the full accessible collection - #1978

Merged
dcramer merged 4 commits into
mainfrom
feat/automation-collection-search
Sep 28, 2026
Merged

dcramer merged 4 commits into
mainfrom
feat/automation-collection-search

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Closes #1972. Next slice of #1970, after the row changes in #1976.

Replace the 100-per-scope cutoff with SQL search, filters, sorting, pagination, and full access-scoped counts. Search titles, instructions, and event resources. Keep existing ownership and linked-workspace access rules, including private Destinations.

The dashboard adds All accessible, Mine, and Public scopes plus creator, Destination, type, and state filters. Filters, sort, and page stay in the URL. Details load directly by ID, without relying on the current page. Existing results stay visible during refresh, with separate loading, empty, and retry states.

Overview counts and execution charts use the accessible collection. Pause and Needs attention remain in #1975; editing remains in #1973 and #1974.

via David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 28, 2026 6:18pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

10 screenshot changes — 10 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automations List · Desktop
Automations List · Desktop
Changed
Automations List · Mobile
Automations List · Mobile
Changed
Automations Runs · Desktop
Automations Runs · Desktop
Changed
Automations Runs · Mobile
Automations Runs · Mobile
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Show 4 more changed screenshots
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Event Log · Desktop
Conversation Event Log · Desktop
Changed
Conversation Image Reply · Desktop
Conversation Image Reply · Desktop
Changed
Gallery Transcripts · Desktop
Gallery Transcripts · Desktop
Changed

@dcramer
dcramer marked this pull request as ready for review September 28, 2026 18:24
@dcramer
dcramer merged commit ecd5983 into main Sep 28, 2026
46 checks passed
@github-actions github-actions Bot added the risk: high PR risk score: high label Sep 28, 2026
@dcramer
dcramer deleted the feat/automation-collection-search branch September 28, 2026 18:24

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b38c04b. Configure here.

}),
readAutomationExecutionSummaries("event", "junior", {
automationIds: ids,
}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Empty page IDs break list query

High Severity

Task hydration already skips work when ids is empty, but execution summaries still pass that empty array into inArray. An empty array is truthy, so the filter is applied. inArray typically rejects an empty list, which makes any empty collection (new viewer, no matches, or a viewer with no Slack teamIds) fail the whole automations request instead of returning an empty page.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b38c04b. Configure here.

const [scope, setScope] = useSearchParamEnum(
"scope",
"mine",
AUTOMATION_SCOPES,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overlong search is silently dropped

Low Severity

Per-field safeParse discards q when it fails max(200), while the search box and URL still keep the typed text. The list then loads the unfiltered page, so a pasted instruction looks like a failed search rather than a rejected query.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b38c04b. Configure here.

This branch was successfully deployed

1 active deployment
Preview – junior-docs — b38c04bb Deployed Sep 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search and filter the full automation collection

1 participant