Admins set local display names (#729) + license.go grace comment #830

Merged
Cordy merged 1 commit from fix-729 into main 2026-10-01 20:50:40 +00:00
Owner

Implements the three approved mockups. v0.6.314.

Server

  • POST /api/v1/admin/local-users accepts an optional displayName (trimmed, ≤64, same rule as self-service; shared validDisplayName).
  • New PUT /api/v1/admin/local-users/{name}/display-name (admin-only): set or clear; 404 for an unknown account; audited as the new registry verb user-display-name (Note = the new name).
  • The local-users list returns displayName.

Web (i18n ×4)

  • Create dialog: "Display name (optional)" + hint, under Username.
  • Local account rows: display name first, username small beside it; the filter matches either.
  • ⋮ menu: "Edit display name" first (local accounts only), dialog with "Account {u}", prefilled field, hint, Cancel/Save.

Also: internal/license/license.go comment said "7-day" grace; now 30-day (#799).

Docs: users-access (kebab table + paragraph), local-accounts (create fields, audited verbs), account.md (admins can also set it), CHANGELOG v0.6.314.

Verified on a local build: created clara.weber with "Clara Weber" through the dialog, the row reads "Clara Weber clara.weber", the menu order is Edit display name / Reset password / Make admin / Remove picture / Delete user, editing to "Clara M. Weber" saved and refreshed the row. Tests: API test (create with name, edit, list, clear, >64 → 422, unknown → 404, two audit events), web pin qa729; full Go + web suites green.

Implements the three approved mockups. v0.6.314. **Server** - `POST /api/v1/admin/local-users` accepts an optional `displayName` (trimmed, ≤64, same rule as self-service; shared `validDisplayName`). - New `PUT /api/v1/admin/local-users/{name}/display-name` (admin-only): set or clear; 404 for an unknown account; audited as the new registry verb `user-display-name` (Note = the new name). - The local-users list returns `displayName`. **Web** (i18n ×4) - Create dialog: "Display name (optional)" + hint, under Username. - Local account rows: display name first, username small beside it; the filter matches either. - ⋮ menu: "Edit display name" first (local accounts only), dialog with "Account {u}", prefilled field, hint, Cancel/Save. **Also:** `internal/license/license.go` comment said "7-day" grace; now 30-day (#799). **Docs:** users-access (kebab table + paragraph), local-accounts (create fields, audited verbs), account.md (admins can also set it), CHANGELOG v0.6.314. **Verified** on a local build: created `clara.weber` with "Clara Weber" through the dialog, the row reads "Clara Weber clara.weber", the menu order is Edit display name / Reset password / Make admin / Remove picture / Delete user, editing to "Clara M. Weber" saved and refreshed the row. Tests: API test (create with name, edit, list, clear, >64 → 422, unknown → 404, two audit events), web pin qa729; full Go + web suites green.
Admins set local display names on create and from the accounts menu (#729); license.go grace comment
All checks were successful
ci / test-and-build (pull_request) Successful in 1m21s
73efd0a60a
Cordy merged commit c46265b084 into main 2026-10-01 20:50:40 +00:00
Cordy deleted branch fix-729 2026-10-01 20:50:43 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#830
No description provided.