-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.x] Upgrade Inertia #563
Conversation
# Conflicts: # src/Console/InstallCommand.php # stubs/inertia/resources/js/app.js
stubs/inertia/resources/js/Pages/Profile/TwoFactorAuthenticationForm.vue
Show resolved
Hide resolved
this.remember = false | ||
} | ||
}) | ||
this.form.post(this.route('login')) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my, the simplification here! 😍
stubs/inertia/resources/js/Pages/Profile/LogoutOtherBrowserSessionsForm.vue
Outdated
Show resolved
Hide resolved
stubs/inertia/resources/js/Pages/Profile/UpdatePasswordForm.vue
Outdated
Show resolved
Hide resolved
This looks awesome @claudiodekker! The only thing I'm left wondering is whether any of the One think I'm pretty sure we can remove is the shared jetstream/src/Http/Middleware/ShareInertiaData.php Lines 53 to 57 in bbaa2cb
|
Co-authored-by: Jonathan Reinink <[email protected]>
Nice! ❤️ One thing I'm curious about is the removal of |
Haha, thanks! Yeah, @reinink and I had discussed it, and almost added it yesterday, but basically we found it difficult to really put a finger on when a form is considered recently submitted, and at what point it's modified too much (e.g. resetting fields or clearing errors) and should no longer be considered as such. I think I can also speak for the both of us when I say that we do see the use cases & added value of something like this, but because we really wanted to get this release out of the door and didn't want to last-minute ship something we'd end up regretting, we decided to simply shelve the idea for now and to just implement it with local state instead. Merry Christmas! 🎄 |
There are still files that use Also, text in |
Thanks @bonzai! 👍 @taylorotwell Only after @bonzai's comment just now I noticed that |
@claudiodekker Thanks. Yeah, it was nice for transitions and such on those Saved indicators that fade out in Jetstream. |
@taylorotwell Done! We've added At the same time I made a few tweaks to some sensitive forms, to directly clear passwords from the page on the close of the model they're being shown in, instead of only when that model gets re-opened. 👍 |
-<jet-dialog-modal :show="confirmingPassword" @close="confirmingPassword = false">
+<jet-dialog-modal :show="confirmingPassword" @close="closeModal"> -<jet-dialog-modal :show="confirmingUserDeletion" @close="confirmingUserDeletion = false">
+<jet-dialog-modal :show="confirmingUserDeletion" @close="closeModal"> LogoutOtherBrowserSessionsForm.vue#L57: -<jet-dialog-modal :show="confirmingLogout" @close="confirmingLogout = false">
+<jet-dialog-modal :show="confirmingLogout" @close="closeModal"> |
stubs/inertia/resources/js/Pages/Profile/LogoutOtherBrowserSessionsForm.vue
Outdated
Show resolved
Hide resolved
Co-authored-by: Marek Szymczuk <[email protected]>
@bonzai Thanks a lot for the review(s)! 💪 👍 |
@claudiodekker I'm checking this pull request out, its awesome! Shouldnt the Fortify actions be updated to not use error bags as well? eg. |
@markvesterskov I'd like that, but you have to remember that Jetstream is just one implementation of Fortify. If we were to remove the error bags from there, it'd break any other Jetstream-like packages that may exist and rely on them being set. This is also why some Inertia forms/requests in this PR still use a manually defined error bag, even after this PR. |
@claudiodekker Makes great sense, thanks for the reply, and thanks for the awesomeness with Jetstream and Inertia - I'm working on a new project using the master branch and it is a pleasure to work with. |
This PR upgrades Jetstream to support and make use of the features shipped with
@inertiajs/inertia-vue
version0.5.0
.Specifically, it migrates away from
jetstream-js
in favor of Inertia's own form helper, removes explicit 'error bag' definitions where possible, and also fixes a couple other minor issues found during this migration.