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

Tamagui App: Support Demo Data generation #5

Open
JonLatane opened this issue May 21, 2023 · 0 comments
Open

Tamagui App: Support Demo Data generation #5

JonLatane opened this issue May 21, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@JonLatane
Copy link
Owner

JonLatane commented May 21, 2023

Basically, port the logic of demo_data.dart to use the TypeScript gRPC client instead of the Flutter one, and fetch (or XmlHttpRequest if you wanna be fancy and show progress) in place of Dart http. 100k faces should work just as well in a browser as the Flutter implementation based on their GitHub.

This could be an interesting time to integrate ChatGPT into the chat discussions... Basically, you could replace randomized calls to the _demoReplies array with ChatGPT responses to the tree of parent comments. There's probably some ChatGPT/OpenAI API token that will need to be configured, so some UI.

Speaking of UI, it should go on the Server Configuration page (ServerDetailsScreen/server_details_screen.tsx), and appear only for Admins of course. If there's to be an OpenAI token input, it should be optional (falling back to the _demoReplies array, renamed to demoReplies since it's not Dart), and shouldn't store any OpenAI tokens anywhere outside the browser (or really in browser data storage either).

@JonLatane JonLatane added the good first issue Good for newcomers label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant