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

New Design for Visualize #6156

Merged
merged 50 commits into from
Mar 15, 2016
Merged

Conversation

stormpython
Copy link
Contributor

Changes to the appearance of the visualize interface.

@stormpython
Copy link
Contributor Author

jenkins test it

@@ -2,21 +2,179 @@
@import (reference) "~bootstrap/less/list-group";
@import (reference) "~ui/styles/list-group-menu";

Copy link
Contributor

Choose a reason for hiding this comment

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

Move colors out to variables, reuse kibanaGrays

ng-class="{'select-mode': finder.selector.enabled}">

<li class="list-group-item list-group-menu-item">
<ul>
Copy link
Contributor

Choose a reason for hiding this comment

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

This ul inside another ul doesn't feel right. It sort of feels like you're going for a table, but I don't think we need a table here either. If you're doing this just to put the Type header there, let's just get rid of the type header. Its not an important item

@rashidkpc
Copy link
Contributor

@panda01 Can you also look at this, see if I missed anything?

@stormpython
Copy link
Contributor Author

Yeah, I caught that. Still working on more changes.

* @return {Array} Array sorted either ascending or descending
*/
self.sortHits = function (hits) {
return self.isAscending ? _.sortBy(hits, 'title') : _.sortBy(hits, 'title').reverse();
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be assigning self.hits to the result of the ternary instead of returning it.

@rashidkpc
Copy link
Contributor

Polished design via @alt74 for step 2. We should implement that index pattern selection as a reusable directive, paginated, selectable list. There's lots of places that could be reused. Heck, we could probably reuse it in the future to simplify the saved object loader. Should be able to borrow most/all of the saved object finder styles and code.

The directive should have an isolate scope that takes 3 parameters:

scope: {
  perPage: '=', // The number of items to show on each page
  list: '=', // An array of objects
  onSelect: '=', // a function to pass the selected object to
}

The objects in the list should either require a title property, or you could make that property configurable

screen shot 2016-03-11 at 10 15 41 am

@rashidkpc rashidkpc assigned stormpython and unassigned panda01 Mar 11, 2016
@stormpython stormpython assigned rashidkpc and unassigned stormpython Mar 14, 2016
@stormpython
Copy link
Contributor Author

There is a bug in the kbn-href directive. The pull request that corrects it is #6517. This will need to be merged into this pr.

@rashidkpc
Copy link
Contributor

screen shot 2016-03-14 at 1 19 13 pm

This should be the same height

@rashidkpc
Copy link
Contributor

screen shot 2016-03-14 at 1 23 04 pm

There's a hover effect on the active tab, but not on the inactive ones. This should be the other way around

}
}

.finder-hit-count, .finder-manage-object {
Copy link
Contributor

Choose a reason for hiding this comment

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

Put this inside the saved-object-finder above. Same with all of the .finder* classes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rashidkpc, I am confused. Aren't they already under the saved-object-finder?

Copy link
Contributor

Choose a reason for hiding this comment

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

So they are, my bad

@rashidkpc rashidkpc assigned stormpython and unassigned rashidkpc Mar 14, 2016
@stormpython stormpython assigned rashidkpc and unassigned stormpython Mar 14, 2016
@rashidkpc
Copy link
Contributor

This LGTM now, merging

rashidkpc pushed a commit that referenced this pull request Mar 15, 2016
@rashidkpc rashidkpc merged commit 0049a48 into elastic:feature/design Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants