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

Search bar UI: How to control the behaviour #35

Open
tchoutri opened this issue Dec 9, 2021 · 3 comments
Open

Search bar UI: How to control the behaviour #35

tchoutri opened this issue Dec 9, 2021 · 3 comments
Assignees
Labels

Comments

@tchoutri
Copy link
Contributor

tchoutri commented Dec 9, 2021

Inspired by GitHub's and Hex.pm's search bars, I suggest we implement the following modifiers in the search bar:

Relieving the Package view:

These modifiers are here in order to provide a full list of dependencies & dependents for packages.

  • @packagename (trigram search on package name, with namespace ranking)
  • @namespace/packagename (namespaced search with trigram search on package name)

The following could be built internally and fed to the search engine.
Different screens and dedicated URLs will be provided:

  • dependencies:<package name> (implicitly for the latest release)
  • dependencies:<package name>-<version>
  • depends:<package name>
  • versions:<package name>

Future features

This would be nice to have in the future.

  • hoogle:<string> Hoogle has a JSON API
@tchoutri
Copy link
Contributor Author

tchoutri commented Mar 6, 2022

A way to implement this would be to have one entry point that parses the input, looking for modifiers, and then could dispatch to the appropriate functions.

@tchoutri
Copy link
Contributor Author

tchoutri commented Mar 6, 2022

That being said we can start with just no modifiers and namespace: modifiers, and instead have dedicated screens + urls for rev-deps & deps.

@TixieSalander
Copy link
Member

TixieSalander commented Oct 4, 2024

As discussed, I'm planning on improving the UI part of that to facilitate it's usage.

@TixieSalander TixieSalander self-assigned this Oct 4, 2024
@TixieSalander TixieSalander added the frontend Frontend concerns label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants