Skip to content
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

styling updates to alerts table and alignment of elements #108507

Merged
merged 8 commits into from
Aug 17, 2021
Merged

styling updates to alerts table and alignment of elements #108507

merged 8 commits into from
Aug 17, 2021

Conversation

katrin-freihofner
Copy link
Contributor

@katrin-freihofner katrin-freihofner commented Aug 13, 2021

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.
Fixes https://github.com/elastic/observability-design/issues/83

  • removes the shadow from the panel
  • left aligns the alert status filter control

Screenshot 2021-08-13 at 16 10 34

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@katrin-freihofner katrin-freihofner requested a review from a team as a code owner August 13, 2021 11:11
@katrin-freihofner katrin-freihofner marked this pull request as draft August 13, 2021 11:11
@katrin-freihofner katrin-freihofner added release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v8.0.0 labels Aug 13, 2021
@katrin-freihofner
Copy link
Contributor Author

@mgiota I think this PR is a prerequisite for the scrolling issue. #108188

Current status
Screenshot 2021-08-16 at 13 38 15

One thing I need help with here is the alignment of the inspect icon.
I'd like to do a check if the title is there and not empty and render the header depending on that.
inspect

@mdefazio commented on an example of what this should look like.

cc @elastic/logs-ui

@katrin-freihofner katrin-freihofner marked this pull request as ready for review August 16, 2021 12:54
@katrin-freihofner katrin-freihofner requested review from a team as code owners August 16, 2021 12:54
Copy link
Contributor

@mdefazio mdefazio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgiota
Copy link
Contributor

mgiota commented Aug 17, 2021

@katrin-freihofner Maybe you would like to sync up with @afgomez on that, since it seems he has already an open PR for aligning the buttons on the left #108215. He has a note to fix some alignment issues in another PR

@katrin-freihofner
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

merge conflict between base and head

@katrin-freihofner katrin-freihofner enabled auto-merge (squash) August 17, 2021 13:33
@@ -345,7 +336,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({

return (
<InspectButtonContainer>
<StyledEuiPanel data-test-subj="events-viewer-panel" $isFullScreen={false}>
<AlertsTableWrapper data-test-subj="events-viewer-panel">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to get the failing test to pass, you just need this data-test-subj to appear on the wrapper or rendered on a separate element in this component

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 I was helping Katrin get these last failing CI steps to pass. For my own sanity could you explain why I had to bump this to the outer wrapper? (Which is passing).

Screenshot 2021-08-17 at 17 06 12

With the original structure the element is still there, in the DOM, but doesn't get returned?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the screenshot, no I cannot, that looks like it should pass 😢

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super weird! But thanks for looking.

padding-top: 0;
padding-bottom: 0;
`}
const AlertsTableWrapper = styled.div`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also might be worth noting that tGrid runs in 2 "modes": integrated, where the redux actions/state are used within a bigger app like security solution, or in standalone, where all of those things are run in a self contained way. Tldr if you want these styling changes to be reflected in security solution as well, need to make these same changes https://github.com/elastic/kibana/blob/master/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx#L68

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The integrated file was updated, but these look to be setup slightly differently: #108903

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my humble opinion, I feel like it is better to remove the the EuiPanel and just use a div than disabling everything from this component.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
data 170.8KB 170.9KB +134.0B
observability 483.6KB 483.7KB +35.0B
timelines 408.0KB 407.8KB -230.0B
total -61.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 791.1KB 791.2KB +136.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@katrin-freihofner katrin-freihofner merged commit cac84d7 into elastic:master Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants