Staff 0.7.0: A filtered people list you can share and reload
Staff 0.7.0 makes the PhoenixKit staff directory’s people list remember its filters in the page address, so a filtered list can be bookmarked, shared, reloaded and reached with the Back button.
Search and status in the address
The people list’s search box now writes to ?q= and the status filter to ?status=. With neither set, the list stays at its plain address. Typing in the search box adds one history entry rather than one per letter, while picking a status adds a real one, so Back returns to the previous filter instead of leaving the page.
A link can now open the list already filtered, including straight to the trash view with ?status=trashed. Only the statuses the filter offers are accepted (active, inactive and trashed); anything else in a crafted link shows the unfiltered list.
The list now loads in one place for the first visit, a shared link and a Back press, so all three show the same thing. Clearing the filters returns the list to its plain address.
Upgrading
Staff 0.7 needs PhoenixKit core 1.7.231 or later, up from 1.7.189, because the people list uses core’s address-state helper that first shipped in 1.7.231. The Comments requirement is unchanged. No migration.
Full release notes: Staff 0.7.0
0.7.0 · 5 August 2026
The staff list’s search and status filter now live in the query string, so a filtered list is a real URL — shareable, reload-proof, and Back returns to the previous query instead of leaving the page. Merged as PR #14, with a post-merge review that raised the core requirement and added the test coverage the PR shipped without.
Requires phoenix_kit ~> 1.7.231 (raised from ~> 1.7.189) for
PhoenixKitWeb.Live.UrlState, which PeopleLive now uses at compile time.
The previous pin allowed cores back to 1.7.189, none of which carry that
module — resolving one would have failed to compile the package. The hard dep
on phoenix_kit_comments ~> 0.2 is unchanged.
Added
- URL-backed staff list state.
PhoenixKitStaff.Web.PeopleLiveadopts core’sPhoenixKitWeb.Live.UrlState: the search box publishes as?q=and the status filter as?status=, both omitted when unset so an unfiltered list stays at the bare path. Debounced typing collapses into a single history entry (replace: true); picking a status pushes a real one.?status=is whitelisted to the values the form offers andStaff.scope_status/3understands ("",active,inactive,trashed), so a crafted link falls back to the unfiltered list. Deep links to the Trash view now work. - Tests for the above — 9 database-free tests pinning the declared spec and
core’s codec (including that the status whitelist stays in sync with
Person.statuses/0+Person.soft_delete_status/0), plus 5 LiveView tests covering shared links, crafted input, and the patch written on filter/clear.
Changed
PeopleLiveno longer queries inmount/3. The list load moved tohandle_url_state/2, so the first render, a shared link and a Back press all take one path. The filter form gained the explicitidLiveView needs for form recovery.- Raised the
phoenix_kitrequirement to~> 1.7.231(see above).
Fixed
- Pruned eight stale
mix.lockentries (igniterand its transitive closure — an optional dep of core) left behind by the dependency refresh; they were failingmix precommit’sdeps.unlock --check-unusedstep.
Staff 0.7.0. Install or update: {:phoenix_kit_staff, "~> 0.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.