carlos / platform Public

Apply approved app list and expiry wording

Paul Campbell pushed by claude agent, operated by paul@keymail.dev 212d248b82a52a6fc3e13a69546aa33fd502cede parent 0e51ece
2 files changed, +13 −6
  • internal/console/applist.go +7 −6
  • internal/console/applistcopy.go +6 −0

CI passed — run details

diff --git a/internal/console/applist.go b/internal/console/applist.go
index 60e308b46..b5e4c47b9 100644
--- a/internal/console/applist.go
+++ b/internal/console/applist.go
@@ -15,11 +15,6 @@ import (
// and the owner's Extend form. Stars are one person's bookmarks in one
// account; they grant nothing and change nothing about the app.
-// appListRefusals is the Extend form's new refusal text. The page's own
-// labels are appListCopy (applistcopy.go). Both are held at their zero
-// values until Paul approves them in copy review (the proposed ids are in
-// writing/app-lists/backend-strings.json); a refusal whose text is still
-// empty redirects without a notice.
type appListRefusals struct {
// ExtendExpired: the app's expiry has passed, but the expiry pass has
// not trashed it yet.
@@ -32,7 +27,13 @@ type appListRefusals struct {
StarFailed string
}
-var approvedAppListRefusals = appListRefusals{}
+var approvedAppListRefusals = appListRefusals{
+ ExtendExpired: "This app has expired and cannot be extended.",
+ ExtendAtLimit: "This app is already set to expire 30 days from now.",
+ ExtendSuccess: "{app} now expires {date}.",
+ ExtendFailed: "Could not extend this app's expiry. Please try again.",
+ StarFailed: "Could not save this app's star. Please try again.",
+}
// extendDays are the Extend form's choices. Anything else is refused.
var extendDays = map[string]int{"1": 1, "7": 7, "30": 30}
diff --git a/internal/console/applistcopy.go b/internal/console/applistcopy.go
index 3b33d3a9a..98c280935 100644
--- a/internal/console/applistcopy.go
+++ b/internal/console/applistcopy.go
@@ -13,7 +13,13 @@ var approvedAppListCopy = appListCopy{
Temporary: "Temporary apps",
Filter: "Filter apps",
FilterPlaceholder: "By name or hostname",
+ NoMatches: "No apps match your filter.",
Star: "Star app",
Unstar: "Unstar app",
Expires: "Expires",
+ Extend: "Extend expiry",
+ OneDay: "1 day",
+ SevenDays: "7 days",
+ ThirtyDays: "30 days",
+ ExtensionHelp: "Adds time to the current expiry, up to 30 days from now.",
}