diff --git a/crates/runtime-dashboard/src/actor_detail_html.rs b/crates/runtime-dashboard/src/actor_detail_html.rs index 1c7398b..9f6fdb5 100644 --- a/crates/runtime-dashboard/src/actor_detail_html.rs +++ b/crates/runtime-dashboard/src/actor_detail_html.rs @@ -62,6 +62,40 @@ pub const ACTOR_DETAIL_HTML: &str = r##" .sparkline-panel h3 { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; } .sparkline-panel svg { width: 100%; height: 50px; } + .logs-panel { + background: #161822; border: 1px solid #2a2d3e; border-radius: 6px; + padding: 14px; margin-bottom: 12px; + } + .logs-panel h3 { + font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; + margin-bottom: 8px; display: flex; align-items: center; gap: 12px; + } + .level-filter { display: flex; gap: 4px; } + .level-btn { + background: #1e2030; border: 1px solid #2a2d3e; border-radius: 3px; + color: #888; font-size: 10px; padding: 1px 6px; cursor: pointer; + font-family: inherit; + } + .level-btn.active { border-color: #555; color: #fff; } + .level-btn.error { color: #f44336; } + .level-btn.warn { color: #ff9800; } + .level-btn.info { color: #2196f3; } + .level-btn.debug { color: #888; } + .level-btn.trace { color: #555; } + + .log-list { + max-height: 400px; overflow-y: auto; font-size: 11px; line-height: 1.6; + } + .log-entry { display: flex; gap: 8px; padding: 1px 0; border-bottom: 1px solid #1a1c2e; } + .log-time { color: #555; white-space: nowrap; min-width: 80px; } + .log-level { font-weight: 700; min-width: 50px; } + .log-level.ERROR { color: #f44336; } + .log-level.WARN { color: #ff9800; } + .log-level.INFO { color: #2196f3; } + .log-level.DEBUG { color: #888; } + .log-level.TRACE { color: #555; } + .log-msg { color: #e0e0e0; word-break: break-all; } + ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #0f1117; } ::-webkit-scrollbar-thumb { background: #2a2d3e; border-radius: 3px; } @@ -113,6 +147,21 @@ pub const ACTOR_DETAIL_HTML: &str = r##"

Mailbox Depth

+ +
+

+ Logs + (0) +
+ + + + + +
+

+
+