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

App Search: Result Component Updates #96184

Merged
merged 8 commits into from
Apr 8, 2021

Conversation

daveyholler
Copy link
Contributor

Summary

This updates the result component to do the following:

  1. Standardize the placement of document details
  2. Remove the click target from the entire wrapper and instead place it (optionally) on the document ID and a dedicated view button
  3. Horizontally align document actions (view, delete, curate) instead of vertically along the side
  4. Adds an EuiToken next to fields that specify a field_type for easier visual grepping

Screenshot from 2021-04-02 17-00-57
Screenshot from 2021-04-02 17-01-20

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@daveyholler
Copy link
Contributor Author

@JasonStoltz I've made some pretty good headway here, but I'm gonna need a hand updating tests and such. I'm hoping you'd be willing to help take this over the finish line. I'm gonna throw some time on your calendar next week to sync about it 😀

<EuiButtonIcon
iconType={iconType}
onClick={onClick}
color={iconColor ? 'primary' : undefined}
Copy link
Member

Choose a reason for hiding this comment

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

Ran across this while writing tests ... I assume this is a mistake and should be:

Suggested change
color={iconColor ? 'primary' : undefined}
color={iconColor ? iconColor : 'primary'}

Can you confirm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha. Yes. iconColor : 'primary' 🤦🏼

@JasonStoltz
Copy link
Member

@daveyholler I pushed updates for tests and types. Should be green now, just need to review 😫

Copy link
Member

@JasonStoltz JasonStoltz left a comment

Choose a reason for hiding this comment

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

I'm generally good with all this, nice work! @constancecchen Did you want to take a look before we merge it?

))}
</>
)}
<article className="appSearchResult__content">
Copy link
Member

Choose a reason for hiding this comment

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

Nice, I'm glad this entire section is no longer linked

@JasonStoltz
Copy link
Member

FWIW, there is an axe failure on the drag handle. Not sure it's new though:

Issue Description
Ensures every ARIA button, link and menuitem has an accessible name

Element location
div[data-rbd-drag-handle-draggable-id="draggable-2"]

@cee-chen
Copy link
Member

cee-chen commented Apr 7, 2021

Ya it's not new, I noticed that failure as well when I implemented the original drag handle. It's out of scope for us IMO, something to be addressed by either EUI or the react-beautiful-dnd library.

I would like to take a quick review of this PR if that's cool! 👍

@@ -44,9 +45,13 @@
display: flex;
justify-content: center;
align-items: center;
width: $euiSizeL * 2;
width: $euiSize * 2;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
width: $euiSize * 2;
width: $euiSizeXL;


/**
* CSS for hover specific logic
* It's mildly horrific, so I pulled it out to its own section here
Copy link
Member

Choose a reason for hiding this comment

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

💯 I'm super glad I pulled this out into its own easily delete-able section. H E L L Y E A

@cee-chen
Copy link
Member

cee-chen commented Apr 7, 2021

@elasticmachine merge upstream

@daveyholler
Copy link
Contributor Author

I'ma take this out of Draft status and mark it Ready for Review.

@daveyholler daveyholler marked this pull request as ready for review April 7, 2021 20:05
@daveyholler daveyholler requested a review from a team April 7, 2021 20:05
@daveyholler daveyholler added auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Apr 7, 2021
@JasonStoltz
Copy link
Member

Strange, I wasn't getting all of these type failures locally. Looking into them now.

@cee-chen
Copy link
Member

cee-chen commented Apr 8, 2021

@elasticmachine merge upstream

@daveyholler
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1322 1323 +1

Async chunks

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

id before after diff
enterpriseSearch 2.0MB 2.0MB +793.0B

History

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

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Apr 8, 2021
* Starting work on result component

* Write tests

* Fix types

* Cleanup

* Fix type errors

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Apr 9, 2021
* Starting work on result component

* Write tests

* Fix types

* Cleanup

* Fix type errors

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Davey Holler <daveyholler@gmail.com>
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
@cee-chen cee-chen mentioned this pull request Apr 9, 2021
10 tasks
phillipb added a commit to phillipb/kibana that referenced this pull request Apr 12, 2021
…to-metrics-tab

* 'master' of github.com:elastic/kibana: (44 commits)
  [Exploratory View]Additional metrics for kpi over time (elastic#96532)
  [Fleet] UI changes on hosted policy detail view (elastic#96337)
  Stacked line charts incorrectly shows one term as 100% (elastic#96203)
  [Fleet] Create enrollment API keys as current user (elastic#96464)
  [Lens] Make table and metric show on top Chart switcher (elastic#96601)
  skip flaky suite (elastic#96691)
  [Lens] Hide "Show more errors" once expanded (elastic#96605)
  [Discover] Unskip histogram hiding test (elastic#95759)
  skip flyout test, add linked issue elastic#96708
  skip copy_to_space_flyout_internal.test.tsx elastic#96708
  fix config validation (elastic#96502)
  Document telemetry fields for stack security features (elastic#96638)
  [Partial Results] Move inspector adapter integration into search source (elastic#96241)
  [RAC] Rule registry plugin (elastic#95903)
  [APM] Run precommit tasks sequentially (elastic#96551)
  [Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert (elastic#96633)
  [Security Solution] [Cases] Small UI bugfixes (elastic#96511)
  [Actions UI] Changed PagerDuty action form UI to fill payload fields according to the API docs for Resolve and Acknowledge events. (elastic#96363)
  App Search: Result Component Updates (elastic#96184)
  [Alerting] Preconfigured alert history index connector (elastic#94909)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants