feat: page long and truncated lists
Lists that were cut off by a fixed LIMIT, or could grow without bound, are paged by keyset: the cursor holds the sort key and an ID, so pages neither skip nor repeat items as others are added. The audit logs had a timestamp-only cursor that could skip entries with equal times. The API returns at most 100 items per list (limit takes up to 500) with next_cursor and prev_cursor, passed back as after and before. The console shows Newer/Older (or Previous/Next) links and To the start, without JavaScript. Paged: incidents (optionally of one monitor), a monitor's results and evidence, a checker's results, the audit logs, members, maintenance windows, firing Alertmanager alerts, the monitors API and the admin lists of status pages and organizations, which move to their own admin pages. A monitor's page shows its latest incidents and results and links to all of them. The dashboard caps every group at 50 of its own monitors with a link to a paged view of the group, and gains a search by name or target. Lists filtered by permission after reading may show fewer items on a page. Closes #116 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
98fb5d3a82
commit
d7c5cd711e
63 files changed
+5427
-3041
No files matched your search
@@ -171,6 +171,7 @@ func TestDynamicFamilies(t *testing.T) {
|
||||
"moderation.delete_": {"page", "org", "owner"},
|
||||
"moderation.delete_confirm_": {"page", "org", "owner"},
|
||||
"limits.own_": {"true", "false"},
|
||||
"pager.": {"newer", "older", "previous", "next", "later", "earlier"},
|
||||
"weekday.": {"0", "1", "2", "3", "4", "5", "6"},
|
||||
"md.": {"heading", "bold", "italic", "strike", "link", "ul", "ol", "quote", "code", "codeblock", "table", "hr"},
|
||||
"maintenance.recurrence_": {"none", "daily", "weekly", "monthly"},
|
||||
|
||||
@@ -131,7 +131,6 @@
|
||||
"audit.deleted_user": "Gelöschter Benutzer",
|
||||
"audit.empty": "Noch keine Einträge.",
|
||||
"audit.intro": "Änderungen in dieser Organisation: wer wann was getan hat und von welcher Adresse. Einträge lassen sich nicht bearbeiten.",
|
||||
"audit.older": "Ältere Einträge",
|
||||
"audit.platform_intro": "Änderungen an Plattform-Regionen und -Agents sowie Anmeldeversuche für unbekannte Konten.",
|
||||
"audit.platform_title": "Plattform-Audit-Log",
|
||||
"audit.title": "Audit-Log",
|
||||
@@ -495,6 +494,7 @@
|
||||
"error.invalid_code": "Code ungültig.",
|
||||
"error.invalid_config": "Die Check-Einstellungen sind ungültig.",
|
||||
"error.invalid_credentials": "E-Mail oder Passwort falsch.",
|
||||
"error.invalid_cursor": "Dieser Seitenlink ist ungültig; beginne bei der ersten Seite.",
|
||||
"error.invalid_domain": "Eine der Domains ist ungültig.",
|
||||
"error.invalid_email": "Bitte eine gültige E-Mail-Adresse eingeben.",
|
||||
"error.invalid_expect_status": "Erwartete Statuscodes müssen Codes wie 200 oder Klassen wie 2xx sein.",
|
||||
@@ -505,6 +505,7 @@
|
||||
"error.invalid_interval": "Das Intervall muss mindestens {{.Min}} Sekunden und höchstens einen Tag betragen.",
|
||||
"error.invalid_json_body": "Der Request-Body ist kein gültiges JSON.",
|
||||
"error.invalid_legal_url": "Der Link muss eine http- oder https-URL sein.",
|
||||
"error.invalid_limit": "limit muss zwischen 1 und {{.Max}} liegen.",
|
||||
"error.invalid_maintenance_duration": "Die Dauer muss zwischen 1 Minute und 30 Tagen liegen.",
|
||||
"error.invalid_maintenance_time": "Prüfe Beginn, Wochentage und letzten Tag.",
|
||||
"error.invalid_matchers": "Lege 1 bis 20 Label-Matcher mit gültigen Label-Namen und regulären Ausdrücken an.",
|
||||
@@ -731,7 +732,10 @@
|
||||
"groups.none": "– oberste Ebene –",
|
||||
"groups.parent": "In Gruppe",
|
||||
"groups.title": "Monitor-Gruppen",
|
||||
"incidents.all": "Alle Vorfälle",
|
||||
"incidents.all_of_monitor": "Alle Vorfälle dieses Monitors",
|
||||
"incidents.none": "Bisher keine Incidents.",
|
||||
"incidents.of_monitor": "Vorfälle von",
|
||||
"incidents.ongoing": "laufend",
|
||||
"incidents.resolved": "behoben",
|
||||
"incidents.title": "Incidents",
|
||||
@@ -847,7 +851,6 @@
|
||||
"moderation.delete_owner": "Account löschen",
|
||||
"moderation.delete_page": "Statusseite löschen",
|
||||
"moderation.intro": "Alle veröffentlichten Statusseiten und alle gesperrten Seiten, Organisationen und Accounts, jeweils mit Organisation und Inhaber. Sperren lässt sich rückgängig machen und zeigt der Organisation den Grund; Löschen ist endgültig.",
|
||||
"moderation.limited": "Nur die neuesten 500 werden angezeigt; die Suche grenzt ein.",
|
||||
"moderation.none": "Keine Statusseite gefunden.",
|
||||
"moderation.org": "Organisation",
|
||||
"moderation.owner": "Inhaber",
|
||||
@@ -864,6 +867,8 @@
|
||||
"moderation.target_page": "Statusseite",
|
||||
"moderation.title": "Öffentliche Statusseiten",
|
||||
"monitors.alertmanager_hint": "Ausgefallen, solange ein Alert feuert, der alle Matcher erfüllt. Alerts kommen über einen Empfänger:",
|
||||
"monitors.all": "Alle Monitore",
|
||||
"monitors.all_results": "Alle Ergebnisse",
|
||||
"monitors.assertion_op": "Operator",
|
||||
"monitors.assertion_path": "Pfad",
|
||||
"monitors.assertion_value": "Wert",
|
||||
@@ -935,6 +940,8 @@
|
||||
"monitors.minecraft_hint": "Ziel ist host:port (Java meist 25565, Bedrock 19132). Pingt den Server wie die Serverliste im Spiel.",
|
||||
"monitors.minecraft_java": "Java Edition",
|
||||
"monitors.new": "Neuer Monitor",
|
||||
"monitors.no_match": "Kein Monitor gefunden.",
|
||||
"monitors.no_results": "Noch keine Ergebnisse.",
|
||||
"monitors.op_absent": "fehlt",
|
||||
"monitors.op_contains": "enthält",
|
||||
"monitors.op_eq": "gleich",
|
||||
@@ -963,7 +970,10 @@
|
||||
"monitors.recent": "Letzte Checks",
|
||||
"monitors.regions": "Regionen",
|
||||
"monitors.regions_hint": "Geprüft von einem zufälligen Checker jeder gewählten Region. Deine eigenen Regionen stehen oben.",
|
||||
"monitors.results_title": "Prüfergebnisse",
|
||||
"monitors.search": "Nach Name oder Ziel suchen",
|
||||
"monitors.secret_unchanged": "unverändert",
|
||||
"monitors.show_all": "Alle {{.Count}} anzeigen",
|
||||
"monitors.sla": "SLA",
|
||||
"monitors.sla_table": "SLA nach Zeitraum",
|
||||
"monitors.smtp_hint": "Ziel ist host:port (25, 587 oder 465). Wartet auf die Begrüßung und sendet EHLO; mit Verschlüsselung muss STARTTLS gelingen.",
|
||||
@@ -1015,6 +1025,7 @@
|
||||
"monitors.type_steam": "Steam-Spieleserver",
|
||||
"monitors.type_tcp": "TCP-Port",
|
||||
"monitors.type_tls": "TLS-Zertifikat",
|
||||
"monitors.ungrouped": "Ohne Gruppe",
|
||||
"monitors.uptime_chart": "Uptime pro Zeitraum",
|
||||
"monitors.verify_tls": "TLS-Zertifikat prüfen",
|
||||
"notify.duration": "Ausgefallen für {{.Duration}}",
|
||||
@@ -1063,6 +1074,14 @@
|
||||
"page.status.unknown": "Status derzeit nicht verfügbar",
|
||||
"page.today": "Heute",
|
||||
"page.updated": "Aktualisiert {{.Time}}",
|
||||
"pager.earlier": "Frühere",
|
||||
"pager.first": "Zum Anfang",
|
||||
"pager.label": "Seiten",
|
||||
"pager.later": "Spätere",
|
||||
"pager.newer": "Neuere",
|
||||
"pager.next": "Weiter",
|
||||
"pager.older": "Ältere",
|
||||
"pager.previous": "Zurück",
|
||||
"pages.accent": "Akzentfarbe (#rrggbb)",
|
||||
"pages.components": "Monitore auf dieser Seite",
|
||||
"pages.create": "Statuspage anlegen",
|
||||
|
||||
@@ -131,7 +131,6 @@
|
||||
"audit.deleted_user": "Deleted user",
|
||||
"audit.empty": "No entries yet.",
|
||||
"audit.intro": "Changes in this organization: who did what and when, from which address. Entries cannot be edited.",
|
||||
"audit.older": "Older entries",
|
||||
"audit.platform_intro": "Changes to platform regions and agents, and sign-in attempts for unknown accounts.",
|
||||
"audit.platform_title": "Platform audit log",
|
||||
"audit.title": "Audit log",
|
||||
@@ -495,6 +494,7 @@
|
||||
"error.invalid_code": "Invalid code.",
|
||||
"error.invalid_config": "The check settings are not valid.",
|
||||
"error.invalid_credentials": "Wrong email or password.",
|
||||
"error.invalid_cursor": "This page link is invalid; start from the first page.",
|
||||
"error.invalid_domain": "One of the domains is not valid.",
|
||||
"error.invalid_email": "Please enter a valid email address.",
|
||||
"error.invalid_expect_status": "Expected status codes must be codes like 200 or classes like 2xx.",
|
||||
@@ -505,6 +505,7 @@
|
||||
"error.invalid_interval": "The interval must be at least {{.Min}} seconds and at most one day.",
|
||||
"error.invalid_json_body": "The request body is not valid JSON.",
|
||||
"error.invalid_legal_url": "The link must be an http or https URL.",
|
||||
"error.invalid_limit": "limit must be between 1 and {{.Max}}.",
|
||||
"error.invalid_maintenance_duration": "The duration must be between 1 minute and 30 days.",
|
||||
"error.invalid_maintenance_time": "Check start, weekdays and last day.",
|
||||
"error.invalid_matchers": "Add 1 to 20 label matchers with valid label names and regular expressions.",
|
||||
@@ -731,7 +732,10 @@
|
||||
"groups.none": "– top level –",
|
||||
"groups.parent": "Inside group",
|
||||
"groups.title": "Monitor groups",
|
||||
"incidents.all": "All incidents",
|
||||
"incidents.all_of_monitor": "All incidents of this monitor",
|
||||
"incidents.none": "No incidents so far.",
|
||||
"incidents.of_monitor": "Incidents of",
|
||||
"incidents.ongoing": "ongoing",
|
||||
"incidents.resolved": "resolved",
|
||||
"incidents.title": "Incidents",
|
||||
@@ -847,7 +851,6 @@
|
||||
"moderation.delete_owner": "Delete account",
|
||||
"moderation.delete_page": "Delete status page",
|
||||
"moderation.intro": "Every published status page, and every page, organization or account that is suspended, with the organization and its owner behind it. Suspending can be undone and shows the reason to the organization; deleting cannot be undone.",
|
||||
"moderation.limited": "Only the newest 500 are shown; search to narrow down.",
|
||||
"moderation.none": "No status page matches.",
|
||||
"moderation.org": "Organization",
|
||||
"moderation.owner": "Owner",
|
||||
@@ -864,6 +867,8 @@
|
||||
"moderation.target_page": "Status page",
|
||||
"moderation.title": "Public status pages",
|
||||
"monitors.alertmanager_hint": "Down while an alert matching all matchers fires. Alerts arrive through a receiver:",
|
||||
"monitors.all": "All monitors",
|
||||
"monitors.all_results": "All results",
|
||||
"monitors.assertion_op": "Operator",
|
||||
"monitors.assertion_path": "Path",
|
||||
"monitors.assertion_value": "Value",
|
||||
@@ -935,6 +940,8 @@
|
||||
"monitors.minecraft_hint": "Target is host:port (Java usually 25565, Bedrock 19132). Pings the server like the in-game server list.",
|
||||
"monitors.minecraft_java": "Java Edition",
|
||||
"monitors.new": "New monitor",
|
||||
"monitors.no_match": "No monitor matches.",
|
||||
"monitors.no_results": "No results yet.",
|
||||
"monitors.op_absent": "is absent",
|
||||
"monitors.op_contains": "contains",
|
||||
"monitors.op_eq": "equals",
|
||||
@@ -963,7 +970,10 @@
|
||||
"monitors.recent": "Recent checks",
|
||||
"monitors.regions": "Regions",
|
||||
"monitors.regions_hint": "Checked from a random checker in each selected region. Your own regions are listed first.",
|
||||
"monitors.results_title": "Check results",
|
||||
"monitors.search": "Search by name or target",
|
||||
"monitors.secret_unchanged": "unchanged",
|
||||
"monitors.show_all": "Show all {{.Count}}",
|
||||
"monitors.sla": "SLA",
|
||||
"monitors.sla_table": "SLA by period",
|
||||
"monitors.smtp_hint": "Target is host:port (25, 587 or 465). Waits for the greeting and says EHLO; with encryption, STARTTLS must succeed.",
|
||||
@@ -1015,6 +1025,7 @@
|
||||
"monitors.type_steam": "Steam game server",
|
||||
"monitors.type_tcp": "TCP port",
|
||||
"monitors.type_tls": "TLS certificate",
|
||||
"monitors.ungrouped": "Without group",
|
||||
"monitors.uptime_chart": "Uptime per period",
|
||||
"monitors.verify_tls": "Verify TLS certificate",
|
||||
"notify.duration": "Down for {{.Duration}}",
|
||||
@@ -1063,6 +1074,14 @@
|
||||
"page.status.unknown": "Status currently unavailable",
|
||||
"page.today": "Today",
|
||||
"page.updated": "Updated {{.Time}}",
|
||||
"pager.earlier": "Earlier",
|
||||
"pager.first": "To the start",
|
||||
"pager.label": "Pages",
|
||||
"pager.later": "Later",
|
||||
"pager.newer": "Newer",
|
||||
"pager.next": "Next",
|
||||
"pager.older": "Older",
|
||||
"pager.previous": "Previous",
|
||||
"pages.accent": "Accent color (#rrggbb)",
|
||||
"pages.components": "Monitors on this page",
|
||||
"pages.create": "Create status page",
|
||||
|
||||
Reference in new issue
Block a user