Skip to content

[Code] New SearchPage layout#45821

Merged
rylnd merged 18 commits intoelastic:masterfrom
rylnd:new-search-layout
Sep 17, 2019
Merged

[Code] New SearchPage layout#45821
rylnd merged 18 commits intoelastic:masterfrom
rylnd:new-search-layout

Conversation

@rylnd
Copy link
Contributor

@rylnd rylnd commented Sep 16, 2019

Summary

  • Adjusts searchbar to be the full width of the page, aligned with the sidebar
  • Adjusts sidebar to indent facets below group titles
  • Various CSS/JSX cleanup/consolidation

Kibana

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

The new layout does not include these tabs; their utility is redundant
with the ScopeSelector dropdown in the search bar.
Randomly found this orphaned rule while in here. The consuming component
was deleted in a previous commit (ef8d7ea).
Others in this component already use codeQueryBar, so...
This required a little coordination between the two components
through a couple of sass variables.
This was incorrect for two reasons:

* You need to interpolate the sass variable within calc
* This is the same as width: auto and can be deleted
Also removes some odd spacing surrounding the text; that should be done
with CSS instead.
The copy previously had a leading space; using margin is a better
approach. The class that was replaced was unused.
This tweaks the pink badge to be aligned with the text on the flyout
title.

Also removes a now-obsolete className (code-flyout-title).
* Indents facets below the filter's title
* Adjusts spacing to be more consistent, removes use of EuiSpacer

NB there's a bit of a hack for the indentation itself: we use an empty,
fixed-width div for the facet's icon prop.
@rylnd rylnd added release_note:skip Skip the PR/issue when compiling release notes v7.5.0 labels Sep 16, 2019
@rylnd rylnd requested a review from a team as a code owner September 16, 2019 19:09
These were introduced by some default vscode settings, which have now
been resolved.
Rather than use an empty, fixed-width div as an icon, just give it some
margin-left.
@elasticmachine
Copy link
Contributor

Pinging @elastic/code

@@ -0,0 +1,3 @@
$codeSideBarWidth: 16rem;
$codeSideBarIndent: 2rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here: $euiSizeXL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@daveyholler in general: what about multipliers larger than 2.5? E.g. should the line above be 16rem or calc(#{$euiSize} * 16) or calc(#{$euiSizeXL} * 8)?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd opt for the former calc(#{$euiSize} * 16)

@elasticmachine
Copy link
Contributor

💔 Build Failed

@rylnd rylnd requested a review from daveyholler September 16, 2019 21:56
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

These existed in the ScopeTabs component which has been deleted.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@mw-ding mw-ding left a comment

Choose a reason for hiding this comment

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

tested locally and LGTM.

@mw-ding
Copy link
Contributor

mw-ding commented Sep 17, 2019

@daveyholler Davey, can you take a second look?

* master: (33 commits)
  [easy] Exclude __examples__ from coverage (elastic#45556)
  [DOCS] Update CCR links (elastic#44012)
  Use unique junit report filenames again (elastic#45897)
  [ftr/savedObjects] add simple saved object api client to ftr s… (elastic#45856)
  New visualization editor Lens (elastic#36437)
  Sort using unix timestamp value (elastic#43162)
  [APM] Use POST instead of implicit GET (elastic#45903)
  [Canvas] Converting workpad header components to typescript and adding i18n (elastic#45274)
  skip flaky test (elastic#45884)
  set IS_PIPELINE_JOB in intake jobs (elastic#45850)
  [Uptime] Fix/issue 48 integration popup closes after refresh (elastic#45759)
  [Logs UI] Support zoom by brushing in the log rate chart (elastic#45879)
  [DOCS] Changes name to host (elastic#45798)
  [ML] Add population job wizard test (elastic#45765)
  [skip-ci][Maps][File upload] Geojson indexing and styling docs (elastic#41394)
  remove setTimeoue for state change (elastic#45853)
  [Graph] Restructure folders and add readme (elastic#45782)
  [ML] Enhance job id error message (elastic#45349)
  [SIEM] Do not update state component when they did unmount (elastic#45847)
  [i18n] sync from 7.4 latest translations (elastic#45823)
  ...
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rylnd rylnd merged commit 26e8121 into elastic:master Sep 17, 2019
@rylnd rylnd deleted the new-search-layout branch September 17, 2019 23:40
@mw-ding
Copy link
Contributor

mw-ding commented Sep 17, 2019

@rylnd friendly reminder on the backporting.

@rylnd
Copy link
Contributor Author

rylnd commented Sep 17, 2019

@rylnd friendly reminder on the backporting.

On it, there were conflicts that I'm currently resolving.

rylnd added a commit to rylnd/kibana that referenced this pull request Sep 17, 2019
* Remove now-unused ScopeTabs component

The new layout does not include these tabs; their utility is redundant
with the ScopeSelector dropdown in the search bar.

* Remove unused style

Randomly found this orphaned rule while in here. The consuming component
was deleted in a previous commit (ef8d7ea).

* Use consistent block names in our BEM classes

Others in this component already use codeQueryBar, so...

* Move the Search bar above both the sidebar and main content

* Align the search dropdown's RHS with the search sidebar

This required a little coordination between the two components
through a couple of sass variables.

* Remove erroneous width rule

This was incorrect for two reasons:

* You need to interpolate the sass variable within calc
* This is the same as width: auto and can be deleted

* Copy: Search Filter -> Advanced Filter

Also removes some odd spacing surrounding the text; that should be done
with CSS instead.

* Space out badge with margin, not nbsp

The copy previously had a leading space; using margin is a better
approach. The class that was replaced was unused.

* Fix alignment of Filters flyout badge

This tweaks the pink badge to be aligned with the text on the flyout
title.

Also removes a now-obsolete className (code-flyout-title).

* Adjust layout of Search filter sidebar

* Indents facets below the filter's title
* Adjusts spacing to be more consistent, removes use of EuiSpacer

NB there's a bit of a hack for the indentation itself: we use an empty,
fixed-width div for the facet's icon prop.

* Fix newline errors

These were introduced by some default vscode settings, which have now
been resolved.

* Update snapshots following markup changes

* Less hacky way of indenting facet buttons

Rather than use an empty, fixed-width div as an icon, just give it some
margin-left.

* Swap hardcoded rem values for equivalent eui vars

* One more eui var replacement

* Remove unused import

* Remove unused translations

These existed in the ScopeTabs component which has been deleted.
rylnd added a commit to rylnd/kibana that referenced this pull request Sep 18, 2019
* Remove now-unused ScopeTabs component

The new layout does not include these tabs; their utility is redundant
with the ScopeSelector dropdown in the search bar.

* Remove unused style

Randomly found this orphaned rule while in here. The consuming component
was deleted in a previous commit (ef8d7ea).

* Use consistent block names in our BEM classes

Others in this component already use codeQueryBar, so...

* Move the Search bar above both the sidebar and main content

* Align the search dropdown's RHS with the search sidebar

This required a little coordination between the two components
through a couple of sass variables.

* Remove erroneous width rule

This was incorrect for two reasons:

* You need to interpolate the sass variable within calc
* This is the same as width: auto and can be deleted

* Copy: Search Filter -> Advanced Filter

Also removes some odd spacing surrounding the text; that should be done
with CSS instead.

* Space out badge with margin, not nbsp

The copy previously had a leading space; using margin is a better
approach. The class that was replaced was unused.

* Fix alignment of Filters flyout badge

This tweaks the pink badge to be aligned with the text on the flyout
title.

Also removes a now-obsolete className (code-flyout-title).

* Adjust layout of Search filter sidebar

* Indents facets below the filter's title
* Adjusts spacing to be more consistent, removes use of EuiSpacer

NB there's a bit of a hack for the indentation itself: we use an empty,
fixed-width div for the facet's icon prop.

* Fix newline errors

These were introduced by some default vscode settings, which have now
been resolved.

* Update snapshots following markup changes

* Less hacky way of indenting facet buttons

Rather than use an empty, fixed-width div as an icon, just give it some
margin-left.

* Swap hardcoded rem values for equivalent eui vars

* One more eui var replacement

* Remove unused import

* Remove unused translations

These existed in the ScopeTabs component which has been deleted.
rylnd added a commit that referenced this pull request Sep 19, 2019
* Remove now-unused ScopeTabs component

The new layout does not include these tabs; their utility is redundant
with the ScopeSelector dropdown in the search bar.

* Remove unused style

Randomly found this orphaned rule while in here. The consuming component
was deleted in a previous commit (ef8d7ea).

* Use consistent block names in our BEM classes

Others in this component already use codeQueryBar, so...

* Move the Search bar above both the sidebar and main content

* Align the search dropdown's RHS with the search sidebar

This required a little coordination between the two components
through a couple of sass variables.

* Remove erroneous width rule

This was incorrect for two reasons:

* You need to interpolate the sass variable within calc
* This is the same as width: auto and can be deleted

* Copy: Search Filter -> Advanced Filter

Also removes some odd spacing surrounding the text; that should be done
with CSS instead.

* Space out badge with margin, not nbsp

The copy previously had a leading space; using margin is a better
approach. The class that was replaced was unused.

* Fix alignment of Filters flyout badge

This tweaks the pink badge to be aligned with the text on the flyout
title.

Also removes a now-obsolete className (code-flyout-title).

* Adjust layout of Search filter sidebar

* Indents facets below the filter's title
* Adjusts spacing to be more consistent, removes use of EuiSpacer

NB there's a bit of a hack for the indentation itself: we use an empty,
fixed-width div for the facet's icon prop.

* Fix newline errors

These were introduced by some default vscode settings, which have now
been resolved.

* Update snapshots following markup changes

* Less hacky way of indenting facet buttons

Rather than use an empty, fixed-width div as an icon, just give it some
margin-left.

* Swap hardcoded rem values for equivalent eui vars

* One more eui var replacement

* Remove unused import

* Remove unused translations

These existed in the ScopeTabs component which has been deleted.
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.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants