Skip to content
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

Package search #1

Open
matteodelabre opened this issue Aug 2, 2021 · 3 comments
Open

Package search #1

matteodelabre opened this issue Aug 2, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@matteodelabre
Copy link
Member

matteodelabre commented Aug 2, 2021

In its current form, our package listing page (live here: https://toltec-dev.org/stable, https://toltec-dev.org/testing, generated from this template) isn’t well suited to users looking for a specific package. Using Ctrl-F on that page will only match packages on their name and description, but another common use case is to be looking for a specific file without knowing the name of the package that provides it (perhaps most commonly, the name of a provided binary/script).

Proposal: Using an offline-generated index, provide an listing page on which one can search for packages based on the following criteria: name, description, and provided files. This search interface could include packages from Entware (thereby solving #2).

This new listing page could combine both https://toltec-dev.org/stable and https://toltec-dev.org/testing, with stable shown by default and a switch to select which branch to show.

To the extent possible, I’d rather make this search work client-side to avoid increasing the server load and operating costs. If the index is not too big, we can make the client download it and then query it in the browser. If the index is too large, we may consider using https://github.com/phiresky/sql.js-httpvfs.

@matteodelabre
Copy link
Member Author

Here’s a mockup of what the search page could look like:

Search page mockup

@matteodelabre
Copy link
Member Author

Improved design with a denser display of search results. Clicking the name of a package could lead to a new page with more details that are (arguably) not immediately relevant on the search page but could be useful in some cases (complete list of files, full description, section, maintainer, …).

Toltec Package Search

@matteodelabre matteodelabre added the enhancement New feature or request label Oct 13, 2021
@matteodelabre
Copy link
Member Author

Feature request: list packages from a category (e.g. by typing category:launcher in the search bar) & provide ability to pre-fill search bar from URL. See toltec-dev/toltec#460.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant