Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Materialize search results page #533

Merged
merged 7 commits into from
Sep 26, 2016
Merged

Materialize search results page #533

merged 7 commits into from
Sep 26, 2016

Conversation

thevoiceofzeke
Copy link
Contributor

@thevoiceofzeke thevoiceofzeke commented Sep 26, 2016

This PR satisfies the requirements of MUMMNG-2694

In this PR:

  • Replaced old tab navigation with angular material tabs and custom badges
  • Added some material buttons to MyUW search results

Screenshots

screen shot 2016-09-26 at 1 08 06 pm

screen shot 2016-09-26 at 1 08 20 pm

### Animations demo

search-demo

Notes:

  • This PR depends on uw-frame PR#318 in order for the tabs to appear as pictured
  • I plan on backlogging a new story to explore more design options for search results
  • It might be worthwhile to create a generic search-results directive that we can reuse for each category of results. The current version functions fine as is, but a directive would help cut down on copy+pasted code.

<div ng-show="wiscDirectoryResultsEmpty && !wiscDirectoryTooManyResults" class='no-result'>
No directory results.
</div>
<div ng-repeat="item in wiscDirectoryResults | limitTo:wiscDirectoryResultLimit" class="result">
Copy link
Contributor

Choose a reason for hiding this comment

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

I may be wrong on this, but this seems like a copy/paste from the "all". Is there a way to only have this code once? Maybe a directive/component? One for a Google Result, one for a directory result, and another for a MyUW result.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made a note about that in the PR. I was thinking maybe that works deserves its own story. I don't mind doing it, since I have plenty of time left in this sprint, but I made the PR in its current state because it's the minimum amount of work that still meets the requirements.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, yes. I see that now. Sounds like a solid plan.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Backlogged MUMMNG-2833 to capture this idea.

<md-button ng-click="addToHome(portlet)"
ng-if="portlet.canAdd && !portlet.hasInLayout && !GuestMode"
class="md-primary add">
<i class="fa fa-plus"></i> Add to home
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider an aria tag to help users who don't visually connect the "Add to home" to the context of which portlet will be added. (As in, "Add {{ portlet.title }} to home").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Get help from the <a ng-href="{{helpdeskUrl}}" target="_blank">Help Desk</a>
</p>
<p ng-if="feedbackUrl">
<a ng-href="{{feedbackUrl}}" target="_blank">Give feedback </a>on MyUW search
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: trapping the trailing " " in the hyperlink seems weird.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@thevoiceofzeke thevoiceofzeke merged commit e1e6027 into uPortal-Attic:master Sep 26, 2016
@thevoiceofzeke thevoiceofzeke deleted the searchMakeover branch September 26, 2016 18:57
@apetro apetro added this to the 5.3.0 milestone Oct 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants