> ## Documentation Index
> Fetch the complete documentation index at: https://latchkey.getgalaxy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Latchkey admin UI

> The minimal admin UI planned for Latchkey V1, how Admins will sign in, and what each screen does.

> [!NOTE]
>
> The admin UI is planned for V1 and not built yet.

Latchkey will ship its own minimal admin UI. It is a thin client of the
management API, so all validation stays on the server, and nothing
Latchkey-specific is built into a product's own UI. Only Admins can open it.

The UI is a React app in `ui/`, scaffolded with
`pnpm create @galaxy-io/galaxy-app`. It uses Vite with the DLS Linaria
preset, TanStack Router file routes, ConnectRPC queries through
`@connectrpc/connect-query`, and Biome with the DLS rules. Components and
tokens come from `@galaxy-io/dls`. Built with `-tags embedui`, the server
embeds `ui/build` with `go:embed` and serves it at `/` beside the API, the
same arrangement as Alchemy, so `go build ./...` needs no Node.

`just dev` runs the server and the UI at `localhost:5175` together, and
`just build` builds the UI and then a server that embeds it. A server built
without the tag serves a placeholder page at `/`. The server tells the UI
where the other Galaxy products are served through the
[Galaxy product variables](https://latchkey.getgalaxy.io/pages/guides/deployment/configuration.md#galaxy-products).

## Signing in

The UI signs in through the same caller authenticator as the API. Standalone
that is an OIDC login using the authorization code flow with PKCE, with the
client in
[`LATCHKEY_UI_OIDC_CLIENT_ID`](https://latchkey.getgalaxy.io/pages/guides/deployment/configuration#admin-ui).
Without it the standalone UI says sign-in is not configured and loads nothing,
so it never guesses a tenant. The server writes the issuer and client into the page, and an expired token
starts a new sign-in. In Galaxy Cloud the UI is reached through the edge and
uses the caller assertion the edge signs. The UI has no account menu of its
own. Standalone, Sign out is in the command palette. In Galaxy Cloud the cloud
shell owns the account, sign-out and theme. See
[Security](https://latchkey.getgalaxy.io/pages/guides/concepts/security.md#admin-ui) for how the UI handles its
token.

Locally, `just infra` starts an issuer with a sign-in page and `just serve`
trusts it and makes `admin` the first Admin of the `acme` tenant. `just ui`
then runs the UI against that server. Sign in as `admin`.

## Screens

| Screen | In V1 | After V1 |
| - | - | - |
| Access | The page the UI opens to. A tree of who can do what that drills from each domain to its kinds, the roles that act on each kind and the members bound to them with where each binding applies. A second view starts from each member and drills to the domains, kinds and roles they hold. Beside it a Shape panel counts bindings by scope, by who holds them and by role, each section drawn as one bar split by share. Selecting one narrows the tree to those bindings. Below it the audit runs the full width of the page and loads more as you scroll, and selecting a change opens it. Selecting a binding opens it | None planned |
| Kinds | The kinds each domain registered, with their actions, how a binding can scope them and whether they are admin only or retired | None planned |
| Roles | Built-in roles and what each allows, plus creating and editing custom roles | Wildcard previews |
| Members | A card for every user and service account with its name, email and status. Add a subject by IdP id, see its effective access and check a decision, and deactivate a subject that was added by hand. | An org chart, bulk actions and filters beyond search |
| Groups | A wide card for every group with a stack of the people in it. Create and delete manual groups and edit their members. Directory groups are shown read only. | Nested groups |
| Bindings | Every binding in one table, filtered by member, role or resource. A Grant access form takes a member, a role and then either the whole tenant or a kind plus a pasted resource id. Selecting a binding opens what it grants on each kind, every scope where the member holds that role, the group's members and who granted it. From there you add the same role on another resource or remove the binding. Removing the Everyone → Viewer binding first lists who would lose read. | Resource search |
| Audit | Every change, newest first. Each row leads with its revision and time, then says what changed in one sentence, such as 1 member added to platform by Alice Park. Filter by actor, by type and by timeframe, which starts at the last 24 hours. Open an entry to see what changed as a diff. | A volume chart, which needs the server to count entries |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.