-
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
Kibana developer examples landing page #67049
Kibana developer examples landing page #67049
Conversation
4e758a1
to
2349a9e
Compare
19b7d12
to
98a8b6b
Compare
@elasticmachine merge upstream |
(jenkins upgrade required killing all jobs) |
c472350
to
fb7fc46
Compare
6c05925
to
fa2b9e6
Compare
Played a bit, really nice! Also images make it a lot more lively 👍 (They are working in latest version!) Some nits I have:
|
…amples-landing-page
I had it like that originally but it seemed to cause issues with nested links, like I'd click on the github link to the README and it would navigate me there, but also trigger the link on the Card. Also, much more minor, I didn't like the hover effect.
I was waiting on elastic/eui#1668 to make this work with the EUI component I used. Using both
Interesting I had no idea we had a markdown component. I originally supported passing a string or just any react node to this card, but then I lost my very easy ability to search the description text, so I opted for text only. Better for searching, poorer for nice display. However, I don't think we really want a ton of text there. Essentially, it's for searching. Then the longer, more organized content, should be rendered in the landing page of the example.
You mean with where I define the list links? links: [
{
label: 'README',
href: 'https://github.com/elastic/kibana/blob/master/src/plugins/bfetch/README.md',
iconType: 'logoGithub',
size: 's',
target: '_blank',
},
], ? Are you sure I need to add that there? If it internally uses Or do you mean add that somehow here?: |
Have you tried to stop propagation in internal link handler?
Looks like internally
But if we do navigation ourselves, like in this case, then ideally we should handle it when calling |
Ready for another review @elastic/kibana-app-arch |
…amples-landing-page
Ping again 🙏 |
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 really like these changes! Once we have support for plugins in folders, I could see us taking advantage of this here as well.
nit: I don't see examples/bfetch_explorer/public/bfetch.png
being used anywhere... should we delete it?
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.
LGTM!
I will follow up with cleaning up state management demo apps and grouping it under one section
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: [ML] DFAnalytics results: ensure ml result fields are shown in data grid (elastic#68305) [security_solution] enable react-hooks/exhaustive-deps (elastic#68470) Closes elastic#66867 by adding missing, requried API params (elastic#68465) [Telemetry] collect number of visualization saved in the past 7, 30 and 90 days (elastic#67865) [Logs UI] View in context tweaks (elastic#67777) Kibana developer examples landing page (elastic#67049) Bump decompress package version (elastic#68386) fix elastic#66185 (elastic#66186) Bump pdfmake package version (elastic#68395) Unskip embeddables/adding_children suite (elastic#68111) Add embed mode options in the Share UI (elastic#58435) Adding key to avoid react warning (elastic#68491)
* Kibana developer examples * Batch explorer tests should be run in examples config * Fix tests * add codeowner for new developer examples plugin & readme cleanup * Try to frame embeddable wording based on what a developer's goals are. * Add noopener noreferer, fix bad merge * Remove bfetch.png Co-authored-by: Elastic Machine <[email protected]> # Conflicts: # .github/CODEOWNERS
* Kibana developer examples * Batch explorer tests should be run in examples config * Fix tests * add codeowner for new developer examples plugin & readme cleanup * Try to frame embeddable wording based on what a developer's goals are. * Add noopener noreferer, fix bad merge * Remove bfetch.png Co-authored-by: Elastic Machine <[email protected]> # Conflicts: # .github/CODEOWNERS
* Kibana developer examples * Batch explorer tests should be run in examples config * Fix tests * add codeowner for new developer examples plugin & readme cleanup * Try to frame embeddable wording based on what a developer's goals are. * Add noopener noreferer, fix bad merge * Remove bfetch.png Co-authored-by: Elastic Machine <[email protected]> # Conflicts: # .github/CODEOWNERS
Summary
Our developer examples were getting hard to navigate because so many of them show up in the app nav menu. Only a few of them are the "landing pages", while others exist to serve as part of the example.
A searchable landing page makes it easier to find examples and avoids cluttering the nav menu.
As always, run via
yarn start --run-examples
to load Kibana with developer examples!Before:
A long list of apps make it difficult for developers to know where to go to learn about a service.
After:
A single "developer examples" app is a landing page for all the registered examples:
Links to example plugins with descriptions, an optional image, and other helpful links. Images are not shown in this version due to a bug that will be fixed by #67561.
This is what some of the images look like, but this is an older screenshot:
It's searchable!
Conclusion
The goals of this landing page are to make it easier for developers to find working, texted examples of services.
Unrelated code changes:
tests/examples
.