Skip to content

v0.3.0 - Multi-page NOC Console

Latest

Choose a tag to compare

@tuolaji996 tuolaji996 released this 27 Nov 10:08

What's changed since v0.2.4

  • Splits the dashboard into routed pages: Overview, Servers, Latency, Logs, Events, Alerts, served by a small front controller and router (src/, PSR-4, still no Composer).
  • Adds an English + Simplified Chinese UI (?lang=en|zh-CN, remembered in a cookie, defaults to the browser language).
  • Adds dark / light / system themes (?theme=, remembered in a cookie, works without JavaScript).
  • Shows latency as a matrix by default, plus a redrawn zoomable map (/latency?view=map) with clickable nodes.
  • Adds a phone layout with a bottom tab bar, and the overview's numbers now refresh in place via /overview/live.
  • Adds /alerts: a password-protected page (PHP session + CSRF, no-store) that shows the JSON export of any external health checker. The format (signalops-healthcheck-page-v1) is documented in the README.
  • Collector changes: the latency map falls back to the reverse ping direction, the bot journal reports a "recovered incident" state, there is an optional database.kinds_sql archive breakdown, and endpoint labels were added.
  • Still no build step: plain CSS + ES modules under public/assets/site/, with self-hosted IBM Plex fonts (OFL included).
  • Adds an example nginx vhost (deploy/nginx/signalops-status.conf) and scripts/dev-router.php for clean URLs on the PHP built-in server.
  • The public footer shows render stats only, with no PHP version or server software details.

Why upgrade

v0.3 turns the single long dashboard into a dense, navigable console that also works on phones and in Chinese, while keeping the same zero-build PHP deployment. The v0.2 page is still served at /index.php, so existing links and embeds keep working.

Upgrade notes

  • Existing configs continue to work. New optional keys: auth.*, alerts.export_path, alerts.stale_after_seconds, ui.cache_dir (see config/signalops.example.php).
  • Clean URLs need public/ as the document root, with unknown paths sent to public/index.php (see the nginx example).
  • The new pages only read the cached snapshot. Keep the cache warmer timer installed, or the pages show "no snapshot yet" until the first refresh.
  • To use /alerts in production, set auth.password_hash (php -r 'echo password_hash("...", PASSWORD_DEFAULT), PHP_EOL;') and point alerts.export_path at your checker's JSON. Keep /alerts out of CDN cache rules.
  • Try it locally: php -S 127.0.0.1:8080 -t public scripts/dev-router.php.

Verification

  • php scripts/test-core.php (87 checks) and php scripts/test-home.php (531 checks) pass on PHP 8.5.
  • All pages checked in demo mode in a browser: dark and light themes, zh-CN, phone width, latency map; no console errors.
  • Confirmed the release contains no TradeFlash-specific code, hostnames, IPs, credentials, or production data.