feat(ui): redesign global logs as cockpit surface (#699)

Rework the Logs view into the cockpit language: a PageMasthead strip with
cyan rail, pulsing live dot, italic state word, and tracked-mono kicker;
a SignalRail of EVENTS/MIN (with rolling 60s sparkline), ERRORS, WARNINGS,
and CONTAINERS tiles; a segmented filter strip; a day-banded feed with
severity dots and whole-row tint on ERROR/WARN; and a floating glass chip
strip for pause/resume, clear, and download.

Decouple the live log stream from the Developer Mode toggle so SSE runs by
default for everyone, with polling as an invisible fallback when
EventSource is unavailable. Drop the Standard Log Polling Rate setting
and the global_logs_refresh key it persisted; Developer Mode still gates
Real-Time Metrics and Debug Diagnostics and nothing else.

Introduces the shared PageMasthead and SignalRail primitives for reuse
across other cockpit pages.
This commit is contained in:
Anso
2026-04-19 16:25:54 -04:00
committed by GitHub
parent ef4455f68d
commit b95442c8f7
13 changed files with 633 additions and 261 deletions
+8 -9
View File
@@ -253,16 +253,19 @@ Quick reference:
## Developer
**Scope:** Per-node (streaming and polling settings), Global (data retention)
**Scope:** Per-node (developer mode), Global (data retention)
Advanced settings for log streaming behavior and data retention. Most users can leave these at their defaults.
<Frame>
<img src="/images/settings/settings-developer-section.png" alt="Developer settings panel with the Developer Mode toggle and Data Retention fields" />
</Frame>
### Streaming
Advanced settings for debug diagnostics and data retention. Most users can leave these at their defaults.
### Debug
| Setting | Default | Description |
|---------|---------|-------------|
| **Developer Mode** | Off | Enables real-time SSE streaming for [Global Observability](/features/global-observability), and activates debug diagnostics (timing, cache state, file resolution) in the server logs |
| **Standard Log Polling Rate** | 5s | Polling interval in standard mode. Options: `1s`, `3s`, `5s`, `10s`. Disabled when Developer Mode is on. |
| **Developer Mode** | Off | Enables Real-Time Metrics and Debug Diagnostics (timing, cache state, file resolution) in the server logs. Does not affect [Global Observability](/features/global-observability) streaming, which is always on. |
### Data Retention
@@ -274,10 +277,6 @@ Advanced settings for log streaming behavior and data retention. Most users can
Click **Save Developer Settings** to apply.
<Note>
Lower polling rates (1s) increase backend CPU usage as Sencho polls Docker more frequently. Use only when actively debugging.
</Note>
---
## Nodes