-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snapshot + Restore] Migrate to new page layout structure #101811
[Snapshot + Restore] Migrate to new page layout structure #101811
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this one migrated! Tested locally, code LGTM.
title, | ||
error, | ||
actions, | ||
centerErrorContent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 agreed - fixed.
@@ -11,7 +11,7 @@ export { RepositoryDeleteProvider } from './repository_delete_provider'; | |||
export { RepositoryForm } from './repository_form'; | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
PageError
component toes_ui_shared
to handle full-page errors.Screenshots
Screenshots
Policy list
tNote: I did not take screenshots of every tab, as the layout change was made in
home.tsx
and the behavior should be the same for all tabs.Privileges check (all routes)
Create policy
Edit policy
Add repository
Edit repository
Restore snapshot