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

Added tags search to type-specific searches sidebar links #8532

Merged
merged 6 commits into from
Oct 11, 2020

Conversation

dldisha
Copy link
Contributor

@dldisha dldisha commented Oct 11, 2020

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
    Screenshot from 2020-10-11 10-53-33

  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If 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!

@gitpod-io
Copy link

gitpod-io bot commented Oct 11, 2020

@@ -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}" } ,
Copy link

Choose a reason for hiding this comment

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

Space found before comma.

@@ -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}" } ,
Copy link

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
Copy link

codecov bot commented Oct 11, 2020

Codecov Report

Merging #8532 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8532   +/-   ##
=======================================
  Coverage   81.91%   81.91%           
=======================================
  Files         101      101           
  Lines        5896     5896           
=======================================
  Hits         4830     4830           
  Misses       1066     1066           
Impacted Files Coverage Δ
app/helpers/search_helper.rb 100.00% <ø> (ø)

Copy link
Collaborator

@Tlazypanda Tlazypanda left a 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

@codeclimate
Copy link

codeclimate bot commented Oct 11, 2020

Code Climate has analyzed commit 5122a9e and detected 0 issues on this pull request.

View more on Code Climate.

@jywarren jywarren merged commit 3311916 into publiclab:main Oct 11, 2020
@jywarren
Copy link
Member

Fantastic!! Thanks so much!!! 🎉🎉🎉

piyushswain pushed a commit to piyushswain/plots2 that referenced this pull request Oct 22, 2020
…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
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
…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
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
…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
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
…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
ampwang pushed a commit to ampwang/plots2 that referenced this pull request Oct 26, 2021
…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
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
…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
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.

add tags search to type-specific searches sidebar links
3 participants