-
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
[Serverless] Add panels to side nav #167774
Merged
sebelga
merged 87 commits into
elastic:main
from
sebelga:serverless-chrome/add-panel-to-side-nav
Oct 18, 2023
Merged
Changes from 76 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
5039c90
Add panel provider and context
sebelga 0a7f27d
Fix story to render example project
sebelga cf4f5b3
Update PanelProvider and navigation UI to open panel
sebelga 5a7bb52
Add story to test panel
sebelga ab1545a
Update DefaultContent component
sebelga 3f66dd4
Handle custom content to be rendered in panel
sebelga 8ccf19c
Provide collapsible state from ChromeService
sebelga f15423d
Add isSideNavCollapsed prop
sebelga e203a8e
Refactor types to extend NodeDefinitionBase with common props
sebelga 9b284bf
Remove unnecessary basePath prop
sebelga 8bb93dc
Add default content for group with title
sebelga d1a19cb
Add default content for groups with no title
sebelga af4b85b
Add isCollapsible and appendHorizontalRule props
sebelga 1e6a507
Add panel example with components UI
sebelga 60caa5e
Add badge example with component UI
sebelga 62fb844
Fix z-index for side nav panel
sebelga 82693a0
Fix jest tests
sebelga 72872d1
Fix TS issue
sebelga 91e9e49
Fix TS issue
sebelga bf8a2a8
WIP button to open panel in main nav
sebelga cb0e94b
WIP component integration tests
sebelga 814fdea
Update type and cleanup navigation section UI
sebelga 65c6c17
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 5a5eec4
Fix render custom component
sebelga 549f701
Merge branch 'serverless-chrome/add-panel-to-side-nav' of github.com:…
sebelga 6a14d71
Automatically wrap panel children items into root group
sebelga 529f317
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 7ad62ac
Generate unique node id if not present
sebelga b1ac7b5
Merge branch 'serverless-chrome/add-panel-to-side-nav' of github.com:…
sebelga b5a9f7a
Add support for "renderAsItem" status in side nav panel
sebelga 86eeeb8
Add support for "hidden" status in side nav panel
sebelga e38c5c0
Add support for "hidden" status in main nav panel
sebelga c3f7d8c
Don't render open panel button when all children are hidden
sebelga e02880c
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 55c7f6e
Use "renderAs" instead of "renderAsItem"
sebelga 6eaa626
Add icon in panel examples
sebelga 5c1dd5b
Read title from children if it's a string
sebelga 561430d
Merge branch 'serverless-chrome/add-panel-to-side-nav' of github.com:…
sebelga 4cc0ff9
Pass additional props to custom content component
sebelga ffb3c4f
Refactor node path retriever
sebelga 34dfb79
Add support for "navItem" inside the root definition
sebelga 59c1e24
Generate a fix ID based on the node position in the tree
sebelga a6b8c79
Add example of renderAs item in the main nav
sebelga 85771f0
Fix jest tests
sebelga af87c94
Set fix key for recently accessed items
sebelga 03a3f35
Add comment to story
sebelga 2e4dd19
Move EuiCollapsibleNavItem for top nav item in NavigationItem comp
sebelga 77d8fcb
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga b741114
Merge branch 'main' into serverless-chrome/add-panel-to-side-nav
sebelga 6721b9a
Unify how node id are generated
sebelga 634e05f
Update jest test + add example for links at root level
sebelga 5b0586f
Export util to get node href value
sebelga 49d7511
Refactor NavigationSectionUI to no repeat props definition
sebelga 0159b2b
Add story example of group with link and no children
sebelga 771e3fe
Clean up
sebelga 92e4c88
Improve typing
sebelga ac158a1
Revert jest tests
sebelga b187124
Use Array instead of NonEmptyArray
sebelga 56bd4f6
Update jest snapshot
sebelga a0732b2
Merge branch 'main' into serverless-chrome/add-panel-to-side-nav
sebelga e2c8ab1
Remove NodeDefinition cast in story
sebelga 1926322
Fix TS issue
sebelga 424b7a7
Fix functional test helper
sebelga 4420bca
Fix group node visibility
sebelga cf957e7
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga e45e7c7
Tiny refactor
sebelga 62ea1cf
Own CR
sebelga 83d5ea3
Fix functional test helper
sebelga 704f86e
Fix functional test helper (2)
sebelga 4fd1ce0
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga a2ec089
Another try...
sebelga 9754850
More refactors
sebelga f907f6e
Fix initialOpen + functional test
sebelga 138536a
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga b78e7cd
Fix TS issue
sebelga 35fdfa6
Skip functional test for auto expand accordion
sebelga 186755c
Fix functional test
sebelga cbf154d
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga 66e15cc
Fix testSubj selector
sebelga b914201
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga 97cb14e
Merge branch 'main' into serverless-chrome/add-panel-to-side-nav
kibanamachine 85587fd
Update test selectors
sebelga e959033
Merge remote-tracking branch 'upstream/main' into serverless-chrome/a…
sebelga 9d5e9e7
Merge branch 'serverless-chrome/add-panel-to-side-nav' of github.com:…
sebelga 6d38a3a
Update test selectors
sebelga daeb4ac
Merge branch 'main' into serverless-chrome/add-panel-to-side-nav
sebelga 90d0566
Merge branch 'main' into serverless-chrome/add-panel-to-side-nav
sebelga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In a next PR, working on #167323 I will remove this prop and use the
renderAs: 'accordion'
instead.