Sigra.Admin (Sigra v1.1.0)

Copy Markdown View Source

Shared admin utility helpers used across admin LiveView surfaces.

Summary

Functions

Returns the count of accounts that need admin review. Counts locked + deletion-scheduled accounts.

Loads the host Sigra runtime config for admin LiveViews.

Functions

needs_review(counts)

@spec needs_review(map()) :: non_neg_integer()

Returns the count of accounts that need admin review. Counts locked + deletion-scheduled accounts.

runtime_config!(label)

@spec runtime_config!(String.t()) :: Sigra.Config.t()

Loads the host Sigra runtime config for admin LiveViews.