[Snapshot + Restore] Migrate to new page layout structure#101811
[Snapshot + Restore] Migrate to new page layout structure#101811alisonelizabeth merged 4 commits intoelastic:masterfrom
Conversation
|
@cchaos / @cjcenizal curious on your thoughts on how to best format content within a step-based wizard. I started applying the Without it, I feel like the "Cancel" button sometimes get a little lost at the bottom. But maybe I just need to get used to the new layout 😄 . |
| const renderLoading = () => { | ||
| return errorLoadingPolicy ? ( | ||
| <SectionLoading> | ||
| return isLoadingPolicy ? ( |
There was a problem hiding this comment.
I don't think this was behaving correctly before. I don't see why we would want to check errorLoadingPolicy to determine whether we should render a loading state or not.
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
|
@alisonelizabeth I remember noticing that weird behavior with Alison, I noticed the breadcrumbs aren't updated in the privileges checks, making the UX seem a little disconnected from the rest of Kibana. If this is existing behavior, mind creating an issue? |
Great catch @cjcenizal! This does appear to be an existing bug. I opened #102109. |
cjcenizal
left a comment
There was a problem hiding this comment.
Thanks for getting this one migrated! Tested locally, code LGTM.
| title, | ||
| error, | ||
| actions, | ||
| centerErrorContent, |
There was a problem hiding this comment.
WDYT of using a convention of prefixing boolean flags with is, can, and so on, to make their role clearer? For example, isCentered reads more clearly to me as a flag, vs. centerErrorContent which sounds more like a function due to the initial verb.
There was a problem hiding this comment.
👍 agreed - fixed.
| export { RepositoryVerificationBadge } from './repository_verification_badge'; | ||
| export { RepositoryTypeLogo } from './repository_type_logo'; | ||
| export { SectionLoading } from './section_loading'; | ||
| export { SectionLoading, InlineLoading, PageLoading } from './loading'; |
There was a problem hiding this comment.
I love the addition of these components. In the future we can explore moving them to es_ui_shared and using them broadly across our apps.
|
Looks like when a |
Thanks @cchaos! I've added |
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |






This PR migrates Snapshot + Restore to use the new page layout.
Related to #100748
As part of this work, I added a new
PageErrorcomponent toes_ui_sharedto handle full-page errors.Screenshots
Screenshots
Policy list
Note: I did not take screenshots of every tab, as the layout change was made in
home.tsxand the behavior should be the same for all tabs.Privileges check (all routes)


Create policy



Edit policy



Add repository

Edit repository



Restore snapshot


