The ledger
Every annotated feature, searchable. Each row points to the exact source line where the annotation lives.
Spectrum · top 12 categories
tap to filter- ui.api-hooks.errorsopenalice-ui · ui/api-hooksShared error message helpers for API hooks — extracts user-facing message from ApiRequestError, generic Error, or unknown, and strips bearer tokens / auth credentials before display.0.5.0
- ui.api-hooks.useAsyncStateopenalice-ui · ui/api-hooksTiny generic helper that owns {data, loading, error} for an async fetch — collapses three useStates into one.0.5.0
- ui.api-hooks.useAuthGuardopenalice-ui · ui/api-hooksVerify the current session against /auth/me on mount. On 401 or missing token, clear auth + redirect to /login. Returns the authenticated user once verified.0.5.0
- ui.api-hooks.useBillingopenalice-ui · ui/api-hooksFetch billing status + plans, expose changePlan against the active OpenAliceClient.0.5.0
- ui.api-hooks.useKeysopenalice-ui · ui/api-hooksList/create/delete API keys against the active OpenAliceClient. Exposes newKey + clearNewKey for one-shot reveal.0.5.0
- ui.api-hooks.useLoginActionopenalice-ui · ui/api-hooksReturns an async (email, password) → AuthActionResult that drives AuthProvider.login + sets the SSO sessionStorage flag. Translates RateLimitError into a UI-friendly message with retryAfter seconds.0.5.0
- ui.api-hooks.useLogoutActionopenalice-ui · ui/api-hooksReturns an async () → void that drives AuthProvider.logout, then clears the SSO sessionStorage flag. Errors during logout are swallowed — local state is cleared regardless.0.5.0
- ui.api-hooks.useMeopenalice-ui · ui/api-hooksFetch the currently authenticated PublicUser from the active OpenAliceClient and expose loading/error/refetch.0.5.0
- ui.api-hooks.useRegisterActionopenalice-ui · ui/api-hooksReturns an async (name, email, password, _confirm?) → AuthActionResult that drives AuthProvider.register + sets the SSO sessionStorage flag. Translates RateLimitError into a UI-friendly message.0.5.0
- ui.api-hooks.useUsageopenalice-ui · ui/api-hooksFetch usage rollup for the last N days from the active OpenAliceClient.0.5.0
- ui.api-hooks.useUseropenalice-ui · ui/api-hooksLegacy adapter — fetch the current User (legacy shape) from the active OpenAliceClient. Prefer useMe() for new code.0.5.0