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

Add text for no results #94

Closed

Conversation

alexander-alvarez
Copy link

Fixes #64

@codecov-io
Copy link

codecov-io commented Oct 4, 2017

Codecov Report

Merging #94 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   74.24%   74.24%           
=======================================
  Files          84       84           
  Lines         730      730           
=======================================
  Hits          542      542           
  Misses        188      188

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9ad225...9f7c4ea. Read the comment docs.

@kategengler
Copy link
Member

Not 100% sure but think this may show even if there has been no search.

@alexander-alvarez
Copy link
Author

Updated :)

@alexander-alvarez
Copy link
Author

@kategengler bump

@@ -58,6 +58,7 @@
"ember-router-scroll": "~0.3.0",
"ember-sanitize": "^2.0.2",
"ember-source": "~2.14.1",
"ember-truth-helpers": "^1.3.0",
Copy link
Member

Choose a reason for hiding this comment

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

I am not a fan of truth-helpers. I prefer a local and helper so as not to make the rest of the helpers from truth-helpers available.

@@ -68,5 +68,7 @@
{{/search-result-set}}
{{else if search.isRunning}}
{{dot-spinner}}
{{else if (and search.performCount query.length)}}
<h4 class="result-info test-result-info">No results for "{{query}}"</h4>
Copy link
Member

Choose a reason for hiding this comment

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

The test- classes are meant to be unique, at least per route. test-result-info shouldn't be repeated here.

@@ -68,5 +68,7 @@
{{/search-result-set}}
{{else if search.isRunning}}
{{dot-spinner}}
{{else if (and search.performCount query.length)}}
Copy link
Member

Choose a reason for hiding this comment

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

I think this will erroneously show when a search has happened and a query has been typed, but it is not a valid query that triggers a search. Take a look at queryIsValid CP in app/components/large-search.js

Copy link
Member

@kategengler kategengler left a comment

Choose a reason for hiding this comment

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

Please add test(s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No feedback if no matches
3 participants