Skip to content

Document Resource and Session.Store public API - #152

Open
tfwright wants to merge 1 commit into
mainfrom
docs/resource-and-session-store
Open

Document Resource and Session.Store public API#152
tfwright wants to merge 1 commit into
mainfrom
docs/resource-and-session-store

Conversation

@tfwright

@tfwright tfwright commented Aug 2, 2026

Copy link
Copy Markdown
Owner

What

Adds documentation coverage ahead of the 1.0 release:

  • @doc on every public function in LiveAdmin.Resource (all/4, find/5, find!/5, list/5, change/4, create/5, update/5, delete/5, validate/4, fields/2, query/3, render/6, render/2), documenting them as stable 1.0 API and describing the config-override behavior (query_with/render_with/create_with/etc.) each honors.
  • @moduledoc on the LiveAdmin.Session.Store behaviour plus @doc on each callback, giving custom session-store authors a documented contract.
  • @moduledoc on LiveAdmin.Session.Agent describing it as the default in-memory store and its ephemeral semantics.

No behavior changes — documentation only.

Verification

  • mix compile --warnings-as-errors clean, mix format clean
  • mix test — 45 tests, 0 failures
  • mix docs produces no broken-reference warnings from these additions

🤖 Generated with Claude Code

Add @doc to every public function in LiveAdmin.Resource, treating
them as stable 1.0 API, and describe the config-override behavior
(query_with/render_with/create_with/etc.) each one honors.

Add a @moduledoc to the LiveAdmin.Session.Store behaviour and @doc
to its callbacks so custom session-store authors have a documented
contract, and document LiveAdmin.Session.Agent as the default
in-memory implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant