Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Feature/glossary improvements #231

Merged
merged 11 commits into from
Jun 5, 2015
Merged

Conversation

noahmanger
Copy link
Contributor

This replaces Typeahead in the glossary with ListJS for search/filtering.

screen shot 2015-06-02 at 4 23 36 pm

It's almost there, but needs some finessing. The way it does search right now is to search through both the terms and definitions for any instance of the word, which means that search results can be a little confusing:

screen shot 2015-06-02 at 4 23 48 pm

Also, when you click on a term, like "committee" it just runs a search for that term, returning multiple results.

Would be nice if someone could take a look and make any modifications.

All terms are visible, with definitions collapsed
@noahmanger
Copy link
Contributor Author

Oh, and the tests need to be updated. Would love a quick lesson on these so I can get better at maintining them.

"term":"Candidate",
"definition":"An individual seeking nomination for election, or election, to a federal office becomes a candidate when he or she (or agents working on his or her behalf) raises contributions or makes expenditures that exceed $5,000."
"glossary-term":"Candidate",
"glossary-definition":"An individual seeking nomination for election, or election, to a federal office becomes a candidate when he or she (or agents working on his or her behalf) raises contributions or makes expenditures that exceed $5,000."
Copy link
Contributor

Choose a reason for hiding this comment

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

This description still doesn't make sense.

LindsayYoung added a commit that referenced this pull request Jun 5, 2015
@LindsayYoung LindsayYoung merged commit f57bc98 into develop Jun 5, 2015
@noahmanger noahmanger deleted the feature/glossary-improvements branch August 3, 2015 22:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants