-
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
[Observability RAC] Improve alerts table columns #105446
Merged
mgiota
merged 10 commits into
elastic:master
from
mgiota:105227-rac-alerts-table-columns
Jul 20, 2021
+56
−7
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b31abcd
right align duration on alerts observability table
mgiota 91c2ab4
reason column takes up the remaining width
mgiota 8bb0f07
add horizontal scrollbar to the table
mgiota 16dad65
add actions label temp solution
mgiota cdd593a
use abbreviated format for duration
mgiota d08c6eb
Internationalization for actions
mgiota d31a9e1
remove horizontal scroll and bring back initial width
mgiota aae667e
remove unused import
mgiota 6e287df
Merge branch 'master' into 105227-rac-alerts-table-columns
kibanamachine 697330b
remove data as dependency
mgiota 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
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.
@XavierM Requirement here was to add an
Actions
header, so temporarily I copied the styled EventsThContent component from the styles file of the t_grid component. I was thinking to import the component instead of copying, but I was wondering if there is another way to do custom styling on elements.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.
The
EventsThContent
styled
component may be deleted when the transition toEuiDataGrid
is complete, so it's reasonable to copy it here, as opposed to making it part of the public API of tgrid (so it can be imported).The
EuiDataGridControlColumn
interface exposesheaderCellRender
to enable custom styling of header cells. This PR is correctly using it here:to provide the custom styled header. I'm not aware of another way to do it, and this looks good to me. 😄