-
Notifications
You must be signed in to change notification settings - Fork 40
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
[WIP, DON'T MERGE] Replacing Typeahead, site-wide #5420
Open
rfultz
wants to merge
69
commits into
develop
Choose a base branch
from
feature/5142-replace-typeahead-filter
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Replacing Typeahead with Autocomplete
Required reviewers
Impacted areas of the application
Screenshots
Should be no visual changes
Related PRs
None
Known issues
Still working on MUR search, and need to test Legal and RAD lookups
How to test
There are a lot of places to test and a lot of ways, but they should generally all pass or fail the same way.
Generally, we want to make sure it
Environment variable
There's an environment variable (
FEC_USE_TYPEAHEAD
) that will control whether the searches and lookups will use Typeahead or Autosuggest. To check which one you're getting, check developer tools:twitter-typeahead
,tt-input
autoComplete_
andautosuggest
How to set:
True
in your terminal orTrue
inbase.py
orFEATURES['use_tt'] = True
underif FEC_CMS_ENVIRONMENT == ENVIRONMENTS['local']
False
in your terminal orFalse
inbase.py
orFEATURES['use_tt'] = False
underif FEC_CMS_ENVIRONMENT == ENVIRONMENTS['local']
Site header search on homepage
/data/receipts/individual-contributions/?contributor_name=[your term]
/search/?type=candidates&type=committees&type=site&query=[your term]
▪
Site header search on search page
Functionalityif the field builds and works correctly on the homepage, it'll be fine here▪
Site header search on any datatables page with filters (individual contributions)
Functionalityif the field builds and works correctly on the homepage, it'll be fine hereDesktop, keyboardif it works for /search, it'll work herePhone/tablet, touchif it works for /search, it'll work hereSearch page
/data/receipts/individual-contributions/?contributor_name=[your term]
/search/?type=candidates&type=committees&type=site&query=[your term]
▪
Datatables filters (individual contributions)
▪
RAD contact form
name="u_committee"
)▪
Audit search
▪
Desktop, keyboardthis functionality is the same across every Autosuggest filterPhone/tablet, touchthis functionality is the same across every Autosuggest filterMUR Search
▪
Desktop, keyboardthis functionality is the same across every Autosuggest filterPhone/tablet, touchthis functionality is the same across every Autosuggest filterBy the numbers (raising, spending)
▪
Desktop, keyboardthis functionality is the same across every Autosuggest filterPhone/tablet, touchthis functionality is the same across every Autosuggest filter