From 19f331741c7bef1fc1142a46073880c80a7bd34a Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Sat, 13 Jun 2026 17:41:48 -0300 Subject: [PATCH] Use Inertia's useHttp for automation JSON calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test-run and invocation-detail requests used raw fetch with a hand-rolled CSRF header. Switch to Inertia v3's useHttp (the standalone XHR client already used across the app), which handles CSRF, headers and error payloads — dropping the manual plumbing and reading the 422 message from error.response.data. --- .../components/automations/TestRunPanel.vue | 32 ++++++------------- .../js/pages/automations/Invocations.vue | 15 +++------ 2 files changed, 14 insertions(+), 33 deletions(-) diff --git a/resources/js/components/automations/TestRunPanel.vue b/resources/js/components/automations/TestRunPanel.vue index 1b9ad3b0..0f797768 100644 --- a/resources/js/components/automations/TestRunPanel.vue +++ b/resources/js/components/automations/TestRunPanel.vue @@ -1,4 +1,5 @@