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

[Dewhale] implements #11 #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

[Dewhale] implements #11 #12

wants to merge 3 commits into from

Conversation

yangzhaox
Copy link
Owner

[Dewhale] This PR implements #11, created by Dewhale.

@yangzhaox yangzhaox added the ui-gen Generate UI label Apr 11, 2024
{
  "prompt": "Create a web ui in react. On the left there is a form which has an input for FlagKey. On the right there is a textarea which shows the generated json according to the form input on the left. Whenever I make any change on the left, the right is updated in real time.\n",
  "images": []
}
@yangzhaox
Copy link
Owner Author

[Dewhale]: This code snippet creates a React component with a form on the left side containing an input field for the FlagKey. On the right side, there is a textarea that displays the generated JSON in real-time as the input field is updated. The JSON structure includes the flagKey, a boolean enabled field, and an empty variants array. The Textarea is set to read-only since it's only for displaying the generated JSON.

Copy link

cloudflare-workers-and-pages bot commented Apr 11, 2024

Deploying v9 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3de7d86
Status: ✅  Deploy successful!
Preview URL: https://b86f33f5.v9.pages.dev
Branch Preview URL: https://ui-gen-issue-11.v9.pages.dev

View logs

@yangzhaox
Copy link
Owner Author

Add a checkbox for State in the form

{
  "prompt": "Create a web ui in react. On the left there is a form which has an input for FlagKey. On the right there is a textarea which shows the generated json according to the form input on the left. Whenever I make any change on the left, the right is updated in real time.\nAdd a checkbox for State in the form",
  "images": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui-gen Generate UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant