-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[App Search] Convert Documents views to new page template + minor UI polish #102807
Conversation
- per Davey's previous approval
@@ -26,7 +27,7 @@ export const SearchExperienceContent: React.FC = () => { | |||
|
|||
const { isMetaEngine, engine } = useValues(EngineLogic); | |||
|
|||
if (!wasSearched) return null; | |||
if (!wasSearched) return <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.
👍
rightSideItems: | ||
myRole.canManageEngineDocuments && !isMetaEngine ? [<DocumentCreationButton />] : [], | ||
}} | ||
isEmptyState={!engine.document_count} |
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.
Oh, totally forgot to mention - I have plans to pull this out to a flat isEngineEmpty
selector, but I'm going to do that in a later tech debt/polish PR, since I'll also be using that check for the engine overview
Merging for speed / to reduce churn on merges/rebases tomorrow - @JasonStoltz if you have any issues or change requests with this PR, definitely let me know and I can open a follow-up |
…polish (elastic#102807) * Convert Documents view to new page template * [UI polish] Move empty state to top-level instead of showing full UI - per Davey's previous approval * [UX polish] Show loading indicator on initial documents page load * Convert single Document detail view to new page template * Update router
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…polish (#102807) (#102824) * Convert Documents view to new page template * [UI polish] Move empty state to top-level instead of showing full UI - per Davey's previous approval * [UX polish] Show loading indicator on initial documents page load * Convert single Document detail view to new page template * Update router Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Summary
Follow up to #102170 - converts more App Search pages to the new KibanaPageTemplate. I'm attempting to break up the AS layout conversion into smaller, easier to review chunks.
This PR handles the Documents view, and additionally handles some UI polish in the form of moving the empty state top level (approved by Davey), and adding a loading indicator on initial page load. As always, follow along by commit (and turn off whitespace diffs)!
Screencaps
New empty state:
Walkthrough screencap + loading state:
Checklist