Repository navigation
build(frontend): vue-router 5.1 + vite 8.0 against dev; dependabot target-branch fix (supersedes #1015) - #1133
Conversation
|
Resolve by running |
|
⏳ Needs a rebase onto I've re-queued the failed e2e runs, but they're exercising the old base — if they fail again it's likely real drift, not flake. Please rebase onto |
…return-style Rebuilds dependabot PR #1015 (+ dolho's vite-8 fold-in of #1063) against dev — the original targeted main, but dev's router/index.js was restructured by #1109 (Operations consolidation) and still carried 11 next()-callback guard sites, guaranteeing a conflict at the next release cut. - vue-router ^5.1.0: migrate beforeEach + AgentWorkspace beforeEnter from the deprecated next() callback to return-style (true = proceed, location = redirect). All 11 sites converted; behavior preserved. - vite ^8.0.16 (rolldown): production build verified in node:20-alpine (matches docker/frontend images, Node 20.20 ≥ vite 8's 20.19 floor). - package-lock.json regenerated in a clean container. Supersedes #1015. Co-Authored-By: Claude Fable 5 <[email protected]>
d0c6447 to
36fcc87
Compare
|
✅ Rebased onto
So this PR is now reduced to its remaining substance: vue-router 4.5→5.1 + the guard return-style migration in |
Review — code LGTM, but ⛔ not mergeable yetThe Vue Router 5 migration itself is correct: every Blocker: the Hold until #1135 lands and e2e is green. Also worth a manual smoke of the auth/setup redirect paths given the major-version guard rewrite. |
…r5-vite8 # Conflicts: # src/frontend/package-lock.json
Review — vue-router 5 + vite 8 (automated review, Claude)Guard migration is correct: all 1. Pre-release build deps in the lockfile. The regenerated lock pulls in 2. dev → prod dependency promotion. Several 3. Cross-PR conflict with #1419. Both PRs edit Otherwise LGTM pending green |
Resolves router/index.js: keep dev's #1418/#1419 per-route title meta, keep this branch's Vue Router 5 return-style guards, and convert the dev-added Brain Orb beforeEnter (#58/#60) from next()-callback to return-style — next() is removed in vue-router 5. Co-Authored-By: Claude Fable 5 <[email protected]>
Summary
Rebuilds dependabot PR #1015 (vue-router 4.6.3 → 5.1.0, plus the Vite 6.4 → 8.0.16 fold-in of #1063) against
dev. The original targetedmain, butdev'srouter/index.jswas restructured by #1109 (Operations consolidation) and still carried 11next()-callback guard sites — merging #1015 tomainwould have guaranteed a conflict (or a wrong-side resolution) at the next release cut.Changes
src/frontend/src/router/index.js— migrate the globalbeforeEachand the AgentWorkspacebeforeEnterfrom the deprecatednext()callback to Vue Router 5 return-style guards (true= proceed, location = redirect). All 11 sites converted on dev's refactor(ui): unify Health + Ops + Executions into a single Operations nav area #1109-restructured file; redirect logic byte-for-byte equivalent.src/frontend/package.json—vue-router ^5.1.0,vite ^8.0.16(only these two lines; dev's other pins untouched).src/frontend/package-lock.json— regenerated in a cleannode:20-alpinecontainer..github/dependabot.yml—target-branch: devon all five ecosystems. Dependabot's default (repo default branch =main) was creating main-side drift: bumps landed onmainwhile features landed ondev(e.g. axios^1.17.0on main vs^1.16.1on dev). All dep PRs now flow through the normaldev → mainrelease path.Verification
npm run build(Vite 8 / rolldown) green innode:20-alpine— same base as bothdocker/frontendDockerfiles; Node 20.20 satisfies Vite 8's ≥20.19 floor. Full app builds in ~2s.vite 8.0.16/vue-router 5.1.0/vue 3.5.35/@vitejs/plugin-vue 6.0.7.grep -n 'next(' router/index.js→ zero remaining callback-style sites.uilabel applied sofrontend-e2eruns on this PR (it was SKIPPED on chore(deps): bump vue-router from 4.6.3 to 5.1.0 in /src/frontend #1015 — a router-major shipped with no browser-level verification).Supersedes #1015. Related: #1063, #1109.
🤖 Generated with Claude Code