Skip to content

feat(console): show the members table as the Members tab beside Invitations - #3279

Closed
peintnermax wants to merge 13 commits into
feat/console-project-membersfrom
console-members-tabs
Closed

peintnermax wants to merge 13 commits into
feat/console-project-membersfrom
console-members-tabs

Conversation

@peintnermax

Copy link
Copy Markdown
Member

Context

Summary

  • Merges main into the branch and resolves the eleven conflicting files.
  • The members table is the Members tab. The route keeps main's tab layout (?tab=invitations, Invite member on the tabs' row) and renders ProjectMembers where the old admins table was. The loader reads readProjectMembers beside the invitations.
  • Add admin is gone, as on main: AddAdminButton, its dialog and their tests are removed from this branch too. The empty state now points at the Invitations tab.
  • Kept from this branch as written: members.ts and its spec, ProjectMembers, RemoveMemberDialog, the expired status, readProjectMembers, and the page spec's table tests.
  • Row menu pinned to the card's right edge (RESOURCE_STICKY_END), as on the Invitations table and the Users list, so it is reachable on a phone.
  • Tests
    • project-members.spec.tsx: the five Add admin tests and their helpers are removed; two expectations follow main's capitalised server messages.
    • project-invitations.spec.tsx: mocks the members read instead of the admins read.
    • e2e: main's flows (invite and accept in the journey, an API-seeded grant in the no-platform lane) with this branch's table assertions (Admin, Remove access).

Validation

  • turbo run typecheck test lint build --filter=@zitadel/console (1071 tests)
  • tsc --noEmit -p e2e/tsconfig.json, biome check e2e
  • REAL_CONSOLE_ORIGIN=http://localhost:5194 REAL_ZITADEL_PORT=8194 turbo run console-real --filter=@zitadel/e2e --env-mode=loose -- -g "colleague|team's grant|members" (2 passed)
  • turbo run journey:next --filter=@zitadel/e2e (29 passed, including invite → accept → the member's row → remove access)
  • By hand on dev:claim, at 1280px and 375px: the Members tab shows the owning team row and opens it; the Invitations tab is unchanged; nothing overflows the page.
  • Not run: the full console-real lane, console-smoke, and the other journey lanes.

Release notes / changeset

No new changeset: #3223's .changeset/console-project-members.md still describes what ships.

Notes

🤖 Generated with Claude Code

bastionstack and others added 13 commits November 22, 2026 15:27
…ist (#3224)

## Context

- Closes #2733

## Summary

- The User schemas list shows each schema's name as text, without the
schema icon beside it. Columns, the row link, row click and the row menu
are unchanged.
- D17 in the decisions log said the name column draws the resource icon,
so it carries an amendment for this ticket.
- Only the User schemas name column changes, as the ticket scopes it.
Login flows, Identity providers, Teams and Deployments keep their name
icons, and the schema glyph stays in the User schema column of the
Authentication tables.

## Validation

- `turbo run typecheck test lint --filter=@zitadel/console`
- `turbo run console-smoke --filter=@zitadel/e2e`
- `turbo run console-real --filter=@zitadel/e2e`

## Release notes / changeset

- Changeset: .changeset/console-schemas-name-text.md — the User schemas
list shows schema names without an icon (`@zitadel/server` patch)

## Before / after

| Before | After |
| --- | --- |
| ![Before,
desktop](https://github.com/user-attachments/assets/091f659b-f715-4fe1-961d-731982c70c65)
| ![After,
desktop](https://github.com/user-attachments/assets/5e19acf3-3ddf-4776-b7ae-c184d6b818ef)
|
| ![Before,
mobile](https://github.com/user-attachments/assets/6621baba-ce2c-4a43-b8e6-72ad8f1c7fdc)
| ![After,
mobile](https://github.com/user-attachments/assets/b0f8dc87-18ad-4f7c-97e0-96d0e609d6d0)
|

## Notes

- A name longer than its column is cut off without an ellipsis at phone
width, before and after this change; the shared row link has no width
limit, so Login flows and Teams do the same. Left for a shared fix.
## Context

- Closes #2792
- Part of #1425

## Summary

This adds a web application preset to `@zitadel/config`.

- New function `webApplication({ slug, name, redirectUris })`.
- New list `APPLICATION_PRESETS` (`["web"]`).
- Both are exported from the package root and from the new subpath
`@zitadel/config/application-presets`.
- The subpath exists because the package root imports `node:fs`. The
console needs the same presets in the browser.

The function returns an application document with one client:

- `slug: "web"`
- `type: "confidential"`
- `grant_types: ["authorization_code"]`
- a copy of the redirect URIs

A preset is a starting point. It is not stored.

Nothing calls it yet. The CLI command that will use it is #2655.

Left out on purpose:

- **The client secret.** The ticket asks for it as a project variable.
But `application-client.yaml` has no `secret` field and sets
`additionalProperties: false`, so the schema would refuse the document.
The field comes with #2790. I raised this with the ticket author here:
#2792 (comment).
There is no answer yet.
- **`refresh_token`.** `docs/design/api/identity-model.md` says refresh
tokens are opt-in. ADR 082 "Recommended sequence" step 2 ships the web
preset without them. The ADR 082 section 3 table still lists
"authorization code, refresh token" for Web. A separate docs PR will fix
that row.
- **`first_party`.** The server picks the default by how the application
is written.
- **`client_id`, `$schema` and input validation.** The writer (server or
CLI) and the schema handle them.

## Validation

Ran locally:

```
moon run config:build config:test config:typecheck config:lint
```

Result: 25 test files, 610 tests passed.

`packages/config/src/application-presets.test.ts` checks the output with
Ajv against `meta-schemas/application.json`. That file is a copy of the
schema file the server embeds. The test also checks that an unknown key
is refused, so a broken schema load cannot pass.

Not done: I did not load the subpath in a real browser. The built file
`dist/application-presets.mjs` has no imports.

Reviews done before opening: a lean-code review, an independent GLM
review and an adversarial review. Findings fixed:

- a wrong claim in the doc comment about who supplies the id and the
secret
- a shared redirect URI array
- a test that would have broken when #2790 lands

## Release notes / changeset

Changeset: `.changeset/config-web-application-preset.md`. It bumps
`@zitadel/config` (minor).

## Notes

- For reviewers: an application registered through `POST /applications`
is third-party by default. The server refuses sign-in from third-party
clients until consent ships. So a caller that registers this document
has to set `first_party` itself.
- No cryptographic decisions in this PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ry list and get, and --json answers from the built-ins (#3245)

## Context

- Closes #3225
- Closes #3226
- Closes #3227
- Closes #3228
- Closes #3229
- Closes #3230
- Closes #3231
- Closes #3232
- Closes #3233
- Closes #3234
- Closes #3235

## Summary

- This pull request introduces the changes that let an agent or a script
drive the CLI without scraping prose. `--input` (also `--flags-file` and
`--cli-input-json`) takes a whole invocation as one JSON document, which
is laid under the command line before oclif parses it, so every flag and
argument is still checked by its own declaration and a document can
never point a run at another server or project. `--fields` is now on
every list and every `get`, judged by the record's shape and cutting
both the table and `--json`. `version`, `commands`, `which`, `help` and
`autocomplete` answer in the usual envelope, a list reports `truncated`,
an update that sets a field to `null` asks first and refuses without
`--force` when nothing can ask, and ids and `api` path values refuse
empty, `.`, `..` and control characters. JSON is printed only with
`--json`; off a terminal a command prints its plain summary, as gh and
aws do.
- The output mode is decided once. `Output` (`lib/ui/output.ts`) holds
`--json`, colour and whether stdout is a terminal, the new `Presenter`
owns how a result reaches stdout, stderr and the envelope, and
`Promptable`, `Destructive` and the other mixins no longer depend on
each other, so a command composes what it needs. I kept this as one pull
request because the pieces lean on each other: the Presenter and
`Output` are what let `--input`, `--fields` and the built-ins share one
path, and splitting them would have meant landing a half-moved base
command.
- `api --input` is now `api --file`, because `--input` means the whole
invocation on every command. A few reads of `Output` are left on purpose
where the content itself depends on the mode (`api`, `server logs`,
`doctor`, `setup`).

## Validation

- `npx biome check .`, `npx tsc --noEmit -p apps/cli/tsconfig.json` and
the whole CLI suite (`npx vitest run` in `apps/cli`: 502 files, 11097
tests) pass on the pushed head, after `main` was merged in and the CLI
rebuilt with `npx tsdown`.

## Release notes / changeset

- Changesets: `.changeset/cli-input-json.md`,
`cli-fields-every-list.md`, `cli-builtins-answer-json.md`,
`cli-json-only-with-json.md`, `cli-errors-one-pattern.md`,
`cli-update-removal-gate-and-truncated.md`,
`cli-refuse-hostile-ids-and-paths.md`, `cli-api-file-flag.md` and
`cli-force-color-zero-is-off.md`, all for `@zitadel/cli`. Several are
marked breaking: `api --input` is `--file`, off-terminal output is plain
text rather than JSON, and a refused command line no longer carries
`details.original`.

## Notes

- None of the telemetry code is touched. Two commit messages on the
branch have body lines over 100 characters; the PR title is what CI
checks, so I left them for the squash.
## Context

- Refs #2851

## Summary

- `DELETE /invitations/{invitation_id}` removes any invitation that
wasn't accepted: pending, expired or rejected. Before, an expired one
answered `404` and kept its row and metadata until a cleanup job that
doesn't exist yet, so the only way to remove it was to replace it with a
new link.
- Cancel now uses `DeleteUnacceptedInvitation`, the statement replace
already uses, and `DeleteCancellableInvitation` is removed from all
three dialects. An accepted invitation still answers `404`.
- `zitadel invitation cancel` accepts expired invitations, offers them
in its picker, and sends no `invitation_cancelled` for one, as for a
declined invitation: an expired journey already counts as not accepted.
- The mock API follows the server, and ADR 086 gets an amendment.

## Notes

- The console's invitations list (#2978 / #3066) can show Cancel on
expired rows once this lands.
- I edited the two unreleased changesets (`invitations-list-filters`,
`cli-invitation-commands`) rather than adding new ones.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#3264)

## Context

- A Discord question: in a React SPA, is calling `/sessions/me` the only
way to check whether a user is signed in? Yes: `@zitadel/sdk-react`
shipped only the widgets, with no hook or context.

## Summary

- **`@zitadel/sdk-core/session`** (new entry): `getSession()`, the
browser read of `GET /sessions/me?project_id=…` that the
`ZitadelSession` card makes. It was moved unchanged from
`@zitadel/sdk-next/session`, so the SPA SDKs can share it. It falls back
to `configureZitadel()` for the project and proxy path.
- **`@zitadel/sdk-next/session`**: `getSession()` now wraps the core
read and only adds the Next.js defaults: the
`NEXT_PUBLIC_ZITADEL_PROJECT_ID` fallback and the server-side error that
points at `auth()`. Its behavior is unchanged.
- **`@zitadel/sdk-core/session`** also adds `sessionStore(options)`, the
shared read that the SPA SDKs bind to. It returns `{ getSnapshot,
getServerSnapshot, subscribe, refresh, settled }`, and this is the
contract the other SDKs will copy:
- **Keying:** the store is keyed on the resolved project and proxy path,
so `{}` and `{ projectId }` share one handle and one read when they
resolve to the same project.
- **Lifetime:** the first subscriber starts the read. When the last one
leaves, the read is dropped after a microtask, so a later mount reads
again while StrictMode still reads once.
- **Snapshot:** flat plain data, `{ status, session, error, isRefreshing
}`.
- **`refresh()`** resolves with the newest read's snapshot and never
rejects. **`settled()`** resolves with the first answer, for route
guards and loaders.
- **Failures:** a failed refresh keeps the last answer and reports
`error` beside it. `status: "error"` only means there is no answer yet,
with code `session.no_project` or `session.read_failed`.
  - **Server:** the store stays `loading` and keeps no state.
- **`@zitadel/sdk-react`**: re-exports `getSession()` and
`sessionStore()`, and adds `useSession(options)`, which only binds the
store with `useSyncExternalStore` and returns the snapshot plus
`refresh`.
- **`@zitadel/sdk-tanstack-start/react`**: its list of re-exported
sdk-react types now includes the new session types.
- **CLI**: the agent guidance that `zitadel setup` writes for React apps
now names `useSession()`. Other SPA frameworks keep the raw `fetch`
instructions.
- Updated the sdk-react README and skill, and the sdk-core entry table.

## Validation

- `turbo run lint typecheck build test --filter=@zitadel/sdk-core
--filter=@zitadel/sdk-react --filter=@zitadel/sdk-next
--filter=@zitadel/sdk-tanstack-start`: all 25 tasks pass, including the
edge projects and sdk-core's contract spec.
- `turbo run lint typecheck --filter=@zitadel/cli`: passes.
- `vitest run tests/unit/lib/orca/patchers/rule/guidance.test.ts` in
`apps/cli`: 22 passed.
- `node scripts/check-changesets-status.mjs`: ok.
- `node scripts/check-pr-title.mjs`: ok.
- Not run: the full CLI suite, and a manual check in a real React app.

## Release notes / changeset

- Changeset: `.changeset/sdk-react-use-session.md` —
`@zitadel/sdk-react`, `@zitadel/sdk-core` and `@zitadel/cli`, all minor.
`useSession()` and `getSession()` in sdk-react, the new sdk-core entry,
and the CLI guidance pointing React apps at the hook.

## Notes

- Tests sit at the lowest layer that covers each behavior: the response
mapping in `packages/sdk-core/src/session.spec.ts`, the store in
`packages/sdk-core/src/session-store.spec.ts`, and only the React
binding in sdk-react. sdk-next keeps 5 tests for its own defaults.
- For in-place updates after sign-in or sign-out, the docs say to call
`refresh()` from `onFlowComplete` or `onSignout`. Updating automatically
on widget events is left out.
- Follow-up: the other SPA SDKs (Vue, Svelte, Solid, Angular, Qwik) can
bind `sessionStore()` the same way.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merging this pull request releases `v0.8.0`: `release-publish` publishes
the npm packages and the server container image, and drafts the GitHub
Release. Until then, each changeset merged to `main` updates it.

Each change is listed once, with the packages it ships in, as the GitHub
Release will list it. Every package's `CHANGELOG.md` is in the diff.

#### Minor Changes

- `@zitadel/cli`, `@zitadel/config`:
[#3245](#3245)
[`f3c80dc`](f3c80dc)
- `zitadel api` reads its JSON body from `--file <path>` (or `--file -`
for stdin), matching the body flag on the create and update commands and
freeing `--input` for a whole invocation as JSON. The flows README that
ships into customer projects names the new flag.

  **Breaking:** `api --input <path>` is now `api --file <path>`.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- `version`, `commands`, `which`, `help` and `autocomplete` answer
`--json` with the same envelope as every other command, and a flag they
refuse is the failure envelope with its exit code instead of oclif's
whole error object. They still take their own flags (`commands
--hidden`, `--tree`, `--columns`, `help --nested-commands`,
`autocomplete --refresh-cache`).

**Breaking:** `version --json` and `commands --json` print their result
as the envelope's `data`, and `commands --json` holds its list under
`data.result`.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- A command line the CLI refuses, including a flag typed twice, is one
coded failure with the command's help as its next step, like every other
failure, and no longer repeats the framework's own error text in the
`--json` envelope.

**Breaking:** a script that read `details.original` from such a failure
no longer finds it.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- Every command that prints a list or a record takes `--fields`, and it
cuts the records under `--json` as well as the table: `user list
--fields id,email --json` and `variable get NAME --fields value --json`
return only those paths, and a field the command does not carry is
refused with the ones it does.

**Breaking:** `--json` ignored `--fields` before, so a script that
passed it and read the whole record must stop passing it.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- Every command now takes its whole invocation as one JSON document with
`--input` (inline JSON, `@file.json` or `-` for stdin), also spelled
`--flags-file` and `--cli-input-json`: the keys are the command's flag
names, `args` holds the positionals, and only the global flags may stand
beside it. A document cannot set `server`, `env`, `env-file`, `project`
or `cwd`, so one read from elsewhere cannot point the run's credentials
at another server or project; a document that is not JSON is refused
without quoting its text, and a file that is not a regular file of at
most 8 MB is refused.

- `@zitadel/cli`: [#2929](#2929)
[`7f682da`](7f682da)
- `zitadel invitation create`, `list`, `get` and `cancel` invite people
into a project with a shareable link, under "Users and access" in
`zitadel --help`. `create` asks who the invitation is for and which role
it grants, then prints the link, which expires in 72 hours; `--replaces`
makes a new link for an earlier invitation. `list` leaves accepted
invitations out unless `--status` asks for them, and `--status` can be
repeated. `cancel` names who the invitation is for and its role before
it asks, removes an expired or declined invitation as well as a pending
one, refuses an accepted one with `E_VALIDATION`, and without an id
offers the pending, expired and declined invitations to pick from.
`create` and `cancel` report an anonymous `invitation_created` or
`invitation_cancelled` event once the server confirms, carrying the role
and a random journey ID, never a name, an invitation ID or the link;
cancelling an expired or declined invitation reports none.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- `variable get`, `invitation get`, a resource's `get`, and a created or
updated resource print the same plain text off a terminal as on one, and
`--json` is the one way to get JSON.

**Breaking:** these commands printed JSON when stdout was not a
terminal, so a script that parsed it without `--json` must now pass
`--json`.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- An update that sets a field to `null` removes it, so it now asks first
on a terminal and needs `--force` when nothing can be asked, as a
deletion does, and a refused one sends nothing. Every list also reports
`truncated` beside `next_page_token`, `true` exactly when more remain.

**Breaking:** a script that updated with `:=null` must now pass
`--force`.

- `@zitadel/cli`, `@zitadel/sdk-core`, `@zitadel/sdk-react`:
[#3264](#3264)
[`caf1506`](caf1506)
- `@zitadel/sdk-react` now tells your own components who is signed in:
the `useSession()` hook returns the session's status and the user's
identity, shares one server read across the page and offers `refresh()`.
Outside components, `sessionStore()` gives route guards and loaders the
same read, and `getSession()` makes a single one. `zitadel setup` points
React apps' agents at the hook.

- `@zitadel/server`:
[#3214](#3214)
[`7642a50`](7642a50)
- The console shows an application at `/applications/{application_id}`:
each OAuth client with its client ID, type, grant types, redirect URIs
and document as JSON or YAML. The page is read-only and opened by its
URL; the console does not list applications yet. `GET
/applications/{application_id}` now also accepts a console session with
access to the project.

- `@zitadel/server`:
[#3073](#3073)
[`f764fd6`](f764fd6)
- Invitations record who accepted or declined them and when as
`responded_by` and `responded_at`, replacing `accepted_by` and
`accepted_at`; `status` says which. Declining keeps the invitation's
`metadata`, so administrators still see who a declined link was for, and
`DELETE /projects/{project_id}/invitations/{id}` now also removes a
declined or expired invitation. `GET /projects/{project_id}/invitations`
takes `status` more than once to match any of several statuses (for
example `status=pending&status=expired&status=rejected`), and
`expand=inviter` adds the creator to each invitation as `inviter`.

- `@zitadel/server`:
[#3073](#3073)
[`f764fd6`](f764fd6)
- A signed-in platform user redeems an invitation link: `POST
/invitations/lookup` shows the project, role and expiry, and names the
inviter in `inviter` so the invited user can see who invited them
without access to the inviter's account. `POST /invitations/accept`
grants the invitation's role and `POST /invitations/reject` declines it.
The inviter can neither accept (`inv.self_accept`) nor decline
(`inv.self_reject`) their own invitation, and accepting is refused with
`inv.inviter_not_admin` when the user who created the invitation no
longer administers the project. Every unknown or finished token answers
the same `404`. Accepting sends `invitation.accepted`, with
`authz.granted` when the role is new, and declining sends
`invitation.rejected`.

- `@zitadel/server`:
[#3075](#3075)
[`a72fa58`](a72fa58)
- Every issuer still answers 404 until a project can turn OAuth on. Once
one can, the authorization endpoint `/oauth/<project_id>/authorize`
accepts authorization code requests from registered applications and
sends the browser to the login page. A request must send `state`, a code
challenge must use `S256`, and OpenID Connect scopes are ignored for
now. Each request records an `auth.request.created` event.

- `@zitadel/server`, `@zitadel/api`:
[#2885](#2885)
[`727e952`](727e952)
- A release bundle's `oauth: { "enabled": true }` now takes effect: the
server stores it as an OAuth settings revision, `GET
/oauth_settings/{oauth_settings_id}` reads that revision back instead of
answering 501, and every new revision is recorded as an
`oauth_settings.created` event. On a server started with
`oauth.enabled`, each primary origin the release is deployed to serves
the project's RFC 8414 metadata at
`/.well-known/oauth-authorization-server/oauth/<project_id>`. The
console's release detail lists the pinned OAuth settings. The platform
project's issuer follows `oauth.enabled` itself: the server's own
platform release carries the OAuth settings, so a restart keeps them.

OAuth stays on only while the deployed release carries `oauth`. `zitadel
deploy` cannot send it yet and a new release does not copy it from the
previous one, so deploying with the CLI turns a project's OAuth off,
with no warning.

- `@zitadel/server`, `@zitadel/api`:
[#2897](#2897)
[`51050fc`](51050fc)
- The API reference now describes `GET /projects/{project_id}/members`,
which lists everyone with a role on a project, with each person's
strongest role and how they hold it, and an optional `relation` filter.
It answers `501` until the list itself ships.

- `@zitadel/server`, `@zitadel/api`:
[#2898](#2898)
[`44bd34c`](44bd34c)
- The API now lists everyone with a role on a project. `GET
/projects/{project_id}/members` lists each person once, with their
strongest role (`viewer`, `editor` or `admin`) and every way they hold
it: as an active member of the team that owns the project, which gives
`admin`, through a grant to them, or through a grant to a team they
belong to. Pass `relation` to list only people with at least that role;
`relation=admin` gives the same people as `GET
/projects/{project_id}/admins`. Expired grants and people who left a
team are left out, and the list is ordered by user id and paginated with
`page_token`.

Both lists now show every member to every caller who may read them, with
each team named. Before, a person whose access came only through a team
the caller was not in was left out, so an admin added by a direct grant
did not see the project's owners, and a project secret saw only people
with a grant of their own. Like the authorization check, a direct user
grant is listed only while that user is active.

- `@zitadel/config`:
[#3076](#3076)
[`a242dac`](a242dac)
- `@zitadel/config` exports `webApplication()`, which builds an
application document for a web app: one confidential OAuth client that
signs users in with the authorization code grant and returns them to the
redirect URIs you pass. `APPLICATION_PRESETS` lists the preset names.
Both are also exported from `@zitadel/config/application-presets`, which
runs in the browser.

#### Patch Changes

- `@zitadel/cli`: [#3206](#3206)
[`8adf043`](8adf043)
- `zitadel api` says which server it called and which secret it sent
when the server answers `401`, and its help shows how to update a user
(`zitadel api updateUser <user_id> -F attributes.age=1`). A secret
belongs to the project on one server, so the hint points at
`ZITADEL_URL`, `ZITADEL_PROJECT_SECRET`, `--env` and `--env-file`.

- `@zitadel/cli`: [#3203](#3203)
[`0d82cf5`](0d82cf5)
- `deploy` and `deploy --dry-run` now warn when `theme.light.logo_url`
or `theme.dark.logo_url` is a public `https` URL that does not serve an
image, and name the field. Before, only the top-level `logo_url` and
`hero_url` were checked.

- `@zitadel/cli`: [#3210](#3210)
[`8884826`](8884826)
- `zitadel doctor --fix` restores a missing `.zitadel/secret` from the
project's credentials in `.env.development.local` and the origins the
server reports, so a deleted secret no longer loops between `doctor
--fix` and `setup`, which skips an app that is already set up. When
`.env.development.local` does not hold the credentials, the repair says
what is missing.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- `FORCE_COLOR=0` and `FORCE_COLOR=false` now turn colour off, as the
variable's convention says, instead of forcing it on.

- `@zitadel/cli`: [#3183](#3183)
[`ac397d4`](ac397d4)
- The CLI names its hosted server once, `preview.zitadel.com`, and reads
it everywhere: the default server, the examples and hints, and the check
for the hosted cloud. A host under `zitadel.cloud` is no longer taken
for the hosted cloud.

- `@zitadel/cli`: [#3245](#3245)
[`f3c80dc`](f3c80dc)
- An id of `.` or `..`, and a control character in an id or in an `api`
path value, is refused as a validation failure before a request is made,
and `api` sends a path id without surrounding whitespace.

- `@zitadel/cli`: [#3033](#3033)
[`5901843`](5901843)
- `zitadel setup` now creates Next.js apps on Next.js 16.4.6 instead of
16.4.2, which lacked the security fixes in 16.4.5, React, Vue, Solid,
Svelte and Qwik apps with create-vite 9.3.4, and Qwik Router apps with
create-qwik 2.0.0-rc.5.

- `@zitadel/cli`: [#3205](#3205)
[`2cd806d`](2cd806d)
- `deploy` no longer records a release as built from an uncommitted tree
because of a file outside `.zitadel/`. A modified `package.json` or app
file leaves the release clean, so the next `deploy --dry-run` still
shows a diff.

- `@zitadel/cli`: [#3181](#3181)
[`179776f`](179776f)
- A failure of the local server now carries the same hint and next
commands from every command, not only the server commands. A malformed
runtime record or admin file found in a parent folder points its
recovery commands at that folder, a server that no longer answers points
`zitadel start` at the folder that recorded it, and the recovery for a
malformed admin file removes the file before it resets.

- `@zitadel/cli`: [#3164](#3164)
[`055c0d5`](055c0d5)
- A refusal that named a command in its hint, such as a login flow still
using a method, the last way to sign in, or `--input -` or `--file -`
with nothing piped in, now lists it under `next_commands` too, so it
carries the `--cwd`, `--env`, `--env-file` and `--server` the run was
given.

- `@zitadel/cli`: [#3183](#3183)
[`ac397d4`](ac397d4)
- `--server` is now declared by the commands that take a server, through
one shared definition, rather than by every command. Every command that
accepted it still does, with the same help text and the same server
resolution, and a failure that comes before the flags are parsed still
names the server it was given.

- `@zitadel/cli`, `@zitadel/server`:
[#3188](#3188)
[`1ed5058`](1ed5058)
- The local server now starts on Windows, which it did not before
because its SQLite location was not a valid URI for a drive path.
`zitadel setup` scaffolds beside a running local server instead of
renaming its `.zitadel` folder, which Windows refuses while the server
holds files open, and `zitadel doctor` no longer reports a file mode
Windows cannot hold.

- `@zitadel/server`:
[#3224](#3224)
[`106a76d`](106a76d)
- The console's User schemas list shows each schema's name as text,
without the schema icon beside it.

- `@zitadel/server`:
[#3215](#3215)
[`891ab88`](891ab88)
- The console calls a deactivated team inactive, in the Teams tabs, list
and team detail, and titles the team's details card "Team details".

- `@zitadel/server`:
[#3213](#3213)
[`8c8514f`](8c8514f)
- Timestamps the API returns are now always UTC. pgx scanned Postgres
`timestamptz` into the process's local time zone, and a read path that
did not convert the value itself passed that zone on: running with
`TZ=Europe/Berlin`, `getProjectClaimStatus` returned `claimed_at` and
the claim window's `expires_at` with a `+01:00` offset instead of `Z`.
The pool now scans `timestamptz` in UTC, so every read returns UTC
whatever zone the server runs in. `initProjectClaim` built its
`expires_at` from the clock rather than a read, and now stamps it in UTC
too.

- `@zitadel/config`:
[#3179](#3179)
[`224b845`](224b845)
- A branding `typography.font_url` without a `typography.font_family` is
now refused with the spec's own wording, "font_family is required when
font_url is present", reported at `typography.font_family`. The rule is
generated from the spec's `dependentRequired` instead of repeated by
hand.

- `@zitadel/testing`:
[#3211](#3211)
[`627149b`](627149b)
- `bootLocalServer` retries on a fresh port, up to five times, when
another process takes the port it picked before the server binds it, so
booting many servers at once no longer fails with `E_PORT_IN_USE`. A
port passed explicitly is still taken as asked or refused.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Context

- Closes #3251

## Summary

- This pull request makes every `log` line a thing for a person at a
terminal: a terminal draws it, and `--json` and a pipe drop it (`warn`
and `fail` stay). A script reading stdout is given the command's result
and nothing a command merely said, in a wizard's chain as well as in a
plain command.
- The commands that used to answer through `log` now carry those facts
inline in their own `summary`, as every other command does, with no
check of the output mode: `sso enable` and `sso disable`, the password
and passkey toggles (files written and notices, through one `said`
method on `AuthMethodCommand`), `deploy` and `release create` (the
diff), `env add` (the project created, the file written, the deploy) and
`server console` (the links).
- `claim` writes its link through the new `announce`, which reaches a
pipe too, because a script has to open the link while the command waits
for the browser step.

## Validation

- `npx biome check .`, `npx tsc --noEmit -p apps/cli/tsconfig.json` and
the CLI suite (`npx vitest run` in `apps/cli`, after `npx tsdown`) pass
except `doctor.spec.ts > warns and suggests upgrading when a newer CLI
exists`, which also fails on a clean `main`.

## Release notes / changeset

- Changeset: `.changeset/cli-log-lines-stay-off-pipes.md`
(`@zitadel/cli`, patch).

## Notes

- A terminal reads a callback URI twice in `sso enable`: once as the
wizard asks for the credentials and once in the result.
## Context

- Refs the [v0.8.0
release](https://github.com/zitadel/nextgen/releases/tag/v0.8.0). It is
live on preview.zitadel.com, where production runs `e15e31cb1`, but the
changelog stopped at 0.7.0.

## Summary

- Add `zitadel-nextgen-0-8-0.md`: what's new, a list of fixes, a short
"On the way: OAuth" section, and the upgrade notes from 0.7.0.
- Add five entries for the changes a user notices or must act on:
- `invite-people-with-a-link` (#3073, #2929), breaking: invitations
report `responded_by` and `responded_at` in place of `accepted_by` and
`accepted_at`.
- `cli-scriptable-json-input-and-fields` (#3245), breaking: JSON only
with `--json`, `api --input` is now `api --file`, `--fields` cuts
`--json`, and an update with `:=null` needs `--force` when nothing can
ask.
  - `react-use-session` (#3264)
  - `list-project-members` (#2897, #2898), `cloud: true`
  - `cli-and-local-server-on-windows` (#3188)
- Dates are the 0.8.0 npm publish (2026-11-24T02:09Z) for entries that
need a release, and the last PR's merge for the server-only members
list.

## Validation

- `turbo run lint test build --filter=@zitadel/website`: passes.
- In the built pages, each new entry shows release v0.8.0.

## Release notes / changeset

- No changeset required: no shipped behavior changed.

## Notes

- The invitations entry lists only #3073 and #2929 in `pulls`. #3072,
#3176, #3177 and #3246 edited other PRs' changesets, so they appear in
no package `CHANGELOG.md`, and listing them made the site show "Not
released yet". The entry still describes their behavior.
- OAuth (#2885, #3075, #3214, #3076) gets a short section in the release
entry rather than its own entry: `zitadel deploy` cannot turn it on for
a project yet.
- #3252 is deployed but not yet released, so it is left out.
…'s policy and license links to the cloud's front page (#3273)

## Context

- No linked issue; from a review of preview.zitadel.com against what an
auth vendor's front page is expected to have.

## Summary

- **`/robots.txt` and `/sitemap.xml`** (`apps/website/app/crawlers.ts`):
production's build lets crawlers in, keeps them off `/api/`, `/console/`
and `/cloud/`, and names the sitemap; every other deployment answers
`Disallow: /`. The sitemap lists `/`, `/changelog`, `/choose-version`
and every changelog entry, each with its date. Both were 404 before.
- **`/.well-known/security.txt`** redirects (307) to zitadel.com's file,
which `SECURITY.md` names the definitive source, so this host keeps no
copy whose `Expires` could lapse. It was 404 before; zitadel.com's is
200.
- **Footer**: Discord joins the Project column; a third column, Legal,
links Privacy and Terms (zitadel.com's policies), Security
(`SECURITY.md`) and Licensing (`LICENSING.md`). The line "A preview of
the next Zitadel: APIs, CLI flags and packages still change." goes; the
header's Preview badge stays.
- The production host moves into `links.ts` as `origin`, shared by the
changelog feed and the sitemap.
- `VERCEL_ENV` joins the website build's `env` in
`apps/website/turbo.json`: strict env mode would hide it, and production
would then block crawlers too.
- `apps/website/AGENTS.md` notes the new routes.

## Validation

- `turbo run typecheck lint test build --filter=@zitadel/website` (new
`crawlers.spec.ts` covers both robots variants and the sitemap's URLs
and dates).
- `next start` on the build: `/robots.txt` answers `Disallow: /`,
`/sitemap.xml` lists 97 URLs (3 pages + 94 entries),
`/.well-known/security.txt` answers 307 to zitadel.com.
- `VERCEL_ENV=production next build` + `next start`: `/robots.txt` lists
the three disallowed prefixes and the sitemap.
- Footer checked in the browser pane at desktop and 375 px width.

## Release notes / changeset

- No changeset required — no shipped behavior changed.

## Notes

- Privacy and Terms link zitadel.com's policies; whether those cover the
preview cloud is a legal call to confirm.
- Not in this PR: a sign-in link and a cloud command path on the front
page, and anything aimed at companies; both touch the front page's rule
in `apps/website/AGENTS.md`.
… it serves robots.txt (#3274)

## Context

- Refs #3273

## Summary

- #3273 made the website serve `/robots.txt`, but the console deployment
check (`e2e/console/src-deployment/routes.spec.ts`, "the server gets its
own root paths, the website every other") still listed `/robots.txt`
among the paths that must get the website's 404. It now fails with
`/robots.txt: 200, want the website's 404` on every preview.
- Probe `/xmlrpc.php` instead: a scanner's path nothing serves, so the
test still proves an unclaimed path reaches the website's 404 and never
wakes the server.

## Validation

- `biome check e2e/console/src-deployment/routes.spec.ts`
- On #3273's preview (`vercel curl`): `/xmlrpc.php` answers the
website's 404; `/robots.txt` 200, `/sitemap.xml` 200,
`/.well-known/security.txt` 307 to zitadel.com.
- The `console / console (Preview)` check on this PR runs the spec
against its own preview.

## Release notes / changeset

- No changeset required — no shipped behavior changed.

## Notes

- #3273 merged from the queue before this fix could be pushed to it;
until this merges, `console / console (Preview)` fails on PRs branched
from main.
…ecline an invitation (#2978)

## Context

- Refs #2855
- Refs #2856
- Refs #2859
- Refs #2458
- Follows ADR 086 with its amendments, the contract from #2918 and
#3072, and the handlers from #2983 and #3073

## Summary

- **Project Settings → Members** (`/project/members`, beside General):
the former Admins page with two tabs, Members and Invitations
(`?tab=invitations`), and Invite member on the tabs' row. Invitations is
a table of the project's pending, expired and declined invitations
(name, role, inviter, status), newest first with Load more, and an empty
state. Accepted ones are left out, as ADR 086 has it: the person is a
row of the Members tab.
- **Invite member dialog**: optional name and a role (admin, editor,
viewer); the link is shown once, inside a message to copy.
- **Row actions** by status: a pending row offers Regenerate link (a
create with `replaces_invitation_id`, then the new link) and Cancel
invitation; an expired row Regenerate link and Remove invitation; a
declined row Remove invitation only. Each sits behind a confirmation in
its own words. A declined row keeps its name and shows the day it was
declined (`responded_at`).
- **Invitation page** at `/invitations/accept`, outside the `_authed`
guard: who invited you, the role and the expiry, with Join project and
Decline invitation, plus the declined and unavailable states. A
signed-out visitor goes to `/login?next=/invitations/accept`.
`inv.not_found` and `inv.inviter_not_admin` both end in Invitation
unavailable and clear the token; other refusals (`inv.self_accept`,
`inv.self_reject`) show the API's message and keep it.
- **Inviter**: the invitation page and the list (`expand=inviter`) show
the `inviter` user-ref the server resolves (`display`, then
`identifier`, then `user_id`) and never read a user by id; a link a
project secret made shows none.
- **Token handling**: the token moves from the link's fragment into
`sessionStorage` before the app boots (the entry's first import), also
when the link is reopened in a tab already on the page. It is cleared on
accept, decline, an unknown token and sign-out, and never reaches a
query string.
- **Analytics**: `invitation_created`, `invitation_accepted`,
`invitation_rejected` and, for a pending link that is cancelled,
`invitation_cancelled`, each with `role` and `invitation_journey_id`,
listed in `product-analytics-events.yaml`. The cloud add-on leaves the
invitation page out of its page views and Speed Insights.
- Shared pieces: `InputGroup` from the shadcn registry (new-york track),
and `cancel` / `variant` props on `ConfirmDialog`.

## Validation

- `turbo run typecheck test lint build --filter=@zitadel/console` (1062
tests), after merging `main`
- `node scripts/check-pr-title.mjs --title "…"`
- **Against a real server built from this branch** (`turbo run dev:claim
--filter=@zitadel/console`, a registered user, the seeded project
claimed): two named links created; the list request carries
`status=pending&status=expired&status=rejected&expand=inviter` and each
row names the inviter; a second user signs up through a link (sent to
`/login?next=/invitations/accept` with no token in the address),
declines one and accepts the other; the list then shows the declined row
with its name and date and no accepted row; Remove invitation answers
204 and the table is empty.
- Earlier on this branch, before the API merge: Regenerate link, Cancel
invitation, the inviter refused accepting and declining their own link,
and the spent-link state.
- Not rerun after the last merge of `main`: the real-server pass (the
row-menu change is covered by the spec) and the cloud-console tests
(unchanged files).

## Release notes / changeset

- Changeset: `.changeset/console-invitations.md` — `@zitadel/server`
minor — project invitations in the console

## Notes

- **Ready once reviewed.** The whole API is on `main` (#3073), so the
invitation page works without a stacked backend branch. #3066 is stacked
on this and removes Add admin.
- **Invitations need a claimed project on a server with a platform
project.** `console:dev-real` has neither, so create is refused there;
use `console:dev-claim` to try it locally.
- **Add admin stays here** and goes in #3066. The Members table keeps
its Name / Access columns until the members list (#2857) lands.
- **Differences from the design or the tickets that the API decides:**
- the inviter is a column of the table, which the design does not draw
(#2855 asks for it);
- `Invitation already accepted` is not built: every finished token gets
the same opaque `404`.
- **Analytics destination.** The events go through the existing add-on,
so only the cloud build sends them, to Vercel. The catalog lists them as
`emitted` to `[vercel, mixpanel]` rather than `planned`; say if they
should stay unsent until the console has a Mixpanel sink. The CLI's half
of #2859 is #2932, which also edits the catalog.
- The table uses the console's shared list geometry (56px rows), as the
Admins table, rather than the frame's 44/52px.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…admin (#3066)

## Context

- Follows #2978, which is merged; this now targets `main`.
- Refs #2855, #2856. Follows ADR 086.

## Summary

- **Remove Add admin** from Project Settings → Members: the button, its
dialog and their unit tests. Access is given with an invitation link;
the Members tab lists and revokes. The row's Remove grant stays.
- **E2E**
- `journey/src/claim.spec.ts`: the admin creates a link on the
Invitations tab, the colleague opens it and joins, the admin sees their
row and removes the grant, the colleague loses the project.
- `console/src-real`: this lane has no platform project, where
invitations are refused by design, so the colleague's grant is written
through the API; the test still proves the list row, the colleague's
access and the revoke.
- Deleted "answers the same way for an address that belongs to nobody":
it tested the Add admin dialog's neutral message, which no longer
exists.
- **`console/playwright.real.config.mts`**: the console dev server now
follows `REAL_CONSOLE_ORIGIN`'s port, so the lane can run beside a dev
server on 5174.

## Validation

- `turbo run typecheck test lint build --filter=@zitadel/console` (1057
tests, after merging `main` with #2978 in it)
- `tsc --noEmit -p e2e/tsconfig.json`
- `REAL_CONSOLE_ORIGIN=http://localhost:5194 REAL_ZITADEL_PORT=8194
turbo run console-real --filter=@zitadel/e2e --env-mode=loose -- -g
"lists a colleague|lists a team's grant"` (2 passed)
- `turbo run journey:next --filter=@zitadel/e2e` passed (29 tests,
including the rewritten claim test) on the previous version of this
branch, which carried the backend from the now-closed #3025. Not rerun
since the branch was rebuilt on `main`'s backend.
- Not run: the other journey lanes and the full `console-real` lane.

## Release notes / changeset

`.changeset/console-remove-add-admin.md` (`@zitadel/server`, minor).

## Notes

- On an instance without a platform project the console now has no way
to give access; that is the CLI's and the API's (`POST /grants`).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Put the members table in the Members tab beside Invitations, and drop Add
admin, which main removed in favour of invitation links.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cloud Ignored Ignored Nov 24, 2026 8:43am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 59b124e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@zitadel/cli Minor
@zitadel/server Minor
@zitadel/testing Minor
@zitadel/server-darwin-arm64 Minor
@zitadel/server-darwin-x64 Minor
@zitadel/server-linux-arm64 Minor
@zitadel/server-linux-x64 Minor
@zitadel/server-win32-x64 Minor
@zitadel/api Minor
@zitadel/components Minor
@zitadel/config Minor
@zitadel/sdk-angular Minor
@zitadel/sdk-core Minor
@zitadel/sdk-next Minor
@zitadel/sdk-nuxt Minor
@zitadel/sdk-qwik Minor
@zitadel/sdk-qwik-router Minor
@zitadel/sdk-react Minor
@zitadel/sdk-solid Minor
@zitadel/sdk-solid-start Minor
@zitadel/sdk-svelte Minor
@zitadel/sdk-sveltekit Minor
@zitadel/sdk-tanstack-start Minor
@zitadel/sdk-vue Minor
@zitadel/cloud Patch
@zitadel/client-sdk-contract Patch
@zitadel/server-sdk-contract Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@peintnermax

Copy link
Copy Markdown
Member Author

Superseded: #3223 now has main merged in by its author, with the same result (the members table as the Members tab beside Invitations, no Add admin, the row menu pinned). Merging this would only undo the refinements made there since.

@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants