| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/status-page", |
| 5 |
"title": "Status Page", |
| 6 |
"description": "Display system/service status with component health indicators, uptime percentages, and incident history.", |
| 7 |
"category": "bkbg-dev", |
| 8 |
"icon": "shield", |
| 9 |
"keywords": [ |
| 10 |
"status", |
| 11 |
"uptime", |
| 12 |
"incident", |
| 13 |
"health", |
| 14 |
"system", |
| 15 |
"service", |
| 16 |
"operational" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-status-page-editor", |
| 20 |
"editorStyle": "bkbg-status-page-style", |
| 21 |
"style": "bkbg-status-page-style", |
| 22 |
"viewScript": "bkbg-status-page-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"pageTitle": { |
| 34 |
"type": "string", |
| 35 |
"default": "System Status" |
| 36 |
}, |
| 37 |
"overallStatus": { |
| 38 |
"type": "string", |
| 39 |
"default": "operational" |
| 40 |
}, |
| 41 |
"lastUpdated": { |
| 42 |
"type": "string", |
| 43 |
"default": "February 24, 2026 · 12:00 UTC" |
| 44 |
}, |
| 45 |
"showLastUpdated": { |
| 46 |
"type": "boolean", |
| 47 |
"default": true |
| 48 |
}, |
| 49 |
"components": { |
| 50 |
"type": "array", |
| 51 |
"default": [ |
| 52 |
{ |
| 53 |
"name": "API", |
| 54 |
"status": "operational", |
| 55 |
"uptime": 99.98, |
| 56 |
"description": "Core REST API endpoints" |
| 57 |
}, |
| 58 |
{ |
| 59 |
"name": "Web App", |
| 60 |
"status": "operational", |
| 61 |
"uptime": 99.95, |
| 62 |
"description": "Customer-facing application" |
| 63 |
}, |
| 64 |
{ |
| 65 |
"name": "Dashboard", |
| 66 |
"status": "degraded", |
| 67 |
"uptime": 98.12, |
| 68 |
"description": "Admin dashboard & analytics" |
| 69 |
}, |
| 70 |
{ |
| 71 |
"name": "Authentication", |
| 72 |
"status": "operational", |
| 73 |
"uptime": 100.0, |
| 74 |
"description": "Login, OAuth, SSO" |
| 75 |
}, |
| 76 |
{ |
| 77 |
"name": "File Storage", |
| 78 |
"status": "operational", |
| 79 |
"uptime": 99.87, |
| 80 |
"description": "Media uploads & CDN delivery" |
| 81 |
}, |
| 82 |
{ |
| 83 |
"name": "Email Delivery", |
| 84 |
"status": "maintenance", |
| 85 |
"uptime": 99.5, |
| 86 |
"description": "Transactional & marketing email" |
| 87 |
}, |
| 88 |
{ |
| 89 |
"name": "Webhooks", |
| 90 |
"status": "operational", |
| 91 |
"uptime": 99.91, |
| 92 |
"description": "Event-driven integrations" |
| 93 |
}, |
| 94 |
{ |
| 95 |
"name": "Search", |
| 96 |
"status": "outage", |
| 97 |
"uptime": 94.3, |
| 98 |
"description": "Full-text & semantic search" |
| 99 |
} |
| 100 |
] |
| 101 |
}, |
| 102 |
"showUptime": { |
| 103 |
"type": "boolean", |
| 104 |
"default": true |
| 105 |
}, |
| 106 |
"showDescription": { |
| 107 |
"type": "boolean", |
| 108 |
"default": true |
| 109 |
}, |
| 110 |
"incidents": { |
| 111 |
"type": "array", |
| 112 |
"default": [ |
| 113 |
{ |
| 114 |
"title": "Search service outage – indexing failure", |
| 115 |
"severity": "major", |
| 116 |
"date": "Feb 24, 2026", |
| 117 |
"updates": [ |
| 118 |
{ |
| 119 |
"time": "11:42 UTC", |
| 120 |
"status": "investigating", |
| 121 |
"message": "We are investigating reports of search returning no results across all regions." |
| 122 |
}, |
| 123 |
{ |
| 124 |
"time": "12:00 UTC", |
| 125 |
"status": "identified", |
| 126 |
"message": "Root cause identified: indexing worker crashed during a schema migration." |
| 127 |
} |
| 128 |
] |
| 129 |
}, |
| 130 |
{ |
| 131 |
"title": "Dashboard latency elevated", |
| 132 |
"severity": "minor", |
| 133 |
"date": "Feb 22, 2026", |
| 134 |
"updates": [ |
| 135 |
{ |
| 136 |
"time": "09:15 UTC", |
| 137 |
"status": "investigating", |
| 138 |
"message": "Some users reporting slow dashboard load times (>5s)." |
| 139 |
}, |
| 140 |
{ |
| 141 |
"time": "10:30 UTC", |
| 142 |
"status": "monitoring", |
| 143 |
"message": "Database query optimisation deployed. Monitoring for stabilisation." |
| 144 |
}, |
| 145 |
{ |
| 146 |
"time": "11:50 UTC", |
| 147 |
"status": "resolved", |
| 148 |
"message": "Latency returned to normal. Incident resolved." |
| 149 |
} |
| 150 |
] |
| 151 |
} |
| 152 |
] |
| 153 |
}, |
| 154 |
"showIncidents": { |
| 155 |
"type": "boolean", |
| 156 |
"default": true |
| 157 |
}, |
| 158 |
"incidentsLabel": { |
| 159 |
"type": "string", |
| 160 |
"default": "Recent Incidents" |
| 161 |
}, |
| 162 |
"componentsLabel": { |
| 163 |
"type": "string", |
| 164 |
"default": "Components" |
| 165 |
}, |
| 166 |
"fontSize": { |
| 167 |
"type": "number", |
| 168 |
"default": 14 |
| 169 |
}, |
| 170 |
"titleFontSize": { |
| 171 |
"type": "number", |
| 172 |
"default": 26 |
| 173 |
}, |
| 174 |
"lineHeight": { |
| 175 |
"type": "number", |
| 176 |
"default": 168 |
| 177 |
}, |
| 178 |
"fontWeight": { |
| 179 |
"type": "string", |
| 180 |
"default": "400" |
| 181 |
}, |
| 182 |
"borderRadius": { |
| 183 |
"type": "number", |
| 184 |
"default": 12 |
| 185 |
}, |
| 186 |
"bgColor": { |
| 187 |
"type": "string", |
| 188 |
"default": "#ffffff" |
| 189 |
}, |
| 190 |
"borderColor": { |
| 191 |
"type": "string", |
| 192 |
"default": "#e5e7eb" |
| 193 |
}, |
| 194 |
"headerBg": { |
| 195 |
"type": "string", |
| 196 |
"default": "#0f172a" |
| 197 |
}, |
| 198 |
"headerColor": { |
| 199 |
"type": "string", |
| 200 |
"default": "#ffffff" |
| 201 |
}, |
| 202 |
"metaColor": { |
| 203 |
"type": "string", |
| 204 |
"default": "#94a3b8" |
| 205 |
}, |
| 206 |
"sectionHeadColor": { |
| 207 |
"type": "string", |
| 208 |
"default": "#111827" |
| 209 |
}, |
| 210 |
"componentNameColor": { |
| 211 |
"type": "string", |
| 212 |
"default": "#1f2937" |
| 213 |
}, |
| 214 |
"componentDescColor": { |
| 215 |
"type": "string", |
| 216 |
"default": "#6b7280" |
| 217 |
}, |
| 218 |
"uptimeColor": { |
| 219 |
"type": "string", |
| 220 |
"default": "#6b7280" |
| 221 |
}, |
| 222 |
"operationalBg": { |
| 223 |
"type": "string", |
| 224 |
"default": "#dcfce7" |
| 225 |
}, |
| 226 |
"operationalColor": { |
| 227 |
"type": "string", |
| 228 |
"default": "#14532d" |
| 229 |
}, |
| 230 |
"degradedBg": { |
| 231 |
"type": "string", |
| 232 |
"default": "#fef9c3" |
| 233 |
}, |
| 234 |
"degradedColor": { |
| 235 |
"type": "string", |
| 236 |
"default": "#713f12" |
| 237 |
}, |
| 238 |
"outageBg": { |
| 239 |
"type": "string", |
| 240 |
"default": "#fee2e2" |
| 241 |
}, |
| 242 |
"outageColor": { |
| 243 |
"type": "string", |
| 244 |
"default": "#991b1b" |
| 245 |
}, |
| 246 |
"maintenanceBg": { |
| 247 |
"type": "string", |
| 248 |
"default": "#e0e7ff" |
| 249 |
}, |
| 250 |
"maintenanceColor": { |
| 251 |
"type": "string", |
| 252 |
"default": "#3730a3" |
| 253 |
}, |
| 254 |
"incidentBorderMajor": { |
| 255 |
"type": "string", |
| 256 |
"default": "#ef4444" |
| 257 |
}, |
| 258 |
"incidentBorderMinor": { |
| 259 |
"type": "string", |
| 260 |
"default": "#f59e0b" |
| 261 |
}, |
| 262 |
"incidentBorderNotice": { |
| 263 |
"type": "string", |
| 264 |
"default": "#3b82f6" |
| 265 |
}, |
| 266 |
"updateDotInvestigating": { |
| 267 |
"type": "string", |
| 268 |
"default": "#f59e0b" |
| 269 |
}, |
| 270 |
"updateDotIdentified": { |
| 271 |
"type": "string", |
| 272 |
"default": "#ef4444" |
| 273 |
}, |
| 274 |
"updateDotMonitoring": { |
| 275 |
"type": "string", |
| 276 |
"default": "#3b82f6" |
| 277 |
}, |
| 278 |
"updateDotResolved": { |
| 279 |
"type": "string", |
| 280 |
"default": "#22c55e" |
| 281 |
}, |
| 282 |
"titleTypo": { |
| 283 |
"type": "object", |
| 284 |
"default": {} |
| 285 |
}, |
| 286 |
"bodyTypo": { |
| 287 |
"type": "object", |
| 288 |
"default": {} |
| 289 |
}, |
| 290 |
"sectionHeadTypo": { |
| 291 |
"type": "object", |
| 292 |
"default": {} |
| 293 |
}, |
| 294 |
"componentNameTypo": { |
| 295 |
"type": "object", |
| 296 |
"default": {} |
| 297 |
}, |
| 298 |
"incidentTitleTypo": { |
| 299 |
"type": "object", |
| 300 |
"default": {} |
| 301 |
} |
| 302 |
} |
| 303 |
} |
| 304 |
|