-
Notifications
You must be signed in to change notification settings - Fork 5
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
Keep search history for logged in users #1471
Comments
Stumbled across this issue and starting thinking about how this would work, ended up with a couple of unanswered questions. For the purposes of scoping out this issue, I thought I'd paste them here
@louise-davies maybe you could help keep my curiosity at bay? |
@MRichards99 it depends on what we mean by "keep" a search history. There's a few things we could potentially do
I would assume we'd have an autocomplete field if we're implementing it ourselves like how google does it, or if we go with 1 then it's the browsers that determine the UI. |
@louise-davies I feel like option 4 is the most complete implementation of the functionality but not sure whether it's overkill or not (I'm not familar with a typical DataGateway user so I'm not sure). I've been having a go with option 1 to see how that might work, mainly as it sounded the least daunting. I've been playing around with the To use non-standard values, it looks like you set Code return (
<TextField
className="tour-search-textfield"
id="filled-search"
name="fname"
label={t('searchBox.search_text')}
type="search"
margin="normal"
value={searchText}
onChange={handleChange}
onKeyDown={handleKeyDown}
fullWidth
variant="outlined"
color="secondary"
inputProps={{
'aria-label': t('searchBox.search_text_arialabel'),
}}
autoComplete="on"
/>
); If I change the name of the Have you got any suggestions? |
@MRichards99 the latter case is what we want - you don't actually need to set the
I also just added the |
Ah ok, I'll try that on Friday to see if I can get that to work! Could we work out which approach should be used to implement this issue? As I've got interested in this issue, I think it's something I want to have a go at implementing. |
Description:
It would be useful, especially for users who are logged in, to keep the history (with a configurable number of search strings) of the searchers that they performed.
Acceptance criteria:
The text was updated successfully, but these errors were encountered: