@walwal-harness/cli 7.1.41 → 7.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/harness-dashboard/app/api/metrics/route.ts +17 -0
- package/apps/harness-dashboard/app/brick.css +482 -0
- package/apps/harness-dashboard/app/layout.tsx +13 -0
- package/apps/harness-dashboard/app/page.tsx +2 -2
- package/apps/harness-dashboard/components/Scene.tsx +156 -35
- package/apps/harness-dashboard/components/brick/BrickDashboard.tsx +149 -0
- package/apps/harness-dashboard/components/brick/reports.tsx +291 -0
- package/apps/harness-dashboard/components/brick/tweaks.tsx +738 -0
- package/apps/harness-dashboard/components/brick/ui.tsx +463 -0
- package/apps/harness-dashboard/components/brick/views-graph.tsx +305 -0
- package/apps/harness-dashboard/components/brick/views-grid.tsx +543 -0
- package/apps/harness-dashboard/components/brick/views-timeline.tsx +238 -0
- package/apps/harness-dashboard/lib/brick/adapter.ts +423 -0
- package/apps/harness-dashboard/lib/brick/contract.ts +247 -0
- package/apps/harness-dashboard/lib/metrics/sampler.ts +545 -0
- package/package.json +1 -1
- package/scripts/harness-worker-dispatch.sh +31 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NextResponse } from "next/server";
|
|
2
|
+
import { sampleMetrics } from "@/lib/metrics/sampler";
|
|
3
|
+
import { resolveHarnessRoot } from "@/lib/harness-root";
|
|
4
|
+
|
|
5
|
+
// node:fs + ps/tmux child_process require the Node.js runtime (not Edge).
|
|
6
|
+
export const runtime = "nodejs";
|
|
7
|
+
export const dynamic = "force-dynamic";
|
|
8
|
+
export const revalidate = 0;
|
|
9
|
+
|
|
10
|
+
export async function GET() {
|
|
11
|
+
const root = resolveHarnessRoot();
|
|
12
|
+
const sample = await sampleMetrics(root);
|
|
13
|
+
return NextResponse.json(sample, {
|
|
14
|
+
status: 200,
|
|
15
|
+
headers: { "Cache-Control": "no-store" },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
/* =============================================================
|
|
2
|
+
walwal-harness · BRICK OFFICE live dashboard
|
|
3
|
+
Verbatim port of the design-handoff <style> block.
|
|
4
|
+
Source: Harness Dashboard.html (design tokens + every view CSS).
|
|
5
|
+
Fonts: IBM Plex Mono / IBM Plex Sans (loaded in the shell layout).
|
|
6
|
+
============================================================= */
|
|
7
|
+
|
|
8
|
+
/* ===================== TOKENS ===================== */
|
|
9
|
+
:root{
|
|
10
|
+
--bg0:#090c11; /* app */
|
|
11
|
+
--bg1:#0d1118; /* panel */
|
|
12
|
+
--bg2:#11161f; /* tile / hover */
|
|
13
|
+
--bg3:#161c27; /* elevated */
|
|
14
|
+
--bd:#1b222d; /* subtle border */
|
|
15
|
+
--bd2:#27303d; /* stronger border */
|
|
16
|
+
--tx-hi:#d7dde6;
|
|
17
|
+
--tx-mid:#8a94a2;
|
|
18
|
+
--tx-lo:#5a6472;
|
|
19
|
+
--tx-faint:#3c4654;
|
|
20
|
+
--ok:#3fd17a;
|
|
21
|
+
--cyan:#4cc2ff;
|
|
22
|
+
--violet:#c084fc;
|
|
23
|
+
--amber:#f0a23b;
|
|
24
|
+
--red:#f0506b;
|
|
25
|
+
--mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
|
|
26
|
+
--sans:'IBM Plex Sans',system-ui,sans-serif;
|
|
27
|
+
--gap:14px;
|
|
28
|
+
--pad:13px;
|
|
29
|
+
--radius:5px;
|
|
30
|
+
--row-h:30px;
|
|
31
|
+
}
|
|
32
|
+
[data-tone="slate"]{ --bg0:#0c0f15; --bg1:#11151d; --bg2:#161b24; --bg3:#1c222d; --bd:#222a36; --bd2:#2e3744; }
|
|
33
|
+
[data-density="compact"]{ --gap:10px; --pad:10px; --row-h:26px; }
|
|
34
|
+
|
|
35
|
+
.brick *{ box-sizing:border-box; }
|
|
36
|
+
.brick{
|
|
37
|
+
background:var(--bg0); color:var(--tx-hi);
|
|
38
|
+
font-family:var(--sans); font-size:13px; line-height:1.45;
|
|
39
|
+
-webkit-font-smoothing:antialiased;
|
|
40
|
+
}
|
|
41
|
+
.brick ::selection{ background:rgba(76,194,255,.25); }
|
|
42
|
+
.brick button{ font-family:inherit; color:inherit; background:none; border:none; cursor:pointer; }
|
|
43
|
+
.brick ::-webkit-scrollbar{ width:9px; height:9px; }
|
|
44
|
+
.brick ::-webkit-scrollbar-thumb{ background:var(--bd2); border-radius:6px; }
|
|
45
|
+
.brick ::-webkit-scrollbar-track{ background:transparent; }
|
|
46
|
+
|
|
47
|
+
/* ===================== SHELL ===================== */
|
|
48
|
+
.app{ height:100vh; display:flex; flex-direction:column; }
|
|
49
|
+
.app-body{ flex:1; display:flex; min-height:0; }
|
|
50
|
+
.app-main{ flex:1; min-width:0; display:flex; flex-direction:column; overflow:hidden; background:
|
|
51
|
+
radial-gradient(1200px 600px at 70% -10%, rgba(76,194,255,.035), transparent 60%); }
|
|
52
|
+
.viewscroll{ flex:1; overflow:auto; padding:var(--gap); }
|
|
53
|
+
.viewscroll-graph{ overflow:hidden; }
|
|
54
|
+
|
|
55
|
+
/* ===================== HEADER ===================== */
|
|
56
|
+
.hdr{
|
|
57
|
+
height:46px; flex:0 0 auto; display:flex; align-items:center; gap:18px;
|
|
58
|
+
padding:0 16px; border-bottom:1px solid var(--bd); background:var(--bg1);
|
|
59
|
+
}
|
|
60
|
+
.hdr-left{ display:flex; align-items:center; gap:12px; min-width:0; }
|
|
61
|
+
.logo{ font-family:var(--mono); font-weight:600; letter-spacing:.22em; font-size:13px; color:var(--tx-hi); white-space:nowrap; }
|
|
62
|
+
.logo-dot{ color:var(--cyan); margin:0 .25em; }
|
|
63
|
+
.hdr-tag{ font-family:var(--mono); font-size:11px; color:var(--cyan); background:rgba(76,194,255,.1); border:1px solid rgba(76,194,255,.2); padding:2px 7px; border-radius:4px; }
|
|
64
|
+
.hdr-crumb{ font-family:var(--mono); font-size:11px; color:var(--tx-lo); white-space:nowrap; }
|
|
65
|
+
|
|
66
|
+
.viewswitch{ display:flex; gap:2px; margin-left:auto; background:var(--bg2); border:1px solid var(--bd); border-radius:6px; padding:2px; }
|
|
67
|
+
.vs-btn{ font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; color:var(--tx-lo); padding:5px 12px; border-radius:4px; transition:.15s; }
|
|
68
|
+
.vs-btn:hover{ color:var(--tx-mid); }
|
|
69
|
+
.vs-btn.is-active{ color:var(--tx-hi); background:var(--bg3); box-shadow:inset 0 0 0 1px var(--bd2); }
|
|
70
|
+
|
|
71
|
+
.hdr-right{ display:flex; align-items:center; gap:8px; }
|
|
72
|
+
.legend{ display:flex; gap:10px; margin-left:6px; padding-left:12px; border-left:1px solid var(--bd); }
|
|
73
|
+
.legend-item{ display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10px; color:var(--tx-lo); text-transform:lowercase; }
|
|
74
|
+
|
|
75
|
+
/* ===================== PILLS / DOTS ===================== */
|
|
76
|
+
.pill{ position:relative; display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10.5px; letter-spacing:.04em; color:var(--tx-mid); background:var(--bg2); border:1px solid var(--bd); padding:3px 8px; border-radius:5px; white-space:nowrap; }
|
|
77
|
+
.pill b{ color:var(--tx-hi); font-weight:600; }
|
|
78
|
+
.pill-glow{ width:6px; height:6px; border-radius:50%; box-shadow:0 0 6px currentColor; }
|
|
79
|
+
.pill-ok{ border-color:rgba(63,209,122,.25); color:#9fe3bd; }
|
|
80
|
+
.pill-ok b{ color:var(--ok); }
|
|
81
|
+
.pill-alert{ border-color:rgba(240,80,107,.3); color:#f5a8b6; }
|
|
82
|
+
.pill-alert b{ color:var(--red); }
|
|
83
|
+
|
|
84
|
+
.dot-wrap{ position:relative; display:inline-flex; align-items:center; justify-content:center; }
|
|
85
|
+
.dot-core{ border-radius:50%; display:block; }
|
|
86
|
+
.dot-pulse{ position:absolute; inset:-2px; border-radius:50%; opacity:.5; animation:pulse 1.8s ease-out infinite; }
|
|
87
|
+
@keyframes pulse{ 0%{ transform:scale(.7); opacity:.55; } 70%,100%{ transform:scale(2.6); opacity:0; } }
|
|
88
|
+
|
|
89
|
+
/* ===================== LABELS / PANELS ===================== */
|
|
90
|
+
.seclabel{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-family:var(--mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--tx-lo); margin:0 0 8px; flex-wrap:nowrap; }
|
|
91
|
+
.seclabel > span:first-child{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
|
|
92
|
+
.seclabel-right{ color:var(--tx-faint); letter-spacing:.06em; white-space:nowrap; flex:0 0 auto; }
|
|
93
|
+
.panel{ background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:var(--pad); display:flex; flex-direction:column; min-height:0; }
|
|
94
|
+
.panel-body{ min-height:0; }
|
|
95
|
+
.panel-body.flush{ margin:-2px; }
|
|
96
|
+
.panel-body.scroll{ overflow:auto; }
|
|
97
|
+
|
|
98
|
+
/* ===================== SIDEBAR ===================== */
|
|
99
|
+
.sidebar{ flex:0 0 232px; background:var(--bg1); border-right:1px solid var(--bd); display:flex; flex-direction:column; transition:flex-basis .18s; overflow:hidden; }
|
|
100
|
+
.sidebar.is-collapsed{ flex-basis:54px; }
|
|
101
|
+
.sb-head{ display:flex; align-items:center; gap:10px; padding:12px; border-bottom:1px solid var(--bd); }
|
|
102
|
+
.sb-avatar{ width:30px; height:30px; flex:0 0 30px; border:1px solid var(--bd2); border-radius:6px; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:11px; color:var(--cyan); background:var(--bg2); }
|
|
103
|
+
.sb-id{ min-width:0; flex:1; }
|
|
104
|
+
.sb-name{ font-size:12.5px; font-weight:600; color:var(--tx-hi); }
|
|
105
|
+
.sb-sub{ font-family:var(--mono); font-size:10px; color:var(--tx-lo); }
|
|
106
|
+
.sb-toggle{ color:var(--tx-lo); font-size:15px; padding:2px 6px; border-radius:4px; }
|
|
107
|
+
.sb-toggle:hover{ color:var(--tx-hi); background:var(--bg2); }
|
|
108
|
+
.sb-list{ flex:1; overflow:auto; padding:8px; display:flex; flex-direction:column; gap:1px; }
|
|
109
|
+
.sb-item{ display:flex; flex-direction:column; gap:3px; text-align:left; padding:7px 9px; border-radius:5px; transition:.12s; border:1px solid transparent; }
|
|
110
|
+
.sb-item:hover{ background:var(--bg2); }
|
|
111
|
+
.sb-item.is-active{ background:var(--bg2); border-color:var(--bd2); }
|
|
112
|
+
.sb-tag{ font-family:var(--mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--tx-faint); }
|
|
113
|
+
.tag-goal{ color:var(--cyan); }
|
|
114
|
+
.tag-hotfix{ color:var(--amber); }
|
|
115
|
+
.tag-submit{ color:var(--violet); }
|
|
116
|
+
.sb-itemname{ font-family:var(--mono); font-size:11.5px; color:var(--tx-mid); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
117
|
+
.sb-item.is-active .sb-itemname{ color:var(--tx-hi); }
|
|
118
|
+
|
|
119
|
+
/* ===================== GLYPH ===================== */
|
|
120
|
+
.glyph{ display:inline-flex; align-items:center; justify-content:center; font-family:var(--mono); font-weight:600; font-size:11px; letter-spacing:.06em; border:1px solid; border-radius:5px; padding:3px 6px; min-width:34px; }
|
|
121
|
+
.glyph-sm{ font-size:10px; padding:2px 5px; min-width:30px; }
|
|
122
|
+
.glyph-lg{ font-size:14px; padding:6px 10px; }
|
|
123
|
+
|
|
124
|
+
/* ===================== HEALTH STRIP ===================== */
|
|
125
|
+
.healthstrip{ display:grid; grid-template-columns:repeat(9,1fr); gap:var(--gap); margin-bottom:var(--gap); }
|
|
126
|
+
.mtile{ background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:10px 12px; min-width:0; }
|
|
127
|
+
.mtile-top{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
|
|
128
|
+
.mtile-label{ font-family:var(--mono); font-size:9.5px; letter-spacing:.1em; color:var(--tx-lo); white-space:nowrap; display:inline-flex; align-items:center; gap:5px; }
|
|
129
|
+
.mtile-tag{ font-family:var(--mono); font-size:8px; letter-spacing:.05em; color:var(--tx-faint); border:1px solid var(--bd); border-radius:3px; padding:0 3px; text-transform:none; }
|
|
130
|
+
.mtile-val{ font-family:var(--mono); font-size:22px; font-weight:600; line-height:1.15; margin-top:6px; letter-spacing:-.01em; }
|
|
131
|
+
.mtile-sub{ font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); }
|
|
132
|
+
.spark{ display:block; }
|
|
133
|
+
|
|
134
|
+
/* ===================== GRID VIEW ===================== */
|
|
135
|
+
.gridview{ display:flex; flex-direction:column; min-height:100%; }
|
|
136
|
+
.gridview > .cadence{ margin-bottom:var(--gap); }
|
|
137
|
+
.gridview-body{ flex:1; display:grid; grid-template-columns:minmax(0,1fr) 348px; gap:var(--gap); min-height:0; }
|
|
138
|
+
.gridview-main{ display:flex; flex-direction:column; gap:var(--gap); min-width:0; }
|
|
139
|
+
.gridview-rail{ display:flex; flex-direction:column; gap:var(--gap); min-height:0; }
|
|
140
|
+
|
|
141
|
+
.acards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(286px,1fr)); gap:var(--gap); }
|
|
142
|
+
.acard{ position:relative; text-align:left; background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:13px; display:flex; flex-direction:column; gap:10px; transition:.15s; overflow:hidden; }
|
|
143
|
+
.acard:hover{ border-color:var(--bd2); background:var(--bg2); }
|
|
144
|
+
.acard.is-alive{ box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--hue) 22%, transparent); }
|
|
145
|
+
.acard.is-alive::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--hue); opacity:.7; }
|
|
146
|
+
.acard-ring{ position:absolute; top:11px; right:13px; width:7px; height:7px; border-radius:50%; background:var(--hue); box-shadow:0 0 0 0 var(--hue); animation:ring 2.2s ease-out infinite; }
|
|
147
|
+
@keyframes ring{ 0%{ box-shadow:0 0 0 0 color-mix(in oklab,var(--hue) 55%,transparent);} 70%,100%{ box-shadow:0 0 0 7px transparent; } }
|
|
148
|
+
.acard-head{ display:flex; align-items:flex-start; gap:10px; }
|
|
149
|
+
.acard-id{ flex:1; min-width:0; }
|
|
150
|
+
.acard-role{ font-size:11px; color:var(--tx-mid); }
|
|
151
|
+
.acard-status{ display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10.5px; margin-top:3px; }
|
|
152
|
+
.acard-hb{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
|
|
153
|
+
.hb-mono{ font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); }
|
|
154
|
+
.hb-mono.is-stale{ color:var(--amber); }
|
|
155
|
+
.acard-work{ font-family:var(--mono); font-size:11.5px; color:var(--tx-hi); background:var(--bg2); border:1px solid var(--bd); border-radius:4px; padding:6px 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
156
|
+
.acard-foot{ display:flex; gap:6px; flex-wrap:wrap; }
|
|
157
|
+
.chip{ font-family:var(--mono); font-size:10px; color:var(--tx-mid); background:var(--bg2); border:1px solid var(--bd); padding:2px 7px; border-radius:4px; white-space:nowrap; }
|
|
158
|
+
.chip b{ color:var(--tx-hi); }
|
|
159
|
+
.chip-warn{ color:var(--amber); border-color:rgba(240,162,59,.3); background:rgba(240,162,59,.08); }
|
|
160
|
+
|
|
161
|
+
/* list mode */
|
|
162
|
+
.arows{ background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); overflow:hidden; }
|
|
163
|
+
.arows-head, .arow{ display:grid; grid-template-columns:84px 96px 70px minmax(0,1fr) 40px 40px 70px 84px; align-items:center; gap:10px; padding:0 12px; }
|
|
164
|
+
.arows-head{ height:30px; font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--tx-faint); border-bottom:1px solid var(--bd); }
|
|
165
|
+
.arow{ height:var(--row-h); border-bottom:1px solid var(--bd); text-align:left; width:100%; transition:.1s; }
|
|
166
|
+
.arow:hover{ background:var(--bg2); }
|
|
167
|
+
.arow:last-child{ border-bottom:none; }
|
|
168
|
+
.arow-status{ display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:11px; }
|
|
169
|
+
.arow-loop, .arow-work{ font-family:var(--mono); font-size:11px; color:var(--tx-mid); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
170
|
+
.arow-work{ color:var(--tx-hi); }
|
|
171
|
+
.arow-num{ font-family:var(--mono); font-size:11px; color:var(--tx-mid); text-align:center; }
|
|
172
|
+
.arow-age{ font-family:var(--mono); font-size:10px; color:var(--tx-faint); }
|
|
173
|
+
.arow-age.is-stale{ color:var(--amber); }
|
|
174
|
+
.arow-spark{ display:flex; justify-content:flex-end; }
|
|
175
|
+
|
|
176
|
+
/* task panel */
|
|
177
|
+
.taskpanel{ }
|
|
178
|
+
.tasksum{ display:flex; gap:18px; padding-bottom:10px; margin-bottom:8px; border-bottom:1px solid var(--bd); }
|
|
179
|
+
.tsum{ display:flex; align-items:baseline; gap:6px; font-family:var(--mono); }
|
|
180
|
+
.tsum b{ font-size:18px; }
|
|
181
|
+
.tsum span{ font-size:10px; color:var(--tx-lo); text-transform:uppercase; letter-spacing:.08em; }
|
|
182
|
+
.tasklist{ display:flex; flex-direction:column; gap:1px; }
|
|
183
|
+
.taskitem{ display:grid; grid-template-columns:14px 42px minmax(0,1fr) 120px; align-items:center; gap:8px; padding:5px 2px; }
|
|
184
|
+
.task-owner{ font-family:var(--mono); font-size:10.5px; font-weight:600; }
|
|
185
|
+
.task-title{ font-size:12px; color:var(--tx-hi); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
186
|
+
.taskitem.is-queued .task-title{ color:var(--tx-mid); }
|
|
187
|
+
.qdot{ width:6px; height:6px; border:1px solid var(--tx-faint); border-radius:50%; margin-left:3px; }
|
|
188
|
+
.task-prog{ display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10px; color:var(--tx-lo); justify-content:flex-end; }
|
|
189
|
+
.task-queuedlbl{ color:var(--tx-faint); text-transform:uppercase; letter-spacing:.08em; font-size:9px; }
|
|
190
|
+
.prog-bar{ width:64px; height:4px; background:var(--bg3); border-radius:3px; overflow:hidden; }
|
|
191
|
+
.prog-fill{ display:block; height:100%; border-radius:3px; transition:width .6s ease; }
|
|
192
|
+
|
|
193
|
+
/* stream */
|
|
194
|
+
.streampanel{ flex:1; min-height:0; }
|
|
195
|
+
.streampanel .panel-body{ height:100%; }
|
|
196
|
+
.stream{ height:100%; overflow:auto; font-family:var(--mono); font-size:11px; padding:2px; display:flex; flex-direction:column; }
|
|
197
|
+
.streamline{ display:grid; grid-template-columns:58px 38px auto; gap:8px; padding:3px 6px; border-radius:4px; align-items:baseline; }
|
|
198
|
+
.streamline:hover{ background:var(--bg2); }
|
|
199
|
+
.streamline.is-new{ animation:slidein .5s ease; background:rgba(76,194,255,.06); }
|
|
200
|
+
@keyframes slidein{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
|
|
201
|
+
.sl-time{ color:var(--tx-faint); }
|
|
202
|
+
.sl-agent{ font-weight:600; }
|
|
203
|
+
.sl-worker{ color:var(--tx-lo); grid-column:2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
204
|
+
.sl-msg{ color:var(--tx-mid); grid-column:3; }
|
|
205
|
+
.sl-obj{ color:var(--tx-hi); }
|
|
206
|
+
.sl-done{ color:var(--ok); }
|
|
207
|
+
|
|
208
|
+
/* alerts */
|
|
209
|
+
.alertpanel{ flex:0 0 auto; }
|
|
210
|
+
.alertlist{ display:flex; flex-direction:column; gap:7px; }
|
|
211
|
+
.alertitem{ position:relative; display:flex; gap:9px; background:var(--bg2); border:1px solid var(--bd); border-radius:5px; padding:8px 10px 8px 9px; overflow:hidden; }
|
|
212
|
+
.alert-bar{ position:absolute; left:0; top:0; bottom:0; width:2px; }
|
|
213
|
+
.alert-body{ flex:1; min-width:0; }
|
|
214
|
+
.alert-top{ display:flex; align-items:center; gap:8px; }
|
|
215
|
+
.alert-agent{ font-family:var(--mono); font-size:10.5px; font-weight:600; }
|
|
216
|
+
.alert-lvl{ font-family:var(--mono); font-size:9px; text-transform:uppercase; letter-spacing:.1em; color:var(--amber); }
|
|
217
|
+
.lvl-attention .alert-lvl{ color:var(--red); }
|
|
218
|
+
.alert-age{ margin-left:auto; font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); }
|
|
219
|
+
.alert-msg{ font-size:11.5px; color:var(--tx-mid); margin-top:2px; }
|
|
220
|
+
|
|
221
|
+
/* ===================== GRAPH VIEW ===================== */
|
|
222
|
+
.graphview{ display:flex; height:100%; gap:var(--gap); min-height:0; }
|
|
223
|
+
.graph-wrap{ position:relative; flex:1; min-width:0; background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius);
|
|
224
|
+
background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,.025) 1px, transparent 0); background-size:26px 26px; overflow:hidden; }
|
|
225
|
+
.graph-edges{ position:absolute; inset:0; pointer-events:none; }
|
|
226
|
+
.gedge{ fill:none; stroke-width:1.3; opacity:.32; }
|
|
227
|
+
.gedge-w{ stroke-width:1; opacity:.2; }
|
|
228
|
+
.gedge.is-active{ opacity:.85; stroke-dasharray:5 7; animation:flow 1.1s linear infinite; }
|
|
229
|
+
.gedge-w.is-active{ opacity:.6; }
|
|
230
|
+
@keyframes flow{ to{ stroke-dashoffset:-24; } }
|
|
231
|
+
|
|
232
|
+
.gnode{ position:absolute; transform:translate(-50%,-50%); display:flex; align-items:center; gap:7px; cursor:pointer; z-index:2; }
|
|
233
|
+
.gnode-ring{ position:absolute; left:17px; top:50%; transform:translate(-50%,-50%); width:38px; height:38px; border-radius:50%; border:1px solid var(--hue); opacity:.3; animation:nodering 2.4s ease-out infinite; }
|
|
234
|
+
@keyframes nodering{ 0%{ transform:translate(-50%,-50%) scale(.6); opacity:.5; } 70%,100%{ transform:translate(-50%,-50%) scale(1.5); opacity:0; } }
|
|
235
|
+
.gnode-root .glyph{ background:var(--bg2); box-shadow:0 0 18px rgba(76,194,255,.25); }
|
|
236
|
+
.gnode-cap{ font-family:var(--mono); font-size:9.5px; color:var(--tx-lo); }
|
|
237
|
+
.gnode-exec .glyph{ background:var(--bg2); transition:.15s; }
|
|
238
|
+
.gnode-exec:hover .glyph{ background:var(--bg3); }
|
|
239
|
+
.gnode-exec.is-sel .glyph{ box-shadow:0 0 0 2px color-mix(in oklab,var(--hue) 60%, transparent), 0 0 16px color-mix(in oklab,var(--hue) 30%, transparent); }
|
|
240
|
+
.gnode-meta{ display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:9.5px; color:var(--tx-lo); }
|
|
241
|
+
.gnode-worker{ gap:6px; transform:translate(0,-50%); }
|
|
242
|
+
.gw-dot{ width:7px; height:7px; border-radius:50%; flex:0 0 7px; }
|
|
243
|
+
.gw-name{ font-family:var(--mono); font-size:10px; color:var(--tx-mid); white-space:nowrap; }
|
|
244
|
+
.gnode-worker:hover .gw-name{ color:var(--tx-hi); }
|
|
245
|
+
.gw-prog{ width:30px; height:3px; background:var(--bg3); border-radius:2px; overflow:hidden; }
|
|
246
|
+
.gw-prog span{ display:block; height:100%; }
|
|
247
|
+
.gnode-worker.is-dim-on .gw-name{ color:var(--tx-hi); }
|
|
248
|
+
.gnode-worker.is-fresh{ animation:spawnpop .6s ease; }
|
|
249
|
+
@keyframes spawnpop{ from{ opacity:0; transform:translate(-10px,-50%) scale(.8); } to{ opacity:1; transform:translate(0,-50%) scale(1); } }
|
|
250
|
+
.graph-legend{ position:absolute; left:12px; bottom:10px; font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); }
|
|
251
|
+
|
|
252
|
+
.graph-detail{ flex:0 0 312px; background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:var(--pad); overflow:auto; }
|
|
253
|
+
.gd-head{ display:flex; align-items:center; gap:11px; margin-bottom:12px; }
|
|
254
|
+
.gd-role{ font-size:12px; color:var(--tx-mid); }
|
|
255
|
+
.gd-status{ display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; margin-top:3px; }
|
|
256
|
+
.gd-work{ font-family:var(--mono); font-size:11.5px; color:var(--tx-hi); background:var(--bg2); border:1px solid var(--bd); border-radius:4px; padding:8px 10px; margin-bottom:13px; }
|
|
257
|
+
.gd-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
|
|
258
|
+
.gd-stats > div{ background:var(--bg2); border:1px solid var(--bd); border-radius:5px; padding:8px; text-align:center; }
|
|
259
|
+
.gd-stats b{ display:block; font-family:var(--mono); font-size:14px; color:var(--tx-hi); }
|
|
260
|
+
.gd-stats span{ font-family:var(--mono); font-size:8.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--tx-lo); }
|
|
261
|
+
.gd-workers{ display:flex; flex-direction:column; gap:4px; margin-bottom:14px; }
|
|
262
|
+
.gd-worker{ display:grid; grid-template-columns:14px minmax(0,1fr) auto; align-items:center; gap:8px; }
|
|
263
|
+
.gd-wname{ font-family:var(--mono); font-size:11px; color:var(--tx-mid); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
264
|
+
.gd-wprog{ display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:9.5px; color:var(--tx-lo); }
|
|
265
|
+
.gd-empty{ font-family:var(--mono); font-size:11px; color:var(--tx-faint); padding:4px 0; }
|
|
266
|
+
.gd-events{ display:flex; flex-direction:column; gap:2px; }
|
|
267
|
+
.gd-ev{ display:grid; grid-template-columns:56px auto; gap:8px; font-family:var(--mono); font-size:10.5px; padding:2px 0; }
|
|
268
|
+
|
|
269
|
+
/* ===================== TIMELINE VIEW ===================== */
|
|
270
|
+
.timelineview{ display:flex; flex-direction:column; gap:var(--gap); min-height:100%; }
|
|
271
|
+
.cadence{ background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:var(--pad); }
|
|
272
|
+
.cad-row{ display:grid; grid-template-columns:repeat(24,1fr); gap:3px; }
|
|
273
|
+
.cad-cell{ height:20px; border:1px solid var(--bd); border-radius:2px; }
|
|
274
|
+
.cad-axis{ display:flex; justify-content:space-between; font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); margin-top:6px; }
|
|
275
|
+
|
|
276
|
+
.swim{ flex:1; background:var(--bg1); border:1px solid var(--bd); border-radius:var(--radius); padding:var(--pad); display:flex; flex-direction:column; min-height:0; }
|
|
277
|
+
.swim-axis{ display:flex; height:18px; }
|
|
278
|
+
.swim-axis-pad{ flex:0 0 170px; }
|
|
279
|
+
.swim-axis-track{ position:relative; flex:1; }
|
|
280
|
+
.swim-tick{ position:absolute; top:0; transform:translateX(-50%); font-family:var(--mono); font-size:9.5px; color:var(--tx-faint); }
|
|
281
|
+
.swim-tick:first-child{ transform:none; }
|
|
282
|
+
.swim-rows{ flex:1; overflow:auto; }
|
|
283
|
+
.swim-row{ display:flex; align-items:center; height:23px; cursor:pointer; border-radius:3px; }
|
|
284
|
+
.swim-row:hover{ background:var(--bg2); }
|
|
285
|
+
.swim-row.is-exec{ height:26px; }
|
|
286
|
+
.swim-label{ flex:0 0 170px; display:flex; align-items:center; gap:7px; padding-right:10px; overflow:hidden; }
|
|
287
|
+
.swim-wlabel{ display:flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10px; color:var(--tx-lo); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
288
|
+
.swim-tree{ color:var(--tx-faint); }
|
|
289
|
+
.swim-track{ position:relative; flex:1; height:100%; }
|
|
290
|
+
.swim-gridlines span{ position:absolute; top:0; bottom:0; width:1px; background:var(--bd); opacity:.5; }
|
|
291
|
+
.swim-block{ position:absolute; top:50%; transform:translateY(-50%); height:9px; border-radius:2px; }
|
|
292
|
+
.swim-row.is-exec .swim-block{ height:11px; }
|
|
293
|
+
.swim-live{ position:absolute; top:50%; transform:translateY(-50%); width:4px; height:13px; border-radius:1px; box-shadow:0 0 6px currentColor; animation:slidein .5s ease; }
|
|
294
|
+
.swim-now-prog{ position:absolute; left:0; top:50%; transform:translateY(-50%); width:3px; height:13px; border-radius:1px; opacity:.8; }
|
|
295
|
+
|
|
296
|
+
/* ===================== AGENT CARD WORKERS ===================== */
|
|
297
|
+
.acard-workers{ display:flex; flex-direction:column; gap:1px; border-top:1px solid var(--bd); border-bottom:1px solid var(--bd); padding:5px 0; margin:-1px 0; }
|
|
298
|
+
.wrow{ display:grid; grid-template-columns:12px minmax(0,1fr) 46px 32px; align-items:center; gap:7px; padding:3px 4px; border-radius:4px; text-align:left; width:100%; transition:.1s; }
|
|
299
|
+
.wrow:hover{ background:var(--bg3); }
|
|
300
|
+
.wrow-name{ font-family:var(--mono); font-size:10px; color:var(--tx-mid); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
301
|
+
.wrow:hover .wrow-name{ color:var(--tx-hi); }
|
|
302
|
+
.prog-bar-sm{ width:46px; height:3px; }
|
|
303
|
+
.wrow-pct{ font-family:var(--mono); font-size:9px; color:var(--tx-lo); text-align:right; }
|
|
304
|
+
.chip-read{ color:var(--cyan); border-color:rgba(76,194,255,.25); margin-left:auto; }
|
|
305
|
+
.acard:hover .chip-read{ background:rgba(76,194,255,.08); }
|
|
306
|
+
|
|
307
|
+
/* list sub-rows */
|
|
308
|
+
.arow-sub{ grid-template-columns:84px 96px 70px minmax(0,1fr) 40px 40px 70px 84px; background:transparent; }
|
|
309
|
+
.arow-sub:hover{ background:var(--bg2); }
|
|
310
|
+
.arow-subname{ font-family:var(--mono); font-size:10px; color:var(--tx-lo); padding-left:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
311
|
+
.arow-subwork{ color:var(--tx-mid) !important; font-size:10px; }
|
|
312
|
+
.arow-subprog .prog-bar{ width:70px; }
|
|
313
|
+
|
|
314
|
+
/* clickable resets */
|
|
315
|
+
.taskitem, .streamline, .alertitem{ width:100%; text-align:left; cursor:pointer; font:inherit; }
|
|
316
|
+
.taskitem:hover{ background:var(--bg2); border-radius:4px; }
|
|
317
|
+
.streamline{ border:none; background:none; }
|
|
318
|
+
|
|
319
|
+
/* graph read button */
|
|
320
|
+
.gd-read{ margin-left:auto; align-self:flex-start; font-family:var(--mono); font-size:9.5px; color:var(--cyan); border:1px solid rgba(76,194,255,.25); border-radius:4px; padding:4px 7px; transition:.12s; }
|
|
321
|
+
.gd-read:hover{ background:rgba(76,194,255,.1); }
|
|
322
|
+
.gd-worker, .gd-ev{ width:100%; text-align:left; cursor:pointer; }
|
|
323
|
+
.gd-worker:hover .gd-wname, .gd-ev:hover .sl-msg{ color:var(--tx-hi); }
|
|
324
|
+
|
|
325
|
+
/* ===================== DOC VIEWER ===================== */
|
|
326
|
+
.docroot{ position:fixed; inset:0; z-index:60; }
|
|
327
|
+
.docback{ position:absolute; inset:0; background:rgba(4,6,9,.55); backdrop-filter:blur(2px); animation:fade .2s ease; }
|
|
328
|
+
@keyframes fade{ from{ opacity:0; } to{ opacity:1; } }
|
|
329
|
+
.docview{ position:absolute; top:0; right:0; bottom:0; width:min(720px,68vw); background:var(--bg1); border-left:1px solid var(--bd2); box-shadow:-30px 0 60px rgba(0,0,0,.5); display:flex; flex-direction:column; animation:slidein-r .24s cubic-bezier(.2,.7,.3,1); }
|
|
330
|
+
@keyframes slidein-r{ from{ transform:translateX(40px); opacity:.4; } to{ transform:none; opacity:1; } }
|
|
331
|
+
.docview::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--hue); opacity:.8; }
|
|
332
|
+
.docview-bar{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; height:44px; padding:0 16px; border-bottom:1px solid var(--bd); }
|
|
333
|
+
.docview-crumb{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--tx-lo); }
|
|
334
|
+
.dv-sep{ margin:0 6px; color:var(--tx-faint); }
|
|
335
|
+
.docview-x{ font-family:var(--mono); font-size:10.5px; color:var(--tx-lo); border:1px solid var(--bd); border-radius:5px; padding:4px 9px; }
|
|
336
|
+
.docview-x:hover{ color:var(--tx-hi); background:var(--bg2); }
|
|
337
|
+
.docview-scroll{ flex:1; overflow:auto; padding:22px 30px 40px; }
|
|
338
|
+
.docview-meta{ display:flex; align-items:center; gap:12px; padding-bottom:16px; margin-bottom:18px; border-bottom:1px solid var(--bd); }
|
|
339
|
+
.dvm-id{ flex:1; }
|
|
340
|
+
.dvm-kind{ font-size:12px; color:var(--tx-mid); }
|
|
341
|
+
.dvm-status{ display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; margin-top:3px; }
|
|
342
|
+
.dvm-time{ font-family:var(--mono); font-size:10.5px; color:var(--tx-faint); }
|
|
343
|
+
.dvm-workers{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; align-items:center; }
|
|
344
|
+
.dvm-wlabel{ font-family:var(--mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--tx-faint); margin-right:4px; }
|
|
345
|
+
.dvm-wchip{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; color:var(--tx-mid); background:var(--bg2); border:1px solid var(--bd); border-radius:5px; padding:4px 9px; transition:.12s; }
|
|
346
|
+
.dvm-wchip:hover{ color:var(--tx-hi); border-color:var(--bd2); background:var(--bg3); }
|
|
347
|
+
.dvm-wchip em{ font-style:normal; color:var(--tx-lo); }
|
|
348
|
+
|
|
349
|
+
/* markdown */
|
|
350
|
+
.md{ font-size:13.5px; line-height:1.62; color:var(--tx-mid); max-width:62ch; }
|
|
351
|
+
.md h2{ font-size:19px; font-weight:600; color:var(--tx-hi); margin:4px 0 12px; letter-spacing:-.01em; }
|
|
352
|
+
.md h3{ font-size:14px; font-weight:600; color:var(--tx-hi); margin:24px 0 8px; }
|
|
353
|
+
.md h4{ font-size:12px; font-weight:600; color:var(--tx-mid); margin:18px 0 6px; text-transform:uppercase; letter-spacing:.06em; }
|
|
354
|
+
.md p{ margin:0 0 12px; }
|
|
355
|
+
.md ul, .md ol{ margin:0 0 14px; padding-left:20px; }
|
|
356
|
+
.md li{ margin:4px 0; }
|
|
357
|
+
.md li::marker{ color:var(--tx-faint); }
|
|
358
|
+
.md code{ font-family:var(--mono); font-size:11.5px; color:var(--cyan); background:var(--bg2); border:1px solid var(--bd); border-radius:3px; padding:1px 5px; }
|
|
359
|
+
.md b{ color:var(--tx-hi); font-weight:600; }
|
|
360
|
+
.md hr{ border:none; border-top:1px solid var(--bd); margin:18px 0; }
|
|
361
|
+
.md blockquote{ margin:0 0 14px; padding:8px 14px; border-left:2px solid var(--hue,#4cc2ff); background:var(--bg2); border-radius:0 5px 5px 0; color:var(--tx-mid); font-size:12.5px; }
|
|
362
|
+
|
|
363
|
+
/* ===================== TWEAKS OVERRIDE ACCENTS ===================== */
|
|
364
|
+
.om-tweak-panel, .tweaks-panel{ font-family:var(--mono) !important; }
|
|
365
|
+
|
|
366
|
+
/* ===================== TWEAKS PANEL (ported from tweaks-panel.jsx) ===================== */
|
|
367
|
+
.twk-panel{ position:fixed; right:16px; bottom:16px; z-index:2147483646; width:280px;
|
|
368
|
+
max-height:calc(100vh - 32px); display:flex; flex-direction:column;
|
|
369
|
+
transform:scale(var(--dc-inv-zoom,1)); transform-origin:bottom right;
|
|
370
|
+
background:rgba(250,249,247,.78); color:#29261b;
|
|
371
|
+
-webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
|
|
372
|
+
border:.5px solid rgba(255,255,255,.6); border-radius:14px;
|
|
373
|
+
box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 12px 40px rgba(0,0,0,.18);
|
|
374
|
+
font:11.5px/1.4 ui-sans-serif,system-ui,-apple-system,sans-serif; overflow:hidden; }
|
|
375
|
+
.twk-hd{ display:flex; align-items:center; justify-content:space-between;
|
|
376
|
+
padding:10px 8px 10px 14px; cursor:move; user-select:none; }
|
|
377
|
+
.twk-hd b{ font-size:12px; font-weight:600; letter-spacing:.01em; }
|
|
378
|
+
.twk-x{ appearance:none; border:0; background:transparent; color:rgba(41,38,27,.55);
|
|
379
|
+
width:22px; height:22px; border-radius:6px; cursor:default; font-size:13px; line-height:1; }
|
|
380
|
+
.twk-x:hover{ background:rgba(0,0,0,.06); color:#29261b; }
|
|
381
|
+
.twk-body{ padding:2px 14px 14px; display:flex; flex-direction:column; gap:10px;
|
|
382
|
+
overflow-y:auto; overflow-x:hidden; min-height:0;
|
|
383
|
+
scrollbar-width:thin; scrollbar-color:rgba(0,0,0,.15) transparent; }
|
|
384
|
+
.twk-body::-webkit-scrollbar{ width:8px; }
|
|
385
|
+
.twk-body::-webkit-scrollbar-track{ background:transparent; margin:2px; }
|
|
386
|
+
.twk-body::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.15); border-radius:4px;
|
|
387
|
+
border:2px solid transparent; background-clip:content-box; }
|
|
388
|
+
.twk-body::-webkit-scrollbar-thumb:hover{ background:rgba(0,0,0,.25);
|
|
389
|
+
border:2px solid transparent; background-clip:content-box; }
|
|
390
|
+
.twk-row{ display:flex; flex-direction:column; gap:5px; }
|
|
391
|
+
.twk-row-h{ flex-direction:row; align-items:center; justify-content:space-between; gap:10px; }
|
|
392
|
+
.twk-lbl{ display:flex; justify-content:space-between; align-items:baseline;
|
|
393
|
+
color:rgba(41,38,27,.72); }
|
|
394
|
+
.twk-lbl>span:first-child{ font-weight:500; }
|
|
395
|
+
.twk-val{ color:rgba(41,38,27,.5); font-variant-numeric:tabular-nums; }
|
|
396
|
+
|
|
397
|
+
.twk-sect{ font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
|
|
398
|
+
color:rgba(41,38,27,.45); padding:10px 0 0; }
|
|
399
|
+
.twk-sect:first-child{ padding-top:0; }
|
|
400
|
+
|
|
401
|
+
.twk-field{ appearance:none; box-sizing:border-box; width:100%; min-width:0; height:26px; padding:0 8px;
|
|
402
|
+
border:.5px solid rgba(0,0,0,.1); border-radius:7px;
|
|
403
|
+
background:rgba(255,255,255,.6); color:inherit; font:inherit; outline:none; }
|
|
404
|
+
.twk-field:focus{ border-color:rgba(0,0,0,.25); background:rgba(255,255,255,.85); }
|
|
405
|
+
select.twk-field{ padding-right:22px;
|
|
406
|
+
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='rgba(0,0,0,.5)' d='M0 0h10L5 6z'/></svg>");
|
|
407
|
+
background-repeat:no-repeat; background-position:right 8px center; }
|
|
408
|
+
|
|
409
|
+
.twk-slider{ appearance:none; -webkit-appearance:none; width:100%; height:4px; margin:6px 0;
|
|
410
|
+
border-radius:999px; background:rgba(0,0,0,.12); outline:none; }
|
|
411
|
+
.twk-slider::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none;
|
|
412
|
+
width:14px; height:14px; border-radius:50%; background:#fff;
|
|
413
|
+
border:.5px solid rgba(0,0,0,.12); box-shadow:0 1px 3px rgba(0,0,0,.2); cursor:default; }
|
|
414
|
+
.twk-slider::-moz-range-thumb{ width:14px; height:14px; border-radius:50%;
|
|
415
|
+
background:#fff; border:.5px solid rgba(0,0,0,.12); box-shadow:0 1px 3px rgba(0,0,0,.2); cursor:default; }
|
|
416
|
+
|
|
417
|
+
.twk-seg{ position:relative; display:flex; padding:2px; border-radius:8px;
|
|
418
|
+
background:rgba(0,0,0,.06); user-select:none; }
|
|
419
|
+
.twk-seg-thumb{ position:absolute; top:2px; bottom:2px; border-radius:6px;
|
|
420
|
+
background:rgba(255,255,255,.9); box-shadow:0 1px 2px rgba(0,0,0,.12);
|
|
421
|
+
transition:left .15s cubic-bezier(.3,.7,.4,1),width .15s; }
|
|
422
|
+
.twk-seg.dragging .twk-seg-thumb{ transition:none; }
|
|
423
|
+
.twk-seg button{ appearance:none; position:relative; z-index:1; flex:1; border:0;
|
|
424
|
+
background:transparent; color:inherit; font:inherit; font-weight:500; min-height:22px;
|
|
425
|
+
border-radius:6px; cursor:default; padding:4px 6px; line-height:1.2;
|
|
426
|
+
overflow-wrap:anywhere; }
|
|
427
|
+
|
|
428
|
+
.twk-toggle{ position:relative; width:32px; height:18px; border:0; border-radius:999px;
|
|
429
|
+
background:rgba(0,0,0,.15); transition:background .15s; cursor:default; padding:0; }
|
|
430
|
+
.twk-toggle[data-on="1"]{ background:#34c759; }
|
|
431
|
+
.twk-toggle i{ position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%;
|
|
432
|
+
background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:transform .15s; }
|
|
433
|
+
.twk-toggle[data-on="1"] i{ transform:translateX(14px); }
|
|
434
|
+
|
|
435
|
+
.twk-num{ display:flex; align-items:center; box-sizing:border-box; min-width:0; height:26px; padding:0 0 0 8px;
|
|
436
|
+
border:.5px solid rgba(0,0,0,.1); border-radius:7px; background:rgba(255,255,255,.6); }
|
|
437
|
+
.twk-num-lbl{ font-weight:500; color:rgba(41,38,27,.6); cursor:ew-resize;
|
|
438
|
+
user-select:none; padding-right:8px; }
|
|
439
|
+
.twk-num input{ flex:1; min-width:0; height:100%; border:0; background:transparent;
|
|
440
|
+
font:inherit; font-variant-numeric:tabular-nums; text-align:right; padding:0 8px 0 0;
|
|
441
|
+
outline:none; color:inherit; -moz-appearance:textfield; }
|
|
442
|
+
.twk-num input::-webkit-inner-spin-button,.twk-num input::-webkit-outer-spin-button{
|
|
443
|
+
-webkit-appearance:none; margin:0; }
|
|
444
|
+
.twk-num-unit{ padding-right:8px; color:rgba(41,38,27,.45); }
|
|
445
|
+
|
|
446
|
+
.twk-btn{ appearance:none; height:26px; padding:0 12px; border:0; border-radius:7px;
|
|
447
|
+
background:rgba(0,0,0,.78); color:#fff; font:inherit; font-weight:500; cursor:default; }
|
|
448
|
+
.twk-btn:hover{ background:rgba(0,0,0,.88); }
|
|
449
|
+
.twk-btn.secondary{ background:rgba(0,0,0,.06); color:inherit; }
|
|
450
|
+
.twk-btn.secondary:hover{ background:rgba(0,0,0,.1); }
|
|
451
|
+
|
|
452
|
+
.twk-swatch{ appearance:none; -webkit-appearance:none; width:56px; height:22px;
|
|
453
|
+
border:.5px solid rgba(0,0,0,.1); border-radius:6px; padding:0; cursor:default;
|
|
454
|
+
background:transparent; flex-shrink:0; }
|
|
455
|
+
.twk-swatch::-webkit-color-swatch-wrapper{ padding:0; }
|
|
456
|
+
.twk-swatch::-webkit-color-swatch{ border:0; border-radius:5.5px; }
|
|
457
|
+
.twk-swatch::-moz-color-swatch{ border:0; border-radius:5.5px; }
|
|
458
|
+
|
|
459
|
+
.twk-chips{ display:flex; gap:6px; }
|
|
460
|
+
.twk-chip{ position:relative; appearance:none; flex:1; min-width:0; height:46px;
|
|
461
|
+
padding:0; border:0; border-radius:6px; overflow:hidden; cursor:default;
|
|
462
|
+
box-shadow:0 0 0 .5px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.06);
|
|
463
|
+
transition:transform .12s cubic-bezier(.3,.7,.4,1),box-shadow .12s; }
|
|
464
|
+
.twk-chip:hover{ transform:translateY(-1px);
|
|
465
|
+
box-shadow:0 0 0 .5px rgba(0,0,0,.18),0 4px 10px rgba(0,0,0,.12); }
|
|
466
|
+
.twk-chip[data-on="1"]{ box-shadow:0 0 0 1.5px rgba(0,0,0,.85),0 2px 6px rgba(0,0,0,.15); }
|
|
467
|
+
.twk-chip>span{ position:absolute; top:0; bottom:0; right:0; width:34%;
|
|
468
|
+
display:flex; flex-direction:column; box-shadow:-1px 0 0 rgba(0,0,0,.1); }
|
|
469
|
+
.twk-chip>span>i{ flex:1; box-shadow:0 -1px 0 rgba(0,0,0,.1); }
|
|
470
|
+
.twk-chip>span>i:first-child{ box-shadow:none; }
|
|
471
|
+
.twk-chip svg{ position:absolute; top:6px; left:6px; width:13px; height:13px;
|
|
472
|
+
filter:drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
|
|
473
|
+
|
|
474
|
+
/* Floating toggle that re-opens the panel after it is dismissed. */
|
|
475
|
+
.twk-fab{ position:fixed; right:16px; bottom:16px; z-index:2147483645;
|
|
476
|
+
appearance:none; height:30px; padding:0 14px; border:.5px solid rgba(255,255,255,.6);
|
|
477
|
+
border-radius:999px; background:rgba(250,249,247,.78); color:#29261b;
|
|
478
|
+
-webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
|
|
479
|
+
box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 8px 24px rgba(0,0,0,.18);
|
|
480
|
+
font:11.5px/1 ui-sans-serif,system-ui,-apple-system,sans-serif; font-weight:600;
|
|
481
|
+
letter-spacing:.01em; cursor:default; }
|
|
482
|
+
.twk-fab:hover{ background:rgba(250,249,247,.92); }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import type { Metadata } from "next";
|
|
3
3
|
import "./globals.css";
|
|
4
|
+
import "./brick.css";
|
|
4
5
|
import { resolveHarnessRoot } from "@/lib/harness-root";
|
|
5
6
|
|
|
6
7
|
export async function generateMetadata(): Promise<Metadata> {
|
|
@@ -19,6 +20,18 @@ export default function RootLayout({
|
|
|
19
20
|
}) {
|
|
20
21
|
return (
|
|
21
22
|
<html lang="ko">
|
|
23
|
+
<head>
|
|
24
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
25
|
+
<link
|
|
26
|
+
rel="preconnect"
|
|
27
|
+
href="https://fonts.gstatic.com"
|
|
28
|
+
crossOrigin="anonymous"
|
|
29
|
+
/>
|
|
30
|
+
<link
|
|
31
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap"
|
|
32
|
+
rel="stylesheet"
|
|
33
|
+
/>
|
|
34
|
+
</head>
|
|
22
35
|
<body>{children}</body>
|
|
23
36
|
</html>
|
|
24
37
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readHarnessState } from "@/lib/harness-state";
|
|
2
2
|
import { resolveHarnessRoot } from "@/lib/harness-root";
|
|
3
|
-
import {
|
|
3
|
+
import { BrickDashboard } from "@/components/brick/BrickDashboard";
|
|
4
4
|
|
|
5
5
|
export const dynamic = "force-dynamic";
|
|
6
6
|
export const revalidate = 0;
|
|
@@ -25,7 +25,7 @@ export default function Page() {
|
|
|
25
25
|
<div className="mt-1 text-[10px] opacity-60">{banner.message_en}</div>
|
|
26
26
|
</div>
|
|
27
27
|
)}
|
|
28
|
-
<
|
|
28
|
+
<BrickDashboard initialSnapshot={snapshot} />
|
|
29
29
|
</main>
|
|
30
30
|
);
|
|
31
31
|
}
|