Skip to content

Projects 0.24.1: Faster project lists for members and a settings fix

Projects 0.24.1 makes the project list cheaper to build for people who are not site admins, and stops the Projects settings page from going blank on an unknown tab.

To work out which projects a member may see, the module loaded every reachable project in full just to read its id. It now reads only the ids, across the same three paths: direct membership, group grants and projects visible to everyone. The dashboard’s “my project” lookup benefits most.

On the settings page, a tab switch with an id the page did not know hid every card. Only the five real tabs are accepted now, and anything else leaves the page as it was.

The rest of the release fixes tests and a developer hint, with no change for a running site.

Full release notes: Projects 0.24.1

0.24.1 · 13 September 2026

Follow-ups from the PR #43 quality sweep, plus one performance fix it flagged and deferred.

Fixed

  • list_projects_for/2’s non-admin scoping no longer materialises a full %Project{} struct per accessible project just to read its uuid. Members.accessible_project_uuids/1 selects uuids directly across the same three access paths (direct membership, group grants, “everyone”-visible projects); phoenix_kit_dashboard_viewer_context/2’s limit: 2 call is the caller this mattered most for.
  • The settings page’s switch_settings_tab event accepted any string, and every settings card’s visibility keyed off @active_tab != <id> — an unrecognised tab id blanked every card. Whitelisted the five known ids.
  • Restored the Run: createdb ... && mix test.setup hint text in test_helper.exs, mangled into a run-on line by an earlier commit.
  • Fixed two tests from PR #43 that could not fail as written: one asserted nil for both a real and a nonsense context kind, and one hit the database from a plain ExUnit.Case with no sandboxed connection, passing only because the query’s own rescue swallowed the resulting ownership error. Moved the DB-backed checks to a proper integration test with real membership rows.
  • The embedded ProjectFormLive/AssignmentFormLive :edit tests asserted only that a form rendered, indistinguishable from a blank :new form. They now assert the loaded record’s own data.

Projects 0.24.1. Install or update: {:phoenix_kit_projects, "~> 0.24"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.