Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ Ticketing domain * ✨ Empty zammad objects * ⚡ Speed up tests * ✨ Zammad client uses axios * ♻️ Use request method * ✨ Use zammad access token * ✨ Use config base url * ♻️ Extract axios instance * ♻️ Move test * ✨ Add createTicket method * ✨ Pass correct data to ticket creation * ✨ Use x-on-behalf-of header * ✅ Add empty test for zammad manager * ✨ Zammad manager uses zammad client * ✨ Add author email to DTO * ✨ Ticket manager calls the client * ♻️ Rename title to subject * ✨ Add create support ticket usecase * ✨ Service container * ✨ Empty support ticket controller * ✅ Add simple controller test * ➕ Add yup * ✨ Define validation function * ✨ Add validator * ✨ Do not abort early * ✨ Send validation errors to rendering * ✨ Render no error when ticket is created * ✨ Render global error when ticket creation fails * ♻️ Refactor test * ♻️ Simplify try catch flow * ✅ Increase domain test coverage * ✨ Add route for form post * ⚰️ No need to create user before creating a ticket * 🏷️ Add form type to answers * ⚰️ Unused template * ✨ Handle form config * ✨ Set status to 422 on validation error * ✨ Set status to 502 on zammad error * ✨ Render form * 🔧 Configur form question * ✨ Label in red when in eerror * ✨ Display email in error * ♻️ Factorize error detection * ♻️ Simplify template * 🐛 Decode form submission * ✨ Display user input * 🔒 Avoid bot form submission * ✨ Working form submission * ✨ Display server error * 🐛 Duplicated turbo frame * ♻️ Extract first marco to a separate file * 🔧 Change question tree for tests and demo * ✨ Form must have a recipient * ✨ Use recipient in form * 💬 Change test form title * 💄 Increase textarea size * 📝 Update example env file * ✨ Add from an to in zammad call * 🐛 Create user before posting ticket * 🐛 User creation can fail * ✨ Redirect after success * ✨ Add thank you controller * ✨ Add thank you page * 🔧 Add a test case for submission failure * ➕ Add stimulus * 💩 Redirect to thank you and handle errors using stimulus
- Loading branch information