[Cases] Use templates when creating a case#185880
[Cases] Use templates when creating a case#185880cnasikas merged 56 commits intoelastic:feat/case_templatesfrom
Conversation
| margin-bottom: 0 !important; | ||
| `} | ||
| type={getConnectorIcon(triggersActionsUi, connector.actionTypeId)} | ||
| type={ |
There was a problem hiding this comment.
This is needed to avoid the following bug:
Screen.Recording.2024-06-11.at.3.59.54.PM.mov
The icon class can be a lazy-loaded component. React will fall back to the nearest Suspense causing the flyout on each render of the SVG icon to appear and disappear. By adding suspense here we isolate the loading inside the select option. With the fix:
Screen.Recording.2024-06-11.at.4.18.06.PM.mov
Thanks @umbopepato! Your investigation of the flaky tests made me figure it out!
x-pack/plugins/cases/public/components/case_form_fields/assignees.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/cases/public/components/case_form_fields/connector.tsx
Outdated
Show resolved
Hide resolved
|
@js-jankisalvi About:
@adcoelho I fixed the test with the infinitive loop here |
Created issue
yes, sure 👍 |
|
@js-jankisalvi Thank! Fixed in |
js-jankisalvi
left a comment
There was a problem hiding this comment.
Verified locally, works as expected 👍
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @cnasikas |
|
I've created a docs issue because I did not see one. |

Summary
This PR adds the ability for users to select a template when creating a case. When a user selects a template the cases form fields are populated with the values from the template. The solution picker in the flyout changed as:
Bug fixes
Testing
Fixes: #181871
Depends on: #185877
Checklist
Delete any items that are not applicable to this PR.
For maintainers