fix(DesignerV2): Persist search term in Redux to prevent reset (v5.961)#9204
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No changes needed |
| Commit Type | ✅ | No changes needed |
| Risk Level | ✅ | No changes needed |
| What & Why | ✅ | No changes needed |
| Impact of Change | ✅ | No changes needed |
| Test Plan | ✅ | No changes needed |
| Contributors | Optional: add contributor credits if applicable | |
| Screenshots/Videos | Not required for this non-visual change |
This PR passes review for title/body compliance. The advised risk level remains low, matching the submitter’s estimate.
Last updated: Thu, 21 May 2026 19:59:04 GMT
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
❌ Test Plan
⚪ Contributors
⚪ Screenshots/Videos
Summary Table
Overall: this PR passes title/body compliance, and the advised risk remains low, matching the submitter's estimate.Last updated: Thu, 21 May 2026 16:28:04 GMT |
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
❌ PR Validation ErrorAn error occurred while validating your PR. Please try again later or contact the maintainers. Error: Unexpected token '`', "```json |
❌ PR Validation ErrorAn error occurred while validating your PR. Please try again later or contact the maintainers. Error: Unexpected token '`', "```json |
❌ PR Validation ErrorAn error occurred while validating your PR. Please try again later or contact the maintainers. Error: API request failed with status 500 |
❌ PR Validation ErrorAn error occurred while validating your PR. Please try again later or contact the maintainers. Error: Unexpected token '}', ..."*\n---",""}" is not valid JSON |
Commit Type
Risk Level
What & Why
Fixes #9173 - The search text in the "Add a trigger/action" panel was being cleared whenever the panel was resized (enlarged/collapsed).
Root cause: Two issues combined:
widthwas included in thecommonPanelPropsuseMemo dependency array, causing child components to re-render on every resize pixel change.useState, which resets when the component re-mounts due to the parent re-render.Fix: Moved the search term to Redux state so it persists across re-renders, and removed the unused
widthprop fromcommonPanelProps(it wasn't part of theCommonPanelPropstype interface).Impact of Change
setDiscoverySearchTermaction anduseDiscoveryPanelSearchTermselector available in the panel stateTest Plan
Added tests in the related files:
panelRoot.spec.tsxContributors
Screenshots/Videos