mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-08 09:54:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user