Skip to content

build(frontend): vue-router 5.1 + vite 8.0 against dev; dependabot target-branch fix (supersedes #1015) - #1133

Merged
vybe merged 3 commits into
devfrom
feature/1063-vue-router5-vite8
Jul 3, 2026
Merged

vybe merged 3 commits into
devfrom
feature/1063-vue-router5-vite8

Conversation

@vybe

@vybe vybe commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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 targeted main, but dev's router/index.js was restructured by #1109 (Operations consolidation) and still carried 11 next()-callback guard sites — merging #1015 to main would have guaranteed a conflict (or a wrong-side resolution) at the next release cut.

Changes

  • src/frontend/src/router/index.js — migrate the global beforeEach and the AgentWorkspace beforeEnter from the deprecated next() 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 clean node:20-alpine container.
  • .github/dependabot.yml — target-branch: dev on all five ecosystems. Dependabot's default (repo default branch = main) was creating main-side drift: bumps landed on main while features landed on dev (e.g. axios ^1.17.0 on main vs ^1.16.1 on dev). All dep PRs now flow through the normal dev → main release path.

Verification

  • npm run build (Vite 8 / rolldown) green in node:20-alpine — same base as both docker/frontend Dockerfiles; Node 20.20 satisfies Vite 8's ≥20.19 floor. Full app builds in ~2s.
  • Lockfile resolves 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.
  • ui label applied so frontend-e2e runs 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

@github-actions

Copy link
Copy Markdown

⚠️ Nightly unit-suite check skipped — merge conflict against dev.

Resolve by running git merge dev locally and pushing the result. The next nightly run will re-test once the conflict is gone.

@vybe

vybe commented Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

⏳ Needs a rebase onto dev. This branch is ~17 days behind dev (last touched 2026-06-11), and all 4 frontend-e2e shards failed against that stale base. A vue-router 5 + vite 8 major migration needs to be validated against today's dev (post #1109 Operations consolidation / #1112 Chat+Session merge), not a 17-day-old snapshot.

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 dev and re-run.

…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]>
@vybe
vybe force-pushed the feature/1063-vue-router5-vite8 branch from d0c6447 to 36fcc87 Compare June 27, 2026 18:24
@vybe

vybe commented Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

✅ Rebased onto dev (force-pushed). Resolving the conflicts surfaced that dev has already absorbed two-thirds of this PR:

  • vite 6→8 is already on dev — it's at ^8.1.0, newer than this branch's 8.0.16. Kept dev's ^8.1.0.
  • dependabot → dev retarget is already on dev (all 6 entries carry target-branch: dev, with a fuller comment re: security-update routing, bug: Dependabot opens dependency PRs against main instead of dev #1341). That 2nd commit became a no-op and was dropped.

So this PR is now reduced to its remaining substance: vue-router 4.5→5.1 + the guard return-style migration in router/index.js. package-lock.json was regenerated from dev's lock (lock-only, [email protected]), not hand-merged. Re-queued e2e is now exercising the current base — if it still fails, that's the genuine vue-router 5 migration to work through, not drift.

@dolho

dolho commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Review — code LGTM, but ⛔ not mergeable yet

The Vue Router 5 migration itself is correct: every beforeEach/beforeEnter guard is converted from the deprecated next() callback to the return-value convention (true/undefined = proceed, location = redirect), and the redirect branches (/setup, /login, entitlement bounce, workspace fallback) all preserve their prior semantics. package.json bumps vue-router ^4.5 → ^5.1.

Blocker: the e2e check is FAILURE. Per this PR's own description it's blocked on #1135 (operating-room redirect drift from #1109 + ensure-default modal race) — those failures are pre-existing and unrelated to the router bump. Merge #1135 → dev first, rebase this, and e2e should go green.

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
@dolho

dolho commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review — vue-router 5 + vite 8 (automated review, Claude)

Guard migration is correct: all next() callback sites convert cleanly to Vue Router 5 return-style (true/undefined = proceed, location = redirect, no callback left), and every branch in beforeEach/beforeEnter returns explicitly — no silent fall-through. Good call rebasing #1015 onto dev and applying ui so frontend-e2e actually runs (a router major with zero browser verification was the real risk on #1015).

1. Pre-release build deps in the lockfile. The regenerated lock pulls in @babel/generator, @babel/parser, @babel/helper-*, and @babel/types at 8.0.0-rc.4 (transitively via the vite 8 / rolldown toolchain). RC-pinned babel is build-time only, but it's still an unreleased dependency shipping in a pinned lockfile — worth a note in the PR and a plan to re-lock once the 8.0 finals land.

2. dev → prod dependency promotion. Several @jridgewell/* entries (gen-mapping, resolve-uri, trace-mapping) lost "dev": true — now production deps. Presumably rolldown needs them at runtime; just flagging the surface-area change.

3. Cross-PR conflict with #1419. Both PRs edit src/frontend/src/router/index.js, and #1419 (per-route titles, on dev) still uses the deprecated next()-style beforeEnter on AgentWorkspace. Whichever merges second must reconcile — and if #1419 lands after this, its next() guard breaks under Vue Router 5. Recommend sequencing: merge this first, then rebase #1419 onto the v5 return-style.

Otherwise LGTM pending green frontend-e2e.

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]>
@vybe
vybe enabled auto-merge (squash) July 3, 2026 09:08
@vybe
vybe merged commit 85a7a85 into dev Jul 3, 2026
16 of 17 checks passed
@vybe
vybe deleted the feature/1063-vue-router5-vite8 branch July 3, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency frontend Frontend/UI changes ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants