From 27c6454f1b2e2c13fcd969bc40dcc16f62f5245e Mon Sep 17 00:00:00 2001 From: Thorsten Bus Date: Mon, 2 Mar 2026 08:57:55 +0100 Subject: [PATCH] fix: register ZiggyVue plugin for route() in Vue templates - Add ZiggyVue plugin to app.js setup (fixes 'route is not a function' in all Vue template usages) - Add ziggy-js as production dependency (was missing) - Add CSRF meta tag to app.blade.php - Add date formatting helpers to Services/Index.vue - Name api.songs resource route to avoid Ziggy collision - Increase Playwright timeout to 90s for CI stability - Reduce sync test polling from 325 to 50 attempts --- .../notepads/cts-herd-playwright/issues.md | 22 +++++++++++ .../notepads/cts-presenter-app/learnings.md | 39 +++++++++++++++++++ package-lock.json | 24 ++++++++++++ package.json | 3 ++ playwright.config.ts | 2 +- resources/js/Pages/Services/Index.vue | 22 +++++++++++ resources/js/app.js | 2 + resources/js/bootstrap.js | 1 + resources/views/app.blade.php | 1 + routes/api.php | 3 +- tests/e2e/sync-and-pro.spec.ts | 2 +- 11 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 .sisyphus/notepads/cts-herd-playwright/issues.md diff --git a/.sisyphus/notepads/cts-herd-playwright/issues.md b/.sisyphus/notepads/cts-herd-playwright/issues.md new file mode 100644 index 0000000..d15a720 --- /dev/null +++ b/.sisyphus/notepads/cts-herd-playwright/issues.md @@ -0,0 +1,22 @@ +## [2026-03-01] Task 5: ZiggyVue Plugin Missing + +**Severity**: HIGH — Blocks all Vue component rendering that uses `route()` +**File**: `resources/js/app.js` +**Error**: `TypeError: o.route is not a function` on every page using `route()` in templates + +**Root Cause**: `@routes` blade directive provides `window.route` global, but Vue 3 `