codex-copilot-dx 1.2.8 → 1.2.10
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/README.md +3 -3
- package/docs/ARCHITECTURE.md +31 -3
- package/docs/REFERENCE.md +36 -10
- package/package.json +1 -1
- package/src/cli-m365.mjs +5 -0
- package/src/dashboard/animation.js +186 -0
- package/src/dashboard/console.js +50 -19
- package/src/dashboard/index.html +106 -84
- package/src/dashboard/language.js +56 -5
- package/src/dashboard/status.js +60 -25
- package/src/dashboard/time.js +16 -0
- package/src/dashboard/tools.js +7 -3
- package/src/dashboard/ui.css +56 -14
- package/src/dashboard/ui.js +78 -211
- package/src/dashboard/updates.js +3 -3
- package/src/dashboard/usage.js +2 -2
- package/src/dashboard-api.mjs +4 -2
- package/src/dashboard.mjs +2 -0
- package/src/optional-routes.mjs +1 -1
- package/src/provider-descriptors.mjs +24 -0
- package/src/provider-runtime.mjs +10 -22
- package/src/providers/m365-catalog-diagnostic.mjs +38 -0
- package/src/providers/m365.mjs +8 -3
package/src/dashboard/status.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
function create({ element, phrase, localize, text, finite, number, mib, tableRow, emptyTable, document, navigator }) {
|
|
2
|
+
function create({ time, element, phrase, localize, text, finite, number, mib, tableRow, emptyTable, document, navigator }) {
|
|
3
3
|
let contextRequests = [];
|
|
4
4
|
let contextCompactions = {};
|
|
5
5
|
let failureSignature;
|
|
@@ -12,35 +12,32 @@
|
|
|
12
12
|
unknown: "unknown", unconfigured: "not_configured", ready: "ready", checking: "checking", unsupported: "unsupported",
|
|
13
13
|
configured: "configured", preserved: "existing_settings_kept", partially_preserved: "existing_settings_kept",
|
|
14
14
|
restored: "settings_restored", not_installed: "not_installed", configuration_unavailable: "setup_unavailable", not_configured: "unknown", standby: "standby" };
|
|
15
|
-
const auth = element("provider-auth"), clients = element("provider-clients"), requests = element("provider-requests");
|
|
16
|
-
auth.replaceChildren();clients.replaceChildren();requests.replaceChildren();
|
|
15
|
+
const auth = element("provider-auth"), clients = element("provider-clients"), requests = element("provider-requests"), claudeClients = element("claude-clients");
|
|
16
|
+
auth.replaceChildren();clients.replaceChildren();requests.replaceChildren();claudeClients?.replaceChildren();
|
|
17
|
+
const applications = new Map();
|
|
17
18
|
for (const provider of providers) {
|
|
18
19
|
sourceNames.set(provider.id, provider.name);
|
|
19
20
|
const identity = provider.auth || {};
|
|
20
21
|
const authRow = tableRow([provider.name, identity.account || "—", states[identity.state] || "unknown",
|
|
21
|
-
states[provider.state] || "unknown", identity.checked_at
|
|
22
|
+
states[provider.state] || "unknown", time(identity.checked_at, { date: true }), duration(identity.expires_in_ms)], { labels: [2, 3] });
|
|
23
|
+
authRow.setAttribute("data-provider", provider.id);
|
|
22
24
|
if (provider.reason) {
|
|
23
|
-
const network = provider.network_diagnostic;
|
|
25
|
+
const network = provider.network_diagnostic, catalog = provider.catalog_diagnostic;
|
|
24
26
|
localize(authRow.children[3], "state_reason", { state: phrase(states[provider.state] || "unknown"),
|
|
25
|
-
reason: network ? phrase(`network_cause_${network.cause_code}`) : provider.reason });
|
|
27
|
+
reason: catalog ? phrase(`catalog_cause_${catalog.cause_code}`) : network ? phrase(`network_cause_${network.cause_code}`) : provider.reason });
|
|
26
28
|
if (network) localize(authRow.children[3], "network_detail", { source: phrase(`network_source_${network.source}`),
|
|
27
29
|
stage: phrase(`network_stage_${network.stage}`), code: network.cause_code, category: provider.reason }, "title");
|
|
28
30
|
}
|
|
29
31
|
if (globalThis.ccdxIcons) {
|
|
30
32
|
globalThis.ccdxIcons.set(authRow.children[2], states[identity.state] || "unknown", globalThis.ccdxIcons.kind(identity.state));
|
|
31
33
|
globalThis.ccdxIcons.set(authRow.children[3], provider.reason ? "state_reason" : states[provider.state] || "unknown", globalThis.ccdxIcons.kind(provider.state),
|
|
32
|
-
provider.reason ? { state: phrase(states[provider.state] || "unknown"), reason: provider.network_diagnostic ? phrase(`network_cause_${provider.network_diagnostic.cause_code}`) : provider.reason } : {});
|
|
34
|
+
provider.reason ? { state: phrase(states[provider.state] || "unknown"), reason: provider.catalog_diagnostic ? phrase(`catalog_cause_${provider.catalog_diagnostic.cause_code}`) : provider.network_diagnostic ? phrase(`network_cause_${provider.network_diagnostic.cause_code}`) : provider.reason } : {});
|
|
33
35
|
}
|
|
34
36
|
auth.append(authRow);
|
|
35
37
|
for (const client of provider.clients || []) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (globalThis.ccdxIcons) {
|
|
40
|
-
globalThis.ccdxIcons.set(row.children[2], client.reason ? "state_reason" : states[client.state] || client.state, globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
41
|
-
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(row.children[3], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
42
|
-
}
|
|
43
|
-
clients.append(row);
|
|
38
|
+
const id = client.id || client.name;
|
|
39
|
+
if (!applications.has(id)) applications.set(id, []);
|
|
40
|
+
applications.get(id).push({ provider, client });
|
|
44
41
|
}
|
|
45
42
|
if (provider.requests) {
|
|
46
43
|
const item = document.createElement("p");
|
|
@@ -49,11 +46,32 @@
|
|
|
49
46
|
requests.append(item);
|
|
50
47
|
}
|
|
51
48
|
}
|
|
49
|
+
for (const entries of applications.values()) {
|
|
50
|
+
const selected = entries.find(entry => entry.client.selected === true) || (entries.length === 1 ? entries[0] : null);
|
|
51
|
+
const client = selected?.client || { name: entries[0].client.name, state: "unknown" };
|
|
52
|
+
const row = tableRow([client.name, selected?.provider.name || "—", states[client.state] || "unknown",
|
|
53
|
+
client.gateway || "—", time(client.last_request_at)], { labels: [2, 3] });
|
|
54
|
+
if (client.reason) localize(row.children[2], "state_reason", { state: phrase(states[client.state] || "unknown"), reason: client.reason });
|
|
55
|
+
if (globalThis.ccdxIcons) {
|
|
56
|
+
globalThis.ccdxIcons.set(row.children[2], client.reason ? "state_reason" : states[client.state] || "unknown", globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
57
|
+
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(row.children[3], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
58
|
+
}
|
|
59
|
+
clients.append(row);
|
|
60
|
+
if (String(client.id || "").startsWith("claude_")) {
|
|
61
|
+
const detail = tableRow([client.name, states[client.state] || "unknown", client.gateway || "—", time(client.last_request_at)], { labels: [1, 2] });
|
|
62
|
+
if (client.reason) localize(detail.children[1], "state_reason", { state: phrase(states[client.state] || "unknown"), reason: client.reason });
|
|
63
|
+
if (globalThis.ccdxIcons) {
|
|
64
|
+
globalThis.ccdxIcons.set(detail.children[1], client.reason ? "state_reason" : states[client.state] || "unknown", globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
65
|
+
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(detail.children[2], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
66
|
+
}
|
|
67
|
+
claudeClients?.append(detail);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (element("claude-client-state")) element("claude-client-state").hidden = Boolean(claudeClients?.children.length);
|
|
52
71
|
text("source-summary", "count_providers", { count: providers.length });
|
|
53
72
|
element("source-detail").replaceChildren(...providers.map(provider => {
|
|
54
73
|
const item = document.createElement("span");item.textContent = provider.name;return item;
|
|
55
74
|
}));
|
|
56
|
-
text("auth-account", "provider_status_scope");
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
function duration(value) {
|
|
@@ -101,7 +119,7 @@
|
|
|
101
119
|
const title = document.createElement("summary");
|
|
102
120
|
const summary = {
|
|
103
121
|
detail: phrase("time_model_code", {
|
|
104
|
-
time: failure.at ?
|
|
122
|
+
time: failure.at ? time(failure.at, { date: true }) : phrase("unknown_time"),
|
|
105
123
|
model: failure.model ? String(failure.model).slice(0, 80) : phrase("unknown_model"),
|
|
106
124
|
code: failure.code ? String(failure.code).slice(0, 80) : phrase("unknown_error"),
|
|
107
125
|
}),
|
|
@@ -206,7 +224,7 @@
|
|
|
206
224
|
const routes = { ...data.stream_performance?.by_route, ...claudeMetrics?.by_route };
|
|
207
225
|
for (const [protocol, route] of Object.entries(routes)) for (const [source, stats] of Object.entries(route.by_provider || {})) {
|
|
208
226
|
const totals = stats.terminal_outcomes.totals;
|
|
209
|
-
sourceBody.append(tableRow([source, protocol, number(stats.active), ...["completed", "incomplete", "failed", "cancelled", "unknown"].map(outcome => number(totals[outcome]))]));
|
|
227
|
+
sourceBody.append(tableRow([sourceNames.get(source) || source, protocol, number(stats.active), ...["completed", "incomplete", "failed", "cancelled", "unknown"].map(outcome => number(totals[outcome]))]));
|
|
210
228
|
}
|
|
211
229
|
if (!sourceBody.children.length) emptyTable("source-requests-body", 8, "no_requests_observed");
|
|
212
230
|
}
|
|
@@ -246,7 +264,7 @@
|
|
|
246
264
|
const note = element("prediction-note");
|
|
247
265
|
if (note) note.textContent = prediction?.reason || "";
|
|
248
266
|
}
|
|
249
|
-
text("updated", "snapshot_time", { time:
|
|
267
|
+
text("updated", "snapshot_time", { time: time(Date.now()) });
|
|
250
268
|
}
|
|
251
269
|
|
|
252
270
|
function renderContext(performance) {
|
|
@@ -259,10 +277,11 @@
|
|
|
259
277
|
text("context-note", "20_latest_finished_requests_compactions_completed_completed_inco", {
|
|
260
278
|
completed: number(contextCompactions.completed), incomplete: number(contextCompactions.incomplete), failed: number(contextCompactions.failed),
|
|
261
279
|
});
|
|
262
|
-
if (element("request-context")?.open === false) return;
|
|
280
|
+
if (element("request-context")?.open === false || element("request-context")?.closest?.("[hidden]")) return;
|
|
263
281
|
const signature = JSON.stringify(contextRequests);
|
|
264
282
|
if (signature === contextSignature) return;
|
|
265
283
|
contextSignature = signature;
|
|
284
|
+
const expanded = new Set([...(body.querySelectorAll?.("details[open]") || [])].map(details => details.getAttribute("data-request-key")));
|
|
266
285
|
body.replaceChildren();
|
|
267
286
|
for (const request of contextRequests) {
|
|
268
287
|
const context = request.context || {};
|
|
@@ -270,12 +289,28 @@
|
|
|
270
289
|
? request.outcome[0].toUpperCase() + request.outcome.slice(1) : "unknown";
|
|
271
290
|
const ratio = finite(context.input_tokens) && finite(context.context_window_tokens) && Number(context.context_window_tokens) > 0
|
|
272
291
|
? `${(100 * Number(context.input_tokens) / Number(context.context_window_tokens)).toFixed(1)}%` : "—";
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
outcome], { labels: [
|
|
292
|
+
const at = Date.parse(request.at);
|
|
293
|
+
const row = tableRow([Number.isFinite(at) ? time(at) : "—",
|
|
294
|
+
String(sourceNames.get(request.provider) || request.provider || "—").slice(0, 80),
|
|
295
|
+
String(request.model || "unknown").slice(0, 80), outcome, number(context.input_tokens), ""], { labels: [3] });
|
|
296
|
+
const wireFailure = Number.isInteger(request.http_status) && request.http_status >= 400;
|
|
297
|
+
if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], wireFailure ? "request_http_failure" : outcome.toLowerCase(),
|
|
298
|
+
wireFailure ? "warning" : globalThis.ccdxIcons.kind(outcome.toLowerCase()), wireFailure ? { status: request.http_status } : {});
|
|
299
|
+
else if (wireFailure) localize(row.children[3], "request_http_failure", { status: request.http_status });
|
|
300
|
+
const details = document.createElement("details"), summary = document.createElement("summary"), fields = document.createElement("dl");
|
|
301
|
+
const key = String(request.request_id || `${request.at || ""}/${request.provider || ""}/${request.model || ""}`).slice(0, 256);
|
|
302
|
+
details.setAttribute?.("data-request-key", key);details.open = expanded.has(key);
|
|
303
|
+
details.className = "request-details";fields.className = "failure-detail";
|
|
304
|
+
localize(summary, "request_metadata");details.append(summary, fields);
|
|
305
|
+
for (const [key, value] of [["request_id", request.request_id || "—"], ["http_status", number(request.http_status)], ["attempts", number(request.upstream_attempts)], ["model_outcome", globalThis.ccdxLanguage?.format(outcome.toLowerCase()) || outcome],
|
|
306
|
+
["time", Number.isFinite(at) ? time(at, { date: true }) : "—"],
|
|
307
|
+
["wire_mib", finite(context.payload_bytes) ? `${(Number(context.payload_bytes) / 1048576).toFixed(2)} MiB` : "—"],
|
|
308
|
+
["images", number(context.images)], ["model_window", number(context.context_window_tokens)], ["input_window", ratio]]) {
|
|
309
|
+
const term = document.createElement("dt"), detail = document.createElement("dd");localize(term, key);detail.textContent = value;fields.append(term, detail);
|
|
310
|
+
}
|
|
311
|
+
row.children[5].append(details);body.append(row);
|
|
277
312
|
}
|
|
278
|
-
if (!contextRequests.length) emptyTable("context-body",
|
|
313
|
+
if (!contextRequests.length) emptyTable("context-body", 6, "no_observed_request_metadata");
|
|
279
314
|
}
|
|
280
315
|
return { render, renderProviders, renderFailures, renderContext };
|
|
281
316
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const formats = new Map();
|
|
3
|
+
function format(value, { date = false } = {}) {
|
|
4
|
+
if (value === null || value === undefined || value === "") return "—";
|
|
5
|
+
const instant = new Date(value);
|
|
6
|
+
if (!Number.isFinite(instant.getTime())) return "—";
|
|
7
|
+
const locale = document.documentElement.lang?.startsWith("zh") ? "zh-CN" : "en-US";
|
|
8
|
+
const key = `${locale}/${date}`;
|
|
9
|
+
if (!formats.has(key)) formats.set(key, new Intl.DateTimeFormat(locale, {
|
|
10
|
+
...(date ? { year: "numeric", month: "2-digit", day: "2-digit" } : {}),
|
|
11
|
+
hour: "2-digit", minute: "2-digit", second: "2-digit", hourCycle: "h23",
|
|
12
|
+
}));
|
|
13
|
+
return formats.get(key).format(instant);
|
|
14
|
+
}
|
|
15
|
+
globalThis.ccdxTime = { format };
|
|
16
|
+
})();
|
package/src/dashboard/tools.js
CHANGED
|
@@ -34,14 +34,18 @@
|
|
|
34
34
|
text("github-account-hint", !data.saved ? "tools_login_hint" : invalid ? "tools_saved_not_valid" : failed ? "tools_access_hint" : "tools_account_hint");
|
|
35
35
|
const fields = el("github-account-fields");fields.replaceChildren();
|
|
36
36
|
field(fields, "tools_saved_signin", data.saved ? "saved_locally" : "tools_not_signed_in", data.saved ? "ok" : "unavailable");
|
|
37
|
-
for (const [id, key] of [["
|
|
37
|
+
for (const [id, key] of [["access", "tools_copilot_access"], ["models", "tools_catalog_read"]]) {
|
|
38
38
|
const result = online?.stages?.[id] || "not_checked";
|
|
39
39
|
field(fields, key, result === "passed" ? "tools_verified" : result === "invalid" ? "tools_signin_invalid" : result === "unavailable" ? "tools_unavailable" : "tools_not_checked",
|
|
40
40
|
result === "passed" ? "ok" : result === "invalid" ? "warning" : result === "unavailable" ? "unavailable" : "unknown");
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
status("github-identity-detail", online?.stages?.identity === "passed" ? "tools_verified" : invalid ? "tools_signin_invalid" : "tools_not_checked",
|
|
43
|
+
online?.stages?.identity === "passed" ? "ok" : invalid ? "warning" : "unknown");
|
|
44
|
+
el("github-checked-at").textContent = data.checked_at ? time(data.checked_at, { date: true }) : "—";
|
|
43
45
|
label(el("github-signin"), data.saved ? "tools_reauth" : "tools_login");
|
|
44
46
|
el("github-signin").hidden = data.saved && !invalid;
|
|
47
|
+
el("github-force-reauth").hidden = !data.saved || invalid;
|
|
48
|
+
if (data.saved && !invalid && !failed) el("github-account-hint").textContent = "";
|
|
45
49
|
el("github-signin").disabled = pending || activeFlow();el("github-check").disabled = pending || activeFlow() || !data.saved;
|
|
46
50
|
el("github-logout").disabled = pending || activeFlow() || !data.saved;
|
|
47
51
|
el("github-force-reauth").disabled = pending || activeFlow();
|
|
@@ -102,7 +106,7 @@
|
|
|
102
106
|
details.append(disclosure);row.append(name, result, details);body.append(row);
|
|
103
107
|
}
|
|
104
108
|
if (!groups.size) text("checks-note", "tools_checks_empty");
|
|
105
|
-
else text("checks-note", "tools_checks_completed", { time:
|
|
109
|
+
else text("checks-note", "tools_checks_completed", { time: time(data.checked_at) });
|
|
106
110
|
}
|
|
107
111
|
async function localAction(action, button) {
|
|
108
112
|
button.disabled = true;text("checks-note", "checking");
|
package/src/dashboard/ui.css
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* { box-sizing: border-box; }
|
|
4
4
|
[hidden] { display: none !important; }
|
|
5
5
|
body { margin: 0; color: var(--text); background: var(--page); font-size: 13px; }
|
|
6
|
+
html { scrollbar-gutter: stable; }
|
|
7
|
+
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
|
|
6
8
|
.shell { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
|
|
7
9
|
.topbar { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--top-border); }
|
|
8
10
|
.brand { color: var(--accent); font-size: 16px; font-weight: 750; letter-spacing: .07em; white-space: nowrap; }
|
|
@@ -15,7 +17,8 @@ body { margin: 0; color: var(--text); background: var(--page); font-size: 13px;
|
|
|
15
17
|
button { border: 1px solid var(--button-border); border-radius: 2px; background: var(--button-bg); color: var(--button-fg); padding: 8px 13px; font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
|
|
16
18
|
button:hover { background: var(--button-hover); }
|
|
17
19
|
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
18
|
-
button:disabled { opacity: .55; cursor:
|
|
20
|
+
button:disabled { opacity: .55; cursor: default; }
|
|
21
|
+
button[aria-busy="true"] { cursor: progress; }
|
|
19
22
|
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; }
|
|
20
23
|
.icon-button:hover { background: transparent; color: var(--accent); }
|
|
21
24
|
.icon-button svg { width: 18px; height: 18px; }
|
|
@@ -53,10 +56,9 @@ h1 { margin: 0; font-size: clamp(20px, 3vw, 27px); font-weight: 650; letter-spac
|
|
|
53
56
|
.heading-actions { display: flex; align-items: center; gap: 16px; }
|
|
54
57
|
.heading-actions button { padding: 5px 9px; }
|
|
55
58
|
.animation-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
|
|
56
|
-
.theme-option { display: grid; grid-template-columns:
|
|
57
|
-
.theme-option
|
|
58
|
-
.theme-option[aria-pressed="true"]
|
|
59
|
-
.theme-option[aria-pressed="true"]::before { content: "●"; color: var(--accent-soft); }
|
|
59
|
+
.theme-option { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; width: 100%; border: 1px solid var(--border); padding: 10px; background: transparent; color: var(--text); text-align: center; text-transform: none; font-size: 12px; cursor: pointer; }
|
|
60
|
+
.theme-option[aria-pressed="true"], .theme-option[aria-pressed="true"]:hover { border-color: var(--accent); background: var(--accent); color: var(--page); }
|
|
61
|
+
.theme-option[aria-pressed="true"] .theme-name, .theme-option[aria-pressed="true"] small, .theme-option[aria-pressed="true"] .theme-preview, .theme-option[aria-pressed="true"] .theme-preview span { color: var(--page); }
|
|
60
62
|
.theme-option:hover { background: var(--option-hover); }
|
|
61
63
|
.theme-name { color: var(--text); font-size: 11px; white-space: nowrap; }
|
|
62
64
|
.theme-name small { display: block; color: var(--subtle); font-size: 9px; margin-top: 2px; }
|
|
@@ -103,7 +105,10 @@ details[open] > summary::before { content: "−"; }
|
|
|
103
105
|
.analytics-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
|
|
104
106
|
.analytics-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
|
|
105
107
|
.analytics-controls label { color: var(--muted); font-size: 11px; }
|
|
106
|
-
select { max-width: 260px; padding:
|
|
108
|
+
select { appearance: none; -webkit-appearance: none; max-width: 260px; min-height: 36px; padding: 7px 30px 7px 10px; font: inherit; color: var(--text); background-color: var(--surface); border: 1px solid var(--button-border); border-radius: 0; box-shadow: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 13px) 15px, calc(100% - 9px) 15px; background-size: 4px 4px; background-repeat: no-repeat; }
|
|
109
|
+
select:focus { border-color: var(--accent); border-radius: 0; box-shadow: none; }
|
|
110
|
+
select:focus:not(:focus-visible) { outline: none; }
|
|
111
|
+
select option { color: var(--text); background: var(--surface); }
|
|
107
112
|
.chart-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 22px 0 10px; }
|
|
108
113
|
.chart-heading h3 { margin: 0; color: var(--heading); font-size: 11px; }
|
|
109
114
|
.chart-heading span, .chart-legend { color: var(--muted); font-size: 10px; }
|
|
@@ -151,14 +156,22 @@ footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color:
|
|
|
151
156
|
.timing-stats dt { white-space: nowrap; }
|
|
152
157
|
|
|
153
158
|
.provider-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
|
|
154
|
-
.provider-tabs
|
|
159
|
+
.provider-tabs button, .install-platforms button { text-align: center; }
|
|
160
|
+
.provider-tabs [aria-selected="true"], .provider-tabs [aria-selected="true"]:hover, .install-platforms [aria-pressed="true"], .install-platforms [aria-pressed="true"]:hover { color: var(--page); border-color: var(--accent); background: var(--accent); }
|
|
161
|
+
.model-catalog table, .model-catalog td { color: var(--text); font-size: 13px; background: var(--surface); }
|
|
162
|
+
.model-catalog th { color: var(--text); font-size: 12px; }
|
|
163
|
+
.model-catalog > summary h2 { color: var(--strong); }
|
|
164
|
+
.model-catalog .model-name { color: var(--strong); font-weight: 600; }
|
|
165
|
+
.model-catalog td:last-child { white-space: normal; }
|
|
166
|
+
.model-catalog td details { margin: 0; }
|
|
167
|
+
.model-catalog .failure-detail { min-width: 200px; }
|
|
155
168
|
#provider-auth td, #provider-clients td { overflow-wrap: anywhere; }
|
|
156
169
|
.details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
157
170
|
@media (max-width: 700px) { .details { grid-template-columns: 1fr; } }
|
|
158
171
|
|
|
159
172
|
/* Each view has one scope. The sidebar stays separate from business data. */
|
|
160
173
|
[hidden] { display: none !important; }
|
|
161
|
-
.shell { max-width: 1520px; display: grid; grid-template-columns: 204px minmax(0, 1fr); column-gap: 34px; padding: 0 28px; }
|
|
174
|
+
.shell { max-width: 1520px; min-height: 100vh; display: grid; grid-template-columns: 204px minmax(0, 1fr); grid-template-rows: 76px minmax(0, 1fr) auto; column-gap: 34px; padding: 0 28px; }
|
|
162
175
|
.sidebar { grid-row: 1 / 4; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 24px 0; border-right: 1px solid var(--border); }
|
|
163
176
|
.sidebar-brand { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 12px; color: var(--accent); text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: .04em; }
|
|
164
177
|
.sidebar-brand .brand-caption { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; margin-top: 8px; }
|
|
@@ -169,10 +182,28 @@ footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color:
|
|
|
169
182
|
.sidebar nav a:focus-visible, .sidebar-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
170
183
|
.nav-group { color: var(--subtle); font-size: 10px; padding: 18px 12px 4px; text-transform: uppercase; letter-spacing: .08em; }
|
|
171
184
|
.topbar, main, footer { grid-column: 2; min-width: 0; }
|
|
172
|
-
.topbar { min-height: 76px; gap: 14px; }
|
|
185
|
+
.topbar { height: 76px; min-height: 76px; gap: 14px; position: sticky; top: 0; z-index: 5; background: var(--page); }
|
|
173
186
|
.brand { font-size: 12px; }
|
|
174
|
-
.topbar-actions { gap: 12px; }
|
|
175
|
-
.
|
|
187
|
+
.topbar-actions { gap: 12px; flex-wrap: nowrap; }
|
|
188
|
+
.topbar-actions #connection { width: 154px; flex: none; }
|
|
189
|
+
.topbar-actions #auto-refresh { width: 164px; flex: none; }
|
|
190
|
+
.intro { display: block; padding: 32px 0 26px; min-height: 132px; }
|
|
191
|
+
.intro .page-description { margin-top: 14px; line-height: 1.7; }
|
|
192
|
+
main { align-self: start; }
|
|
193
|
+
.section-link { display: inline-block; color: var(--accent); font-size: 12px; text-underline-offset: 3px; }
|
|
194
|
+
.section-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
195
|
+
.model-summary strong { color: var(--strong); }
|
|
196
|
+
.panel h3 { color: var(--heading); font-size: 12px; font-weight: 650; margin: 0; }
|
|
197
|
+
.setting-row + .tool-details { border-top: 0; padding-top: 0; }
|
|
198
|
+
.diagnostic-section + .diagnostic-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
|
|
199
|
+
.diagnostic-section > strong { display: block; color: var(--strong); font-size: 23px; margin-top: 16px; }
|
|
200
|
+
.usage-source-controls { margin: 0 0 20px; }
|
|
201
|
+
.chart-heading { flex-wrap: wrap; align-items: end; }
|
|
202
|
+
.chart-heading .analytics-controls { margin: 0; }
|
|
203
|
+
.chart-heading label { display: grid; gap: 6px; color: var(--muted); }
|
|
204
|
+
.request-details { min-width: 190px; max-width: 340px; white-space: normal; }
|
|
205
|
+
.request-details .failure-detail { grid-template-columns: minmax(95px, auto) minmax(0, 1fr); margin-bottom: 0; }
|
|
206
|
+
.request-details .failure-detail dd { overflow-wrap: anywhere; }
|
|
176
207
|
.snapshot-meta { justify-content: flex-start; margin-top: 14px; line-height: 1.7; }
|
|
177
208
|
.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
178
209
|
.client-overview { grid-template-columns: 1fr; }
|
|
@@ -193,7 +224,8 @@ input[role="switch"]:checked::before { left: 19px; background: var(--accent); }
|
|
|
193
224
|
input[role="switch"]:focus-visible, input[type="number"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
194
225
|
input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
195
226
|
#process-queues { overflow-wrap: anywhere; font-size: 11px; }
|
|
196
|
-
@media (max-width:
|
|
227
|
+
@media (max-width: 1100px) { .topbar .brand { display: none; } .topbar { justify-content: flex-end; } }
|
|
228
|
+
@media (max-width: 900px) { .shell { grid-template-columns: 170px minmax(0, 1fr); column-gap: 20px; padding: 0 20px; } .setting-row { grid-template-columns: minmax(0, 1fr) 44px; } .setting-row .hint { grid-column: 1 / -1; } .overview { grid-template-columns: 1fr; } .shell { grid-template-rows: 96px minmax(0, 1fr) auto; } .topbar { height: 96px; } .topbar-actions { display: grid; grid-template-columns: 32px 32px minmax(0, 1fr) auto; gap: 8px 9px; width: 100%; } .topbar-actions #connection { grid-column: 1 / -1; width: auto; } .topbar-actions #auto-refresh { width: auto; min-width: 0; padding-inline: 8px; } }
|
|
197
229
|
@media (max-width: 640px) { .shell { display: block; padding: 0 16px; } .sidebar { position: static; height: auto; padding: 20px 0 14px; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar-brand { font-size: 20px; width: fit-content; } .sidebar-brand .brand-caption { margin-top: 4px; } .sidebar nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; margin-top: 16px; } .sidebar nav a { padding: 9px 10px; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; } .sidebar nav a[aria-current="page"] { border-bottom-color: var(--accent); } .nav-group { display: none; } .topbar { min-height: 62px; justify-content: flex-start; } .topbar-actions { justify-content: flex-start; gap: 9px; } .intro { padding: 24px 0 18px; } .panel, .lower { padding: 17px; } .section-actions > label { width: 100%; } .stats { gap: 12px; } }
|
|
198
230
|
|
|
199
231
|
/* Keep forms aligned with the existing dashboard controls. */
|
|
@@ -205,6 +237,8 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
|
205
237
|
.analytics-controls select { box-sizing: border-box; height: 36px; min-height: 36px; line-height: normal; }
|
|
206
238
|
.section-actions button { padding-top: 0; padding-bottom: 0; }
|
|
207
239
|
@media (max-width: 640px) {
|
|
240
|
+
.topbar { height: 96px; padding: 8px 0; }
|
|
241
|
+
.topbar-actions { justify-content: initial; }
|
|
208
242
|
.section-actions > label { flex: 1 1 180px; }
|
|
209
243
|
.section-actions select { max-width: 100%; }
|
|
210
244
|
}
|
|
@@ -237,7 +271,7 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
|
237
271
|
.appearance-label { min-width:0; }
|
|
238
272
|
.appearance-label label { display:block; font-size:13px; color:var(--text); line-height:1.65; }
|
|
239
273
|
.appearance-label p { margin:4px 0 0; font-size:12px; color:var(--subtle); line-height:1.7; }
|
|
240
|
-
.appearance-select { width:100%; max-width:100%; min-width:0; height:36px; box-sizing:border-box; border-radius:
|
|
274
|
+
.appearance-select { width:100%; max-width:100%; min-width:0; height:36px; box-sizing:border-box; border-radius:0; padding:0 30px 0 10px; font-size:12px; }
|
|
241
275
|
.appearance-note { color:var(--subtle); margin:17px 0 0; font-size:12px; line-height:1.7; }
|
|
242
276
|
.appearance-animation { margin-top:22px; border-top:1px solid var(--border); padding-top:18px; }
|
|
243
277
|
.terminal-animation-toggle { border-bottom:0; }
|
|
@@ -344,7 +378,7 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
|
344
378
|
.state-label > span { color:inherit; white-space:normal; }
|
|
345
379
|
.badge:has(.state-label)::before { display:none; }
|
|
346
380
|
.source-browse-note { margin:12px 0 20px; }
|
|
347
|
-
.account-name { margin:18px 0 6px; font-size:19px; color:var(--strong); font-weight:650; }
|
|
381
|
+
.account-name { margin:18px 0 6px; font-size:19px; color:var(--strong); font-weight:650; overflow-wrap:anywhere; }
|
|
348
382
|
.account-fields { display:grid; grid-template-columns:minmax(110px,150px) minmax(0,1fr); gap:10px 18px; margin:20px 0; font-size:12px; line-height:1.7; }
|
|
349
383
|
.account-fields dt { color:var(--muted); }
|
|
350
384
|
.account-fields dd { margin:0; min-width:0; }
|
|
@@ -358,3 +392,11 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
|
358
392
|
.checks-table th:nth-child(2) { width:21%; }
|
|
359
393
|
.checks-table details p { margin:8px 0; }
|
|
360
394
|
@media(max-width:640px) { .account-fields { grid-template-columns:100px minmax(0,1fr); gap:10px; } .checks-table { min-width:530px; } }
|
|
395
|
+
|
|
396
|
+
.account-summary { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
|
|
397
|
+
.account-summary div { min-width: 0; }
|
|
398
|
+
.account-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
|
|
399
|
+
.account-summary dd { margin: 0; font-size: 12px; }
|
|
400
|
+
.account-summary .state-label { gap: 6px; }
|
|
401
|
+
.source-account-actions { margin-top: 18px; }
|
|
402
|
+
@media(max-width:640px) { .account-summary { grid-template-columns:1fr; } }
|