-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Dashboard landing page #10003
Dashboard landing page #10003
Conversation
Still TODO: - Add clickable breadcrumbs - Remove New and Open top nav options
improve tests
d9cf7d3
to
c6354b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!! This new UX feels so much better!
I had a few comments and noticed a couple bugs:
- The "Reporting" menu item in the top nav is visible on the Dashboard Listing page.
- We're showing "PromptForItems" when the user does a search and gets no matches. Instead, we should show "NoItems" in such a situation. "PromptForItems" should only be displayed if the user has zero Dashboards.
* will contain both the url for the given breadcrumb, as well as the breadcrumb the url | ||
* was generated for. | ||
*/ | ||
export function getBreadCrumbUrls(breadcrumbs, url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file name should be bread_crumb_urls.js
(plural) to match up with this function, right?
|
||
<div class="kuiPromptForItems__actions"> | ||
<a class="kuiButton kuiButton--primary kuiButton--iconText" | ||
href="#/dashboard/create"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be formatted like this:
<a
class="kuiButton kuiButton--primary kuiButton--iconText"
href="#/dashboard/create"
>
|
||
<th class="kuiTableHeaderCell" ng-click="listingController.sortHits()"> | ||
Name | ||
<i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to a span
? It's more semantic.
Comments addressed. Separate PR out for the issue with reporting here. |
34e0042
to
41f6495
Compare
This looks great ! Would it be possible to share more code with implementation for visualize ? |
jenkins test this |
@ppisljar Refactor so dashboard + visualize don't duplicate so much code? I would love to do this, and even mentioned this to @cjcenizal when we were first talking about it (management also uses a similar table). Given timing situation for 5.3 though, I was postponing that as a clean up task. Want to get view/edit mode in for 5.3 but this has to go first. Thought the refactor would take too long and didn't want to delay. Happy to create a task and assign it to myself so I don't forget though to come back to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
selenium tests are failing ... apart from that it looks good to me |
- rename bread_crumb_url => bread_crumb_urls - fix reporting link in dash (separate PR) - Use NoItems instead of PromptForItems when searching - Style fixes
41f6495
to
fd857dc
Compare
Backports PR #10003 **Commit 1:** Introduce dashboard landing page Still TODO: - Add clickable breadcrumbs - Remove New and Open top nav options * Original sha: 416e618 * Authored by Stacey Gammon <[email protected]> on 2017-01-23T14:40:14Z **Commit 2:** use clickable breadcrumbs instead of 'New' and 'Open' nav items * Original sha: 271dd35 * Authored by Stacey Gammon <[email protected]> on 2017-01-23T15:47:59Z **Commit 3:** code cleanup improve tests * Original sha: c6354b1 * Authored by Stacey Gammon <[email protected]> on 2017-01-23T15:53:53Z **Commit 4:** Add new empty dashboard styling * Original sha: 2641d8b * Authored by Stacey Gammon <[email protected]> on 2017-01-23T20:35:06Z **Commit 5:** Fix selenium tests * Original sha: a1b84ca * Authored by Stacey Gammon <[email protected]> on 2017-01-23T21:50:37Z **Commit 6:** Address code review comments - rename bread_crumb_url => bread_crumb_urls - fix reporting link in dash (separate PR) - Use NoItems instead of PromptForItems when searching - Style fixes * Original sha: fd857dc * Authored by Stacey Gammon <[email protected]> on 2017-01-24T14:44:43Z **Commit 7:** Use a constant for the landing page url * Original sha: fbdaa84 * Authored by Stacey Gammon <[email protected]> on 2017-01-24T20:20:07Z **Commit 8:** Fix tests * Original sha: 33b4f24 * Authored by Stacey Gammon <[email protected]> on 2017-01-24T20:53:08Z
* Introduce dashboard landing page Still TODO: - Add clickable breadcrumbs - Remove New and Open top nav options * use clickable breadcrumbs instead of 'New' and 'Open' nav items * code cleanup improve tests * Add new empty dashboard styling * Fix selenium tests * Address code review comments - rename bread_crumb_url => bread_crumb_urls - fix reporting link in dash (separate PR) - Use NoItems instead of PromptForItems when searching - Style fixes * Use a constant for the landing page url * Fix tests fix tests
* Introduce dashboard landing page Still TODO: - Add clickable breadcrumbs - Remove New and Open top nav options * use clickable breadcrumbs instead of 'New' and 'Open' nav items * code cleanup improve tests * Add new empty dashboard styling * Fix selenium tests * Address code review comments - rename bread_crumb_url => bread_crumb_urls - fix reporting link in dash (separate PR) - Use NoItems instead of PromptForItems when searching - Style fixes * Use a constant for the landing page url * Fix tests fix tests
Similar to #9605, implement for dashboards.
Only thing missing from previous implementation is pagination.