-
Notifications
You must be signed in to change notification settings - Fork 59
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
[ENG-6102] Added context phrase to institutions filter modal on search pages #2514
base: feature/b-and-i-25-01
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 13460664502Details
💛 - Coveralls |
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.
Some minor suggestions and a question. Looks good over all!
lib/osf-components/addon/components/search-page/filter-facet/component.ts
Outdated
Show resolved
Hide resolved
lib/osf-components/addon/components/search-page/filter-facet/component.ts
Outdated
Show resolved
Hide resolved
lib/osf-components/addon/components/search-page/filter-facet/template.hbs
Outdated
Show resolved
Hide resolved
{{#if (and this.hasDescription)}} | ||
{{ this.description }} <a href={{this.link}}> {{ this.link_text }} </a> | ||
{{else }} | ||
{{t 'search.filter-facet.see-more-modal-text'}} | ||
{{/if}} |
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.
Question: Does the PropertyPath.description
field from the SHARE API return the entire phrase "Please select a filter to apply to your search. Only OSF Institutions member affiliations are discoverable."?
Do we want the SHARE API only return "Only OSF Institutions member affiliations..." in the PropertyPath.description
field and the FE just shows "Please select a filter to apply to your search." no matter what?
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.
Yeah, I designed SHARE API to return description
to return Please select an institution to apply to your search. Only OSF Institutions member affiliations are discoverable.
, linkText
to return text that represents a link and link
itselt.
On the ticket description, the context phrase is different from the current phrase on the Frontend (Please select a filter to apply to your search
), so I added the part Please select an institution to apply to your search
to the description from SHARE API. I can change the phrases that SHARE API returns if needed.
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.
Looks great! Thank you!
Purpose
Added context phrase to institutions filter modal on search pages
Summary of Changes
TBD
Screenshot(s)
Side Effects
TBD
QA Notes
TBD