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

Changed tag page 'No Results found' message #9531

Closed
wants to merge 2 commits into from

Conversation

TildaDares
Copy link
Member

Fixes #9510 (<=== Add issue number here)

Before

Screen.Recording.2021-04-20.at.09.03.21.mov

After

Screen.Recording.2021-04-20.at.09.10.19.mov

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 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 Apr 20, 2021

@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@44afb74). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9531   +/-   ##
=======================================
  Coverage        ?   81.49%           
=======================================
  Files           ?       98           
  Lines           ?     5924           
  Branches        ?        0           
=======================================
  Hits            ?     4828           
  Misses          ?     1096           
  Partials        ?        0           

@TildaDares
Copy link
Member Author

TildaDares commented Apr 20, 2021

I think I also need to change the tag params to other_tab in https://github.com/publiclab/plots2/blob/main/test/integration/I18n_test.rb#L426

@codeclimate
Copy link

codeclimate bot commented Apr 20, 2021

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

View more on Code Climate.

@TildaDares TildaDares closed this Apr 20, 2021
@jywarren
Copy link
Member

Hi @TildaDares did you mean to close this? You can often continue to make changes and keep pushing them to the same remote branch and theyll keep showing up in the same PR. Just checking!

@TildaDares
Copy link
Member Author

@jywarren I'll reopen it now. Thanks

@TildaDares TildaDares reopened this Apr 20, 2021
@gitpod-io
Copy link

gitpod-io bot commented Apr 20, 2021

@@ -7,8 +7,8 @@
<% if @node_type == "note" %>
<div class="tab-pane active" id="notes">
<% if @notes.nil? || @notes.length == 0 %>
<p><%= raw translation('tag.show.no_results_found', tag: params[:id]) %>:</p>
<p><a href="/search/<%= params[:id] %>">Search for "<%= params[:id] %>"</a></p>
<p><%= raw translation('tag.show.no_results_found', other_tab: 'Wiki') %></p>
Copy link
Member Author

Choose a reason for hiding this comment

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

@jywarren Instead of using the en.yml to display the message, I think maybe we should just display the message here since each tab has it's own no_results found message.

@TildaDares TildaDares closed this Apr 23, 2021
@TildaDares TildaDares deleted the tag-page branch April 23, 2021 23:03
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.

Standardize presentation of "no results" messages on tag page tabs
2 participants