Skip to content

fix(designer-v2): change actiontype filter value from 'trigger' to 'triggers'#9130

Open
lisajmeyer wants to merge 1 commit intoAzure:mainfrom
lisajmeyer:patch-1
Open

fix(designer-v2): change actiontype filter value from 'trigger' to 'triggers'#9130
lisajmeyer wants to merge 1 commit intoAzure:mainfrom
lisajmeyer:patch-1

Conversation

@lisajmeyer
Copy link
Copy Markdown

@lisajmeyer lisajmeyer commented Apr 30, 2026

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

What & Why

Fixes a bug in the v2 trigger browse panel where the actiontype filter is added as "trigger" singular, but in the connector browse the filter is checked against "triggers" plural, and so the filter always defaults to showing actions. This has two side effects:

  1. Connectors that only have triggers (no actions) do not appear when browsing for triggers
  2. Connectors that only have actions do appear as options when selecting a trigger

This is only an issue when browsing via categories. Searching works as expected

Impact of Change

  • Users:
  • Developers:
  • System:

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in:

Contributors

Screenshots/Videos

Copilot AI review requested due to automatic review settings April 30, 2026 19:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes the v2 trigger browse panel filter mismatch by aligning actionType filter values with what the connector browse logic expects.

Changes:

  • Update filters.actionType values from singular to plural (triggertriggers, actionactions) in BrowseView.

categoryKey={selectedBrowseCategory.key}
connectorFilters={category.connectorFilters}
filters={{ actionType: isTrigger ? 'trigger' : 'action' }}
filters={{ actionType: isTrigger ? 'triggers' : 'actions' }}
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

These string literals are part of a shared contract between BrowseView and ConnectorBrowse filtering. To prevent future regressions (e.g., singular/plural mismatches), strongly consider replacing the inline strings with a shared enum/union type or exported constants (e.g., ActionTypeFilter.Triggers / Actions) used by both the code that sets the filter and the code that interprets it.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

🔒 AI Validation Pending

This PR is from an external contributor. AI validation will be performed after manual review by a maintainer.

Maintainers: Add the external-approved label to this PR after reviewing the changes to enable AI validation.

@lisajmeyer lisajmeyer changed the title fix(designer-v2): change filter actionType values from 'trigger' to 'triggers' fix(designer-v2): change actiontype filter value from 'trigger' to 'triggers' Apr 30, 2026
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.

2 participants