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

[BitBuilder] Add "Close form" button #60

Closed
wants to merge 1 commit into from

Conversation

ellipsis-dev[bot]
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot commented Oct 17, 2023

Summary:

Issue: #59
Plan feedback: Approved by @hbrooks

Implementation:

  1. Add 'Close form' button to FormDetailPage
    • In the /src/pages/forms/[id].tsx file, add a new button to the left of the 'View live form' button. The button should have the text 'Close form' when is_open = true, and 'Open form' when is_open = false. The button should have a white background with red text. When clicked, the button should flip the boolean for the is_open column in the correct row in the database using the supabase client.

Report:

Step Result Details
1
Add 'Close form' button to FormDetailPageAdded 'Close form' button to FormDetailPage

Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #59. Then, add the bitbuilder:create label to try again. For more information, check the documentation.

Generated with ❤️ by www.bitbuilder.ai

@ellipsis-dev ellipsis-dev bot requested a review from hbrooks October 17, 2023 20:19
@vercel
Copy link

vercel bot commented Oct 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
talk-form-ai ✅ Ready (Inspect) Visit Preview Oct 17, 2023 8:19pm

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

Successfully merging this pull request may close these issues.

1 participant