Restyling light pastel: tema blanco/azul/verde + Inter self-hosted

- theme.css reescrito: paleta light (sky/emerald accents, slate neutrals),
  tokens de spacing/typography/radii/shadows, @font-face Inter +
  JetBrains Mono variable woff2 self-hosted.
- ops-shell: header blanco con nav active=accent-soft + status pill pastel.
- run-timeline: bubbles emerald-100 (user) / blue-100 (bot) sobre blanco.
- home-dashboard: helpers cssVar + withAlpha, 6 charts coordinados a
  paleta pastel (--chart-blue/green/purple/orange/pink/gray).
- 8 CRUDs (users, products, orders, conversations, aliases,
  recommendations, quantities, takeovers, settings, debug) migrados
  de hex hardcoded oscuros a var(--*).
- modal.js + toast.js refactor a vars con fallbacks; modal blanco
  con shadow-lg y soft icon backgrounds.
- test-panel: aliases :host apuntan a globals en vez de override dark.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lucas Tettamanti
2026-05-02 13:56:48 -03:00
parent 675a449ce8
commit 0bf26f8eb5
22 changed files with 2355 additions and 655 deletions

View File

@@ -19,31 +19,63 @@ class ConversationInspector extends HTMLElement {
this.shadowRoot.innerHTML = `
<style>
:host { display:block; padding:12px; height:100%; overflow:hidden; }
.box { background:var(--panel); border:1px solid var(--border); border-radius:var(--r-lg); padding:10px; height:100%; display:flex; flex-direction:column; min-height:0; box-sizing:border-box; }
.row { display:flex; gap:8px; align-items:center; }
.muted { color:var(--text-muted); font-size:12px; }
.title { font-weight:800; }
.toolbar { display:flex; gap:8px; margin-top:8px; align-items:center; }
button { cursor:pointer; background:var(--panel-2); color:var(--text); border:1px solid var(--border-hi); border-radius:var(--r-md); padding:8px; font-size:13px; }
.list { display:flex; flex-direction:column; gap:0; overflow-y:auto; padding-right:6px; margin-top:8px; flex:1; min-height:0; }
.item { border:1px solid var(--border-hi); border-radius:12px; padding:8px 10px; background:var(--panel-2); font-size:12px; margin-bottom:12px; box-sizing:border-box; }
.item.in { background:var(--panel-2); border-color:var(--bot-border); }
.item.out { background:var(--bot-bubble); border-color:var(--bot-border); }
.item.active { outline:2px solid var(--accent); box-shadow: 0 0 0 2px rgba(31,111,235,.25); }
.item-row { display:flex; gap:8px; }
:host { display:block; padding: var(--space-4); height:100%; overflow:hidden; font-family: var(--font-sans); }
.box {
background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--r-lg);
padding: var(--space-5);
height:100%; display:flex; flex-direction:column; min-height:0; box-sizing:border-box;
box-shadow: var(--shadow-sm);
}
.row { display:flex; gap: var(--space-2); align-items:center; }
.muted { color: var(--text-muted); font-size: var(--fs-sm); }
.title { font-weight: var(--fw-semibold); font-size: var(--fs-md); color: var(--text); }
.toolbar { display:flex; gap: var(--space-2); margin-top: var(--space-3); align-items:center; }
button {
cursor:pointer;
background: var(--panel); color: var(--text);
border: 1px solid var(--border-hi);
border-radius: var(--r-md);
padding: 6px 12px;
font: var(--fw-medium) var(--fs-sm)/1 var(--font-sans);
transition: all .15s;
}
button:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }
button:focus-visible { outline:none; box-shadow: var(--focus-ring); }
.list { display:flex; flex-direction:column; gap:0; overflow-y:auto; padding-right: 8px; margin-top: var(--space-3); flex:1; min-height:0; }
.item {
border: 1px solid var(--border);
border-radius: var(--r-lg);
padding: 10px 12px;
background: var(--panel-2);
font-size: var(--fs-sm);
margin-bottom: var(--space-3);
box-sizing:border-box;
transition: border-color .15s;
}
.item.in { background: var(--panel-2); border-color: var(--border); }
.item.out { background: var(--bot-bubble); border-color: var(--bot-border); }
.item.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.item-row { display:flex; gap: var(--space-2); }
.item-left { flex:1; min-width:0; }
.item-right { display:flex; flex-direction:column; gap:4px; align-items:flex-end; justify-content:flex-start; min-width:60px; }
.kv { display:grid; grid-template-columns:55px 1fr; gap:4px 6px; }
.k { color:var(--text-muted); font-size:10px; letter-spacing:.3px; text-transform:uppercase; }
.v { font-size:11px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chips { display:flex; flex-direction:column; gap:3px; align-items:flex-end; }
.chip { display:inline-flex; align-items:center; gap:3px; padding:2px 5px; border-radius:999px; background:#1d2a3a; border:1px solid #243247; font-size:9px; color:var(--text-muted); white-space:nowrap; }
.item-right { display:flex; flex-direction:column; gap: 4px; align-items:flex-end; justify-content:flex-start; min-width:60px; }
.kv { display:grid; grid-template-columns: 60px 1fr; gap: 4px 8px; }
.k { color: var(--text-muted); font-size: 10px; letter-spacing: 0.06em; text-transform:uppercase; font-weight: var(--fw-semibold); }
.v { font-size: var(--fs-xs); color: var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chips { display:flex; flex-direction:column; gap: 4px; align-items:flex-end; }
.chip {
display:inline-flex; align-items:center; gap: 4px;
padding: 3px 8px; border-radius:999px;
background: var(--panel); border: 1px solid var(--border);
font-size: 10px; color: var(--text-muted); white-space:nowrap;
font-weight: var(--fw-medium);
}
.chip .dot { flex-shrink:0; }
.cart { margin-top:4px; font-size:10px; color:var(--bot-name); line-height:1.3; }
.tool { margin-top:6px; font-size:11px; color:var(--text-muted); }
.cart { margin-top: 6px; font-size: 11px; color: var(--bot-name); line-height: var(--lh-base); }
.tool { margin-top: 8px; font-size: var(--fs-xs); color: var(--text-muted); }
.dot { width:8px; height:8px; border-radius:50%; }
.ok { background:var(--ok); } .warn { background:var(--warn); } .err { background:var(--err); }
.ok { background: var(--ok); } .warn { background: var(--warn); } .err { background: var(--err); }
</style>
<div class="box">