-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Discover] Context awareness toolkit #253183
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
Merged
davismcphee
merged 42 commits into
elastic:main
from
davismcphee:discover-context-awareness-toolkit
May 30, 2026
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
e48a8b1
Migrate actions to context awareness toolkit
davismcphee 2b506f1
Clean up approach to pass toolkit to scoped profiles manager
davismcphee 291f3ee
Use toolkit factory
davismcphee 3bb1518
Cleanup implementation
davismcphee e1bfb02
Update addFilter handling
davismcphee 374be0e
Get rid of toolkit provider
davismcphee 30a612a
Consolidate updateAdHocDataViews
davismcphee c42903e
Update context app toolkit approach
davismcphee 85a5934
Fix embeddable filter handling
davismcphee 36819ea
Cleanup
davismcphee b60962e
Fix alert flyout
davismcphee 8efa1e0
Fix setExpandedDoc support for context and embeddable
davismcphee 9bd8f62
Fix doc viewer scrolling
davismcphee 02c0908
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 3f87773
Tiny test cleanup
davismcphee 98c7bd8
Simplify profiles manager changes
davismcphee 4da0da7
Jest tests
davismcphee d3a3fa0
Fix Jest test and some async thunks
davismcphee 3a6d462
Remove dev docs
davismcphee e55d287
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 6aa8010
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 8e8669f
Remove AdditionalCellActionsParams
davismcphee 20e5edd
Update useStableCallback to be safe, and migrate addFilter to useStab…
davismcphee 2f313e8
Add comments
davismcphee 925ddac
Use useStableCallback for setExpandedDoc too
davismcphee 1dcdd2a
Fix generateFilters calls
davismcphee c4331fb
Fix enableFilters embeddable handling
davismcphee 6afb143
Changes from node scripts/lint_ts_projects --fix
kibanamachine 822aea8
Changes from node scripts/regenerate_moon_projects.js --update
kibanamachine 83ecde0
Docs updates
davismcphee 631d17e
Revert external doc viewer changes in embeddable
davismcphee b04ee8c
Cleanup
davismcphee e925067
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee d07e1de
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 7266821
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee ac73760
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee e0892c8
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee e29ade1
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee c29e261
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 18dcceb
Fix merge issues
davismcphee 0901c9e
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee eb9d179
Merge branch 'main' into discover-context-awareness-toolkit
davismcphee 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
I originally wrote this hook a long time ago as part of Unified Histogram, and it was moved to this package a few weeks ago to share. I reimplemented the pattern for part of this PR and a bot suggested I use this instead, which makes sense. But the original version isn't totally safe due to timing around
useEffect, so I wanted to update it to a better pattern. I can extract this into a separate PR if there are concerns.