Commit Graph

17 Commits (2f3f30116cd31504f8f5ea6dde0433ea2086c379)

Author SHA1 Message Date
Konrad Fröhlich bb990ed80c
feat(bars): claude.com-style fixed 30-day window + legend row (#8)
Owner direction (status.claude.com reference): fixed 30-day window, bars
share full row width (flex), legend '30 days ago — {uptime}% uptime —
Today' with per-window uptime computed from the same day loop; locale
keys for en/de/fr/zh-CN/zh-TW. Replaces the variable start-based window
(two prior iterations read as broken/empty). next build green.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 17:24:34 +02:00
Konrad Fröhlich 450048cb87
fix(bars): NaN guard — zero-incident monitors rendered no bars at all (#7)
montiorStartTime comes from incident[0]; monitors with a clean history
have none, the day-count bound became NaN and the loop never ran (owner
screenshot 17:17, bars vanished). Finite-check with 30-slot fallback.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 17:19:13 +02:00
Konrad Fröhlich fa024650d8
fix(bars): skip pre-monitoring no-data days — young pages fill right-to-left (#6)
Owner mobile screenshot 2026-07-13: 90-day window with ~2 days of history
rendered ~88 grey no-data bars + 2 green — read as broken, not new. The
day loop now starts at max(29, days since monitor start) instead of a
fixed 89, so leading no-data days before monitoring began are skipped
(min 30 slots keeps the row substantial). next build green.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 17:08:29 +02:00
Konrad Fröhlich 8806a272e8
style(bars): taller & thinner day bars (32px->42px) — land PR#4 on main (#5)
PR#4 ("taller & thinner day bars") merged 22:31 but targeted the wrong base
(feat/status-design-feedback, already merged to main at 22:15) instead of
main, so its commit never reached main and uptimeflare deployed PR#3's 32px
bars. This re-applies the 4-line DetailBar change onto main so the owner's
"Tagesbalken könnten höher sein" ask goes live: height 32->42px, width
7->6px, side margins 1->1.5px (tall-thin claude.com proportion).

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 01:23:16 +02:00
Konrad Fröhlich a863b01da4
style: prominent uptime %, substantial one-tone day bars, OSG favicon (#3)
Owner design feedback (reference: status.claude.com):
- Per-monitor uptime % now prominent: Martian Mono, tabular-nums, 15px
  (.osg-uptime); UptimeFlare already computes/shows the number, so this
  is styling only — no config flag exists or is needed.
- Day-history bars 20px -> 32px tall, radius 3px (solid, uniform row).
- ONE healthy tone: util/color.ts is now binary (ok / down / no-data)
  via CSS vars --osg-ok/--osg-down/--osg-nodata mapped to the main
  site's --ok token (light #1f7a4d / dark #4caf82). Removed all
  yellow/orange/light-green gradations, incl. MonitorList partial-down
  orange. Only the (unused) scheduled-maintenance triangle keeps its
  distinct maintenance color.
- Favicon: ship the exact SVG openshopgraph.org serves (/favicon.svg),
  set pageConfig.favicon, delete UptimeFlare default favicon.png.

Verified: npx @cloudflare/next-on-pages build; page chunk contains
osg-uptime / height:"32px" / var(--osg-ok); no old hue literals remain;
CSS bundle defines --osg-ok for both schemes.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 00:16:28 +02:00
lyc8503 e9d8a1c842 Add Chinese translation (Thank you copilot, and I swear I reviewed the code carefully) 2025-12-23 23:22:33 +08:00
Bennet Gallein a6c8eb6e12
maintenance mode (#101)
* feat: move types

* feat: add maintenance alert

* feat: move to config/base class to have fallback values on missing exports

* fix: wrong import for types

* Revert "fix: wrong import for types"

This reverts commit ca2b2e3a68.

* Revert "feat: move to config/base class to have fallback values on missing exports"

This reverts commit 9932ea2590.

* fix: imports

* chore: formatting

* fix: handle filtering for global status

* fix: pass props

* fix: ignore active maintenances when sending notifications

* fix: mark as warning when monitor is in maintenance

* fix: title width & warning icon

* fix: remove accordeons again

* alert config/style changes, worker code improve

* update example config

* update example config

* set monitors to be optional

---------

Co-authored-by: lyc8503 <me@lyc8503.net>
2025-05-01 01:09:53 +08:00
lyc8503 4bcf4173ea misc: run prettier 2025-04-19 21:50:43 +08:00
lyc8503 31cb82c747
fix: ts compile error missing key 2025-03-25 17:11:39 +08:00
lyc8503 dabccd83f6 feat: display incident reason 2025-03-25 16:39:05 +08:00
lyc8503 79ea2fba2c fix #54: show date in popup and add touchscreen support 2024-08-21 11:08:01 +08:00
lyc8503 9436bf2eb6 fix: show today's status bar 2023-11-19 01:03:37 +08:00
lyc8503 499bdf5a88 bar percent finish & responsive ui 2023-11-06 22:54:55 +08:00
lyc8503 eba65bd654 format code 2023-11-06 00:38:30 +08:00
lyc8503 6157bc0879 add tcp timeout, fix worker stuck 2023-10-28 16:02:22 +08:00
lyc8503 4817fef547 header responsive update, fix worker tcp read 2023-10-28 01:38:21 +08:00
lyc8503 aef4dedabe iata added, todo fix location 2023-10-23 01:50:25 +08:00