Merge branch 'view-ui'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
abrown38andClaude Opus 5.5 committed 2026-10-09 15:17:49 +00:00
commit ca0f148b78
29 files changed
+623 -55

No files matched your search

+11 -1
View File
@@ -10,6 +10,7 @@ import (
"jarl/internal/model"
"jarl/internal/nscheck"
"jarl/internal/porkbun"
"jarl/internal/version"
)
// Version is the API path prefix.
@@ -46,7 +47,13 @@ type Record struct {
// View is a view with its zone count.
type View struct {
model.View
Zones int `json:"zone_count"`
Zones int `json:"zone_count"`
Color string `json:"color,omitempty"` // web UI colour, see model.ViewColors
}
// ViewColor sets the colour the web UI shows a view in.
type ViewColor struct {
Color string `json:"color"`
}
// ACL is an ACL with the objects that use it.
@@ -99,6 +106,8 @@ type Whoami struct {
// TOTPSetupRequired: the user must set up two-factor login before
// doing anything else (totp.require).
TOTPSetupRequired bool `json:"totp_setup_required,omitempty"`
// Build is what the server was built from (release or commit).
Build version.Build `json:"build"`
}
// LoginChallenge answers a correct password of a user with two-factor
@@ -219,6 +228,7 @@ type Changeset struct {
// StatusResponse is GET /status.
type StatusResponse struct {
Version string `json:"version"`
Build version.Build `json:"build"`
Engine json.RawMessage `json:"engine"`
Time time.Time `json:"time"`
// ExpiringTokens are tokens that expire within TokenExpiryWarning or