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

Feature request: ability to query own crates in the Web Playground #499

Open
Walther opened this issue Oct 19, 2023 · 1 comment
Open

Feature request: ability to query own crates in the Web Playground #499

Walther opened this issue Oct 19, 2023 · 1 comment
Labels
A-playground Area: the query playground at play.predr.ag C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-medium Call for participation: experience needed to fix: medium / intermediate

Comments

@Walther
Copy link

Walther commented Oct 19, 2023

First: the Trustfall Web Playground is incredibly cool - thank you for making it!

After looking at a couple of the provided example crates and making some example queries, it is a fairly logical step to think about running queries against your own codebase(s).

It would be really nice if it was possible to somehow load a local directory into the locally-running Playground instance for querying.

There are probably a bunch of different possible implementations, e.g.

  • Browser filesystem API, give permission to read a directory?
  • Telling people to run a cargo doc command and use a file upload dialog for the output?
  • Something else?

I think this could be a nice additional step for testing out Trustfall for new users, before "committing" to the effort of installing the tool(s) locally.

@obi1kenobi obi1kenobi added C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-medium Call for participation: experience needed to fix: medium / intermediate A-playground Area: the query playground at play.predr.ag labels Oct 19, 2023
@obi1kenobi
Copy link
Owner

Asking people to drag-and-drop the JSON output of a suitable cargo doc command (which we could give them to copy-paste) into the page and letting them query it should be totally doable. I'm not well-versed in frontend work but I'd love to get some help from someone more capable in that regard — very happy to mentor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-playground Area: the query playground at play.predr.ag C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-medium Call for participation: experience needed to fix: medium / intermediate
Projects
None yet
Development

No branches or pull requests

2 participants