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

[Infra UI] Table View for Home Page #29192

Merged
merged 17 commits into from
Jan 31, 2019
Merged

Conversation

simianhacker
Copy link
Member

@simianhacker simianhacker commented Jan 23, 2019

This PR adds the table view for the home page. It current features:

  • Click node names to see context menu of options
  • Click on group names to set the filter
  • Table pagination
  • Table sorting on every field

image

Here is an example of clicking on the node name to reveal the context menu (same as Waffle Map)

table-menu-demo

The map view remains unchanged except it now has the switcher

image

@elasticmachine
Copy link
Contributor

💔 Build Failed

@simianhacker
Copy link
Member Author

@makwarth @formgeist This could probably use some design love...

image

Here is the same screen but with the map view

image

They both need the love.

…des; adding filter to groups; adding pagination; adding sorting
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@formgeist
Copy link
Contributor

@simianhacker @makwarth How about adding a button toggle in the abilities row, so you can toggle between the views?

infra-list-map-toggle

@makwarth
Copy link

Cool @simianhacker !

@formgeist I think the filter element should be just that, and not include ways of changing the visualization of the filtered data. Also, later the filter will likely include the "Hosts", "Kubernetes", "Docker" filter links, so the filter element will be pretty complex on its own over time.

I like the icons though. Could we replace the "Switch to X view" copy with those icons? Ideally Icon + text, so it's very explicit. E.g. [icon] Map view - [icon] List view?

@makwarth
Copy link

@simianhacker Do you have a screenshot of how the list view looks when grouped by some keyword(s)?

@formgeist
Copy link
Contributor

@makwarth Sure, you mean something like this

infra-list-map-toggle copy

@makwarth
Copy link

@formgeist Yes, I like that. Thoughts?

@simianhacker
Copy link
Member Author

simianhacker commented Jan 25, 2019

@formgeist This is why I reached out... love the toggle.
@makwarth I updated the screenshot in the PR description with an example of 2 levels of grouping for the table. It just adds columns for each.

@formgeist
Copy link
Contributor

@makwarth Looks good to me 👌

@makwarth
Copy link

LGTM gents 👏

@simianhacker
Copy link
Member Author

@makwarth @formgeist I updated the PR description with the latest screenshots based on the conversation above. Thanks for the input it was super helpful.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@simianhacker
Copy link
Member Author

@formgeist How's this

image

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@formgeist
Copy link
Contributor

@simianhacker Looks great 👍

@Kerry350 Kerry350 self-assigned this Jan 30, 2019
Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

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

Looks great 👍

I did find this issue with the display when setting an explicit grouping - the name and grouping text overlapping.

screenshot 2019-01-30 12 53 17

Otherwise just a typo in the code. It still might be worth someone else checking the code for such a large changeset, everything looks very sane to me, but I might still miss broader context at this point.

The only other thing I wanted to mention was do we want to keep this file naming: components/*waffle*/index.tsx, now that that component controls switching between the Waffle Map view and the Table view it doesn't make sense to me that it's waffle/index, as that suggests it always renders a Waffle Map, and the Table isn't a Waffle Map. Maybe something like nodes_overview/index?

{({ measureRef, content: { width = 0, height = 0 } }) => {
const groupsWithLayout = applyWaffleMapLayout(map, width, height);
return (
<WaffleMapOuterContiner innerRef={(el: any) => measureRef(el)} data-test-subj="waffleMap">
Copy link
Contributor

Choose a reason for hiding this comment

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

Small typo: WaffleMapOuterContiner -> WaffleMapOuterContainer

@elasticmachine
Copy link
Contributor

💔 Build Failed

@simianhacker
Copy link
Member Author

simianhacker commented Jan 30, 2019

@elastic/eui-design Looks like there is a bug with the table. These columns are set to truncate the text but the class for the cell has overflow: visible when it should be overflow: hidden.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@simianhacker
Copy link
Member Author

simianhacker commented Jan 30, 2019

@Kerry350 I addressed your issues, can you give it a quick once over.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Kerry350
Copy link
Contributor

LGTM 👍

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@simianhacker simianhacker merged commit fada5d9 into elastic:master Jan 31, 2019
simianhacker added a commit to simianhacker/kibana that referenced this pull request Jan 31, 2019
* Addding initial table implimentation

* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting

* Fixing EUI types for EuiInMemoryTable to work for EVERYONE

* Adding server plugin for tslint for VIM; Fixing tests

* Adding the view switcher

* removing dependency

* updating yarn.lock

* Change padding to use EUI rules

* Rename waffle/index to nodes_overview; move table to nodes_overview

* Adding missed files in last commit

* Adding textOnly to the columns that need special truncation because they are buttons

* Fixed an error in the merge

* Fixing merge issues
simianhacker added a commit that referenced this pull request Jan 31, 2019
* Addding initial table implimentation

* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting

* Fixing EUI types for EuiInMemoryTable to work for EVERYONE

* Adding server plugin for tslint for VIM; Fixing tests

* Adding the view switcher

* removing dependency

* updating yarn.lock

* Change padding to use EUI rules

* Rename waffle/index to nodes_overview; move table to nodes_overview

* Adding missed files in last commit

* Adding textOnly to the columns that need special truncation because they are buttons

* Fixed an error in the merge

* Fixing merge issues
@simianhacker simianhacker deleted the table-view branch April 17, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature review Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v6.7.0 v7.0.0 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants