internetarchive / internetarchive/openlibrary

Opt-in search history

Open
#7,779 1 comment 0 reactions 0 assignees View on GitHub
Lead: @mekarpeles Module: Search Page(s) Needs: Community Discussion Priority: 3 Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

People may want to revisit queries they made in the past.

### Describe the problem that you'd like solved

When one clicks on the search box at the top of the site or on the search page and no query has been entered yet a drop-down will emerge that asks whether you want to enable search history for your account. If search history is enabled then clicking in the search box will show you your last 10 or so queries.

This could be powered by local storage so this information wouldn't actually be stored on the server. Alternatively it could just be cached in memory or we could have a new table that maps users to queries.

### Proposal & Constraints

### Additional context

### Stakeholders

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.