Upgrade panel to Inertia.js v3#2575
Merged
Merged
Conversation
Bump inertiajs/inertia-laravel ^2.0 -> ^3.0 (v3.1.1) and @inertiajs/vue3 ^2 -> ^3 (3.6.1) for the panel, and adopt v3 features where they fit. Breaking changes handled: - <title inertia> -> <title data-inertia> in the root view. - Layout type tightened in pageResolver (narrow Component|undefined). - Config restructure inertia.testing.page_paths -> inertia.pages.paths in the panel test cases and add-on fixtures. v3 features adopted: - Deferred props: the Customer Edit orderChart (heaviest query) now loads in a follow-up request with a <Deferred> skeleton fallback; chart tests use loadDeferredProps. - Optimistic updates: MediaManager reorder patches the media page prop optimistically (opt-in optimistic-key) and rolls back on failure. - Prefetch: hover-prefetch on main and settings navigation links. - Polling: usePoll live-refreshes the Activity Log every 15s. useForm is retained (fully v3-supported); v3's uncontrolled <Form> is incompatible with the panel's controlled/custom inputs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the Inertia panel to Inertia.js v3 and adopts the v3 features that fit the panel's architecture.
inertiajs/inertia-laravel^2.0→^3.0(v3.1.1)@inertiajs/vue3^2→^3(3.6.1) — drops axios/qs/lodash-es from the bundleBreaking changes handled
<title inertia>→<title data-inertia>in the root view.pageResolver.ts(narrowComponent | undefined).inertia.testing.page_paths→inertia.pages.pathsin the panel test case + add-on fixtures.v3 features adopted (best-fit)
orderChart(heaviest query) loads in a follow-up request behind a<Deferred>skeleton; chart tests moved toloadDeferredProps.mediapage prop optimistically (opt-inoptimistic-key) and auto-reverts on failure (previously no rollback).usePolllive-refreshes the Activity Log every 15s (auto-pauses on hidden tab).Deliberately not adopted
<Form>refactor — v3's<Form>is uncontrolled (serializes native named DOM inputs); the panel's inputs are controlled Vue components (Combobox/TagsInput/RichTextEditorrender no serializable native control).useFormis retained — it is not deprecated in v3 and is the correct tool here.lib/http) stays.Verification
Pint · PHPStan · panel PHP (682 passed) · vitest (210 passed) · type-check · panel build · example add-on build — all green.
🤖 Generated with Claude Code