Use one name for each thing the UI shows (closes #399)
check / check (push) Successful in 3m15s

The database target type is called an archive on its badge, in the add target form's type list and on its edit page, and its settings read "Archive expiry" and "Archive rotation" everywhere, the new webhook page included. The retry field is labelled "Delivery attempts", with its help text and error messages to match, on both target forms and in the target list. The navbar says "Sign out" and the sign-in page "Sign in". The resubmit notice says "webhook". The stored values (`database`, `max_retries`) and their meaning are unchanged.

Model: opus-5-5
This commit is contained in:
2026-10-03 02:31:05 +00:00
parent 74a96b2226
commit f61b608b1c
21 changed files with 150 additions and 69 deletions
+3 -3
View File
@@ -185,7 +185,7 @@ func maxRetriesField(t *database.Target) ConfigField {
}
return ConfigField{
Label: "Max Retries",
Label: "Delivery attempts",
Value: retries,
}
}
@@ -213,10 +213,10 @@ func databaseConfigFields(configJSON string) []ConfigField {
}
return []ConfigField{{
Label: "Archive Expiry",
Label: "Archive expiry",
Value: value,
}, {
Label: "Archive Rotation",
Label: "Archive rotation",
Value: rotation,
}}
}
+4 -4
View File
@@ -32,7 +32,7 @@ const (
viewMaskedOrigin = viewExampleOrigin + "/..."
viewUnavailable = "(unavailable)"
viewExpiryNever = "never"
viewMaxRetries = "Max Retries"
viewMaxRetries = "Delivery attempts"
)
func TestMaskedWebhookURL(t *testing.T) {
@@ -329,8 +329,8 @@ func TestNewTargetViews_Database(t *testing.T) {
assert.Equal(
t,
map[string]string{
"Archive Expiry": tc.want,
"Archive Rotation": rotationNone,
"Archive expiry": tc.want,
"Archive rotation": rotationNone,
},
fieldMap(view.Config),
)
@@ -365,7 +365,7 @@ func TestNewTargetViews_DatabaseRotation(t *testing.T) {
})
assert.Equal(
t, want, fieldMap(view.Config)["Archive Rotation"],
t, want, fieldMap(view.Config)["Archive rotation"],
)
})
}