fix(v2): comprehensive bug fix round — all reported issues
1. Server stats: now shows player count, latency (rounded), uptime hours
2. Rares/Kills counters: fixed API response fields (all_time/total)
3. Chat send: wired socket.send with v1 envelope { player_name, command }
4. Stats button: opens Grafana iframe grid (4 panels, time range selector)
5. Char button: opens character window with attributes/skills/vitals from
/character-stats/{name} API, structured display with sections
6. Inventory button: full inventory window with equipment table (material,
set, imbue, AL, dmg, work, tink) + pack contents pill grid + filter
7. Radar button: opens radar window, sends start/stop commands via socket
8. Sidebar links: added Inventory Search, Suitbuilder, Player Debug
9. Color palette: expanded from 30 to 60 distinct colors matching v1
10. Window types properly routed: stats- prefix → Grafana, char- → character
data, inv- → inventory, radar- → radar with socket commands
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
de7b547349
commit
b77450b6eb
19 changed files with 529 additions and 223 deletions
|
|
@ -66,8 +66,29 @@
|
|||
}
|
||||
.ml-status-dot.online { background: #4c4; animation: ml-pulse 2s ease-in-out infinite; }
|
||||
.ml-status-dot.offline { background: #c44; }
|
||||
.ml-status-detail { color: #888; font-size: 0.7rem; }
|
||||
.ml-status-latency { margin-left: auto; color: #888; }
|
||||
|
||||
/* ── Tool links ───────────────────────────────────────── */
|
||||
.ml-tool-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.ml-tool-link {
|
||||
font-size: 0.68rem;
|
||||
color: #8ac;
|
||||
text-decoration: none;
|
||||
padding: 2px 6px;
|
||||
background: rgba(68, 136, 255, 0.08);
|
||||
border: 1px solid rgba(68, 136, 255, 0.15);
|
||||
border-radius: 3px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.ml-tool-link:hover { background: rgba(68, 136, 255, 0.18); color: #adf; }
|
||||
|
||||
@keyframes ml-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
|
||||
|
||||
/* ── Aggregate counters ───────────────────────────────── */
|
||||
|
|
@ -483,6 +504,44 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Stats window (Grafana iframes) ───────────────────── */
|
||||
.ml-stats-controls {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
padding: 6px 10px;
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
|
||||
.ml-stats-range-btn {
|
||||
padding: 3px 10px;
|
||||
font-size: 0.7rem;
|
||||
background: #2a2a2a;
|
||||
color: #888;
|
||||
border: 1px solid #444;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ml-stats-range-btn.active { background: rgba(68,136,255,0.15); color: #6aadff; border-color: rgba(68,136,255,0.3); }
|
||||
|
||||
.ml-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.ml-stats-panel {
|
||||
min-height: 200px;
|
||||
background: #fff;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ml-stats-panel iframe {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* ── Chat window ──────────────────────────────────────── */
|
||||
.ml-chat-messages {
|
||||
flex: 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue