[Watcher] Migrate to use new page layout#101956
[Watcher] Migrate to use new page layout#101956alisonelizabeth merged 7 commits intoelastic:masterfrom
Conversation
| dispatch({ command: 'setWatch', payload: loadedWatch }); | ||
| } catch (error) { | ||
| dispatch({ command: 'setError', payload: error }); | ||
| dispatch({ command: 'setError', payload: error.body }); |
There was a problem hiding this comment.
This addresses a bug I noticed while testing - the error handling wasn't working as expected here, as getPageErrorCode(loadError) expects a statusCode.
| <EuiPageContent> | ||
| <PageError /> | ||
| <EuiPageContent verticalPosition="center" horizontalPosition="center" color="danger"> | ||
| <PageError errorCode={errorCode} /> |
There was a problem hiding this comment.
This addresses a bug I noticed while testing - the error handling wasn't working as expected here since we weren't passing an errorCode prop.
|
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
|
@elasticmachine merge upstream |
|
@alisonelizabeth Did you try using |
sabarasaba
left a comment
There was a problem hiding this comment.
Nice job @alisonelizabeth! Code lgtm (great catch on the getPageErrorCode ), tested locally and everything seems to be alright.
…er/new_page_layout
Thanks for the suggestion! I updated the forms to use |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |


This PR migrates Watcher to use the new page layout. It also addresses a couple bugs I noticed with how we were rendering errors (see inline comments for more details).
Related to #100748
Screenshots
Screenshots
Watch list




Threshold watch


Edit watch loading/error states


JSON watch



System watch

Watch details



