-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Added tags search to type-specific searches sidebar links #8532
Conversation
app/helpers/search_helper.rb
Outdated
@@ -23,7 +23,8 @@ def create_nav_links_for_by_type(active_page, query) | |||
{ section: "search-all", text: "All content types", path: "/search/content/#{query}" }, | |||
{ section: "search-questions", text: "Questions", path: "/search/questions/#{query}" }, | |||
{ section: "search-notes", text: "Notes", path: "/search/notes/#{query}" }, | |||
{ section: "search-wikis", text: "Wikis", path: "/search/wikis/#{query}" } | |||
{ section: "search-wikis", text: "Wikis", path: "/search/wikis/#{query}" }, | |||
{ section: "search-tags", text: "Tags", path: "/search/tags/#{query}" } , |
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.
Space found before comma.
app/helpers/search_helper.rb
Outdated
@@ -23,7 +23,8 @@ def create_nav_links_for_by_type(active_page, query) | |||
{ section: "search-all", text: "All content types", path: "/search/content/#{query}" }, | |||
{ section: "search-questions", text: "Questions", path: "/search/questions/#{query}" }, | |||
{ section: "search-notes", text: "Notes", path: "/search/notes/#{query}" }, | |||
{ section: "search-wikis", text: "Wikis", path: "/search/wikis/#{query}" } | |||
{ section: "search-wikis", text: "Wikis", path: "/search/wikis/#{query}" }, | |||
{ section: "search-tags", text: "Tags", path: "/search/tags/#{query}" } , |
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.
Avoid comma after the last item of an array.
Codecov Report
@@ Coverage Diff @@
## main #8532 +/- ##
=======================================
Coverage 81.91% 81.91%
=======================================
Files 101 101
Lines 5896 5896
=======================================
Hits 4830 4830
Misses 1066 1066
|
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.
@dldisha LGTM! 🎉 Thanks for working on this
Code Climate has analyzed commit 5122a9e and detected 0 issues on this pull request. View more on Code Climate. |
Fantastic!! Thanks so much!!! 🎉🎉🎉 |
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
…8532) * Added Home tooltip to Public Lab link in navbar * replaced .length and .count with .size * Added tags search to type-specific searches sidebar links * style typo fixed * Inserted a partial template to display topic cards on tags search results page
Fixes #8531 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
PR is descriptively titled 📑 and links the original issue above 🔗
tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with
rake test
code is in uniquely-named feature branch and has no merge conflicts 📁
screenshots/GIFs are attached 📎 in case of UI updation
ask
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!