Merged
Conversation
6 tasks
8a4c848 to
13d22c6
Compare
itamm15
approved these changes
Dec 23, 2025
| - `push_navigate(socket, to: socket.view.fallback_path(action, socket))` is done if the LiveView is in the mounting phase, | ||
| - `fallback_path` defaults to the current `_live_referer` path if available, otherwise it is `/`. This means that if using the [link](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#link/1) component with `:navigate` option within the current session, we will still be able to navigate back to the currently displayed page, even though it will go through the mounting phase. | ||
| - Permit dependency bumped to 0.3.1 to fix curiosum-dev/permit#49. | ||
| - Major improvements to documentation and examples. It's now much easier to get started with the library in an existing project. |
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.
Pull Request
Description
Contains significant documentation improvements for clarity and completeness in both LiveView and controller authorization, as well as configuring action behaviour.
Also piggybacks a change in the way
Permit.Phoenix.Plugis used from withinPermit.Phoenix.Controller- it's now used directly as a plug module. Moreover, you can no longer use this plug directly from a controller and this is reflected in raising an error when it is attempted - and the moduledoc has been removed in favour of a better documentation inPermit.Phoenix.Controller.Type of Change
Related Issues
Fixes #36
Changes Made
Permit.Phoenix.Plugused as plug moduleTesting
Test suite passing without modification.
Test Environment
Test Cases
Test Commands Run
Documentation
Code Quality
Phoenix/LiveView Specific
Backward Compatibility
Breaking Changes
Performance Impact
Performance Notes
Security Considerations
Additional Notes
Screenshots/Examples
Checklist
Reviewer Notes