Skip to content

v0.39.0

Choose a tag to compare

@h3xxit h3xxit released this 16 Nov 12:35
· 50 commits to main since this release

Upgrading

  • No migration. No compose, image or environment change.
  • AdminMenuItem.page is new and optional. Rows without it behave as before.
  • isSettingsNavPath(pathname, paths?) takes an optional list of paths. With one argument it answers for the built-in settings pages, as before. useSettingsNavPaths() gives the full list, built-in pages and the app's.
  • The OIDC callback writes one new warning line when the sign-in provider refuses a sign-in: the standard error code, or non-standard. It carries no email, name or user id, and never the provider's own text.

What's new

An app can add settings pages of its own (#506)

A profile-menu row (AdminMenuItem) that declares a path and a page is mounted inside the settings layout beside the built-in pages. It is listed in the settings sidebar under its section, including a section the app defines itself (such as "Infrastructure only"). The row's isShown decides who sees it in the sidebar, as it does in the menu.

Rules for the row's path:

  • It is one absolute address, written as the browser and the router both read it. A row brings no page when its path is a route pattern (a parameter, a splat, an optional segment), has a query or a fragment, is relative, or is a spelling either of them would resolve to something else (/teams/../secrets, a doubled slash, a backslash, a percent-encoded letter).
  • The page is mounted only at an address nothing else answers. A row has its page neither mounted nor listed when its path is a built-in settings page (/secrets), a route the shell answers itself (/connect, /change-requests/<number> and the like), an app's path or anything under it, a top-level route of the registry, or a path an earlier row named.
  • Paths are matched as the router matches them, so /SECRETS, /secrets/ and /%73ecrets name the /secrets page.
  • A row that also opens a dialog or runs an action is not listed in the sidebar. It stays in the profile menu.

A sign-in the provider refuses says so (#505, carrying #493 by @natea; closes #492)

When the sign-in provider answers with access_denied, the login screen now says the provider did not let the person sign in. Before, it said "Sign-in could not be verified. Please try again." Any other error the provider sends back is shown as a failed sign-in. A forged or missing state is reported as before.

Review

  • Release PR #507: four rounds of architecture review and cubic. Final architecture review on 927570c: go-ahead, pass with risks (1). The risk is test-only: the shared settings test fixture sits beside an older copy in one settings suite, left for a follow-up.
  • Image: docker-publish.yml on tag v0.39.0 (b33911b).