Skip to content

[7.x] [Code] New SearchPage layout (#45821)#45975

Merged
rylnd merged 1 commit intoelastic:7.xfrom
rylnd:backport/7.x/pr-45821
Sep 19, 2019
Merged

[7.x] [Code] New SearchPage layout (#45821)#45975
rylnd merged 1 commit intoelastic:7.xfrom
rylnd:backport/7.x/pr-45821

Conversation

@rylnd
Copy link
Contributor

@rylnd rylnd commented Sep 17, 2019

Backports the following commits to 7.x:

@rylnd rylnd added the backport This PR is a backport of another PR label Sep 17, 2019
@rylnd rylnd requested a review from mw-ding September 18, 2019 00:04
@rylnd
Copy link
Contributor Author

rylnd commented Sep 18, 2019

@mw-ding this diff is larger than the corresponding 7.4 backport, seemingly because #45822 was 'ported to 7.4 but not 7.x.

I see no reason that those translations shouldn't be added to 7.x, but I'll admit that I'm still learning the release process, so I'd appreciate your feedback here.

@mw-ding
Copy link
Contributor

mw-ding commented Sep 18, 2019

hmm. this is weird. the Japanese i18n items are there for 7.4 and master, but not 7.x, let's just ask them in the PR before merging this backport PR. See how they would like us to do.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

I run an automated script that does the i18n integration against all target branches and it seems that i did a bad job having it submit a PR to 7.x. #46064 should fix it.

* 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 rylnd force-pushed the backport/7.x/pr-45821 branch from 5749ce3 to 642d03f Compare September 18, 2019 20:48
@rylnd
Copy link
Contributor Author

rylnd commented Sep 18, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@rylnd
Copy link
Contributor Author

rylnd commented Sep 18, 2019

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rylnd rylnd merged commit ddb5d6f into elastic:7.x Sep 19, 2019
@rylnd rylnd deleted the backport/7.x/pr-45821 branch September 19, 2019 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants