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: Adding routing of new queries to a URL query param #160

Open
rihp opened this issue Feb 15, 2024 · 2 comments
Open

Feature: Adding routing of new queries to a URL query param #160

rihp opened this issue Feb 15, 2024 · 2 comments

Comments

@rihp
Copy link
Contributor

rihp commented Feb 15, 2024

For example:

Given an url witha query param like the one below:
https://fundpublicgoods.ai/?strategy="space exploration"

Fund public goods should create a new strategy query with the strategy "space exploration"

This is very useful at the moment of integrating other systems with FPG


Development plan by @nerfZael

Landing page:
read query params or path params from url
on load do the functionality that our "prompt send button" does (makes post request and redirects to strategy page)
The landing page could show a message like "generating your strategy"


Resources by @cbrzn
https://github.com/polywrap/fund-public-goods-ai/blob/dev/web/components/PromptInput.tsx
https://nextjs.org/docs/app/api-reference/functions/use-search-params

@orishim
Copy link
Contributor

orishim commented Feb 19, 2024

This could be utilized in a Farcaster frame to open up the app to a new query

@dOrgJelli
Copy link
Contributor

This can definitely be done pretty easily

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

No branches or pull requests

3 participants