Closed madassdev closed 1 month ago
The changes introduce a feature for handling form submissions, specifically identifying first submissions and enhancing user interaction through modals. The PublicFormController
now determines if a submission is the first and adjusts the response accordingly. The OpenCompleteForm
component displays a modal for first-time submissions, while a new ShareFormUrl
component allows users to share the form URL. Additionally, the FirstSubmissionModal
has updated text and links for clarity.
File Path | Change Summary |
---|---|
api/app/Http/Controllers/Forms/PublicFormController.php |
Updated answer method to include is_first_submission in response and refined fetchSubmission method for validation. |
client/components/open/forms/OpenCompleteForm.vue |
Added FirstSubmissionModal and logic to display it for first submissions; modified submitForm method. |
client/components/open/forms/components/FirstSubmissionModal.vue |
Updated text and button functionality in the modal, enhancing user clarity and interaction. |
client/components/open/forms/components/ShareFormUrl.vue |
Introduced a new component for displaying and copying a shareable URL for the form. |
api/app/Http/Resources/FormResource.php |
Added submissions_url field to toArray method for form owners and corrected getCleanigns method. |
api/app/Models/Forms/Form.php |
Added getSubmissionsUrlAttribute() method to construct a URL for accessing form submissions. |
client/nuxt.config.ts |
Simplified build configuration by ensuring specified packages are always included in the transpile array. |
client/package.json |
Updated various devDependencies and dependencies to newer versions. |
PublicFormController
and OpenCompleteForm.vue
regarding submission handling.fetchSubmission
method may relate to IntegrationController
changes involving submission handling.CameraUpload
component.OpenFormField
and FormFieldEdit
components may relate to enhancements in form submissions.OpenCompleteForm.vue
that enhance form state management.🐰 In the fields where forms do bloom,
A first submission brings a room,
With modals bright and links so clear,
Sharing joy, we hop and cheer!
New paths to take, new tales to tell,
In this code, we dance so well! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Improvements