Skip to content

Unify search and tag results - #714

Merged
muffinresearch merged 2 commits into
mozilla:masterfrom
muffinresearch:unify-tag-and-search-results
Aug 7, 2020
Merged

muffinresearch merged 2 commits into
mozilla:masterfrom
muffinresearch:unify-tag-and-search-results

Conversation

@muffinresearch

@muffinresearch muffinresearch commented Aug 6, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #713

This patch:

  • Removes the hostname from the search results
  • Adds the number of results to tag results.
  • Removes the list item number from tag results and uses the same styling as search pages.

Tags

Before:

Results_for_tag__guide____Firefox_Extension_Workshop

After:

Results_for_tag__guide____Firefox_Extension_Workshop

Search results

Before:

Search_Results___Firefox_Extension_Workshop

After:

Search_Results___Firefox_Extension_Workshop

@muffinresearch

Copy link
Copy Markdown
Contributor Author

Note build failures are due to the yarn registry being a 503.

@muffinresearch
muffinresearch requested review from a team and eviljeff and removed request for a team August 7, 2020 08:18
Comment thread src/content/tags.liquid

<ol>
{% assign taglist = collections[ tag ] %}
<h2 class="no-underline">{{ taglist.length }} results for tag “{{ tag }}”</h2>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: "results" is incorrectly plural when there's only one result. (normally I'd say use ngettext but I don't know how the templating/l10n is set up here)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. There is no l10n (yet).

As this restores parity with what is in prod, I'll ship it and file a follow-up bug to fix this correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Filed here: #716

@muffinresearch
muffinresearch merged commit df86577 into mozilla:master Aug 7, 2020
@muffinresearch
muffinresearch deleted the unify-tag-and-search-results branch August 7, 2020 08:38
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.

Unify link display between search and tag pages

2 participants