kaizen-agent 1.61.3 → 1.61.4
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/package.json +1 -1
- package/web/board/cards.ts +1 -0
- package/web/board/dom.ts +43 -0
- package/web/board/icebox.ts +12 -7
- package/web/board/ideas.ts +6 -3
- package/web/board/panel.ts +3 -1
- package/web/board/phone.ts +6 -1
- package/web/board.html +19 -17
- package/web/board.js +59 -59
- package/web/notebook.js +19 -19
- package/web/notes.html +1 -1
- package/web/term.js +1 -1
- package/web/video.html +1 -1
- package/web/video.js +17 -17
package/package.json
CHANGED
package/web/board/cards.ts
CHANGED
|
@@ -433,6 +433,7 @@ const runHtml = (c) =>
|
|
|
433
433
|
export function runPopup(c) {
|
|
434
434
|
const dl = modal(runHtml(c)),
|
|
435
435
|
f = dl.querySelector("form");
|
|
436
|
+
dl.classList.toggle("sheet", isPhone());
|
|
436
437
|
const go = (kind) => {
|
|
437
438
|
// startRun reads the Yolo switch, so the dialog closes after it has.
|
|
438
439
|
void startRun(c, kind);
|
package/web/board/dom.ts
CHANGED
|
@@ -77,3 +77,46 @@ export const motion = () => {
|
|
|
77
77
|
// fn as a view transition where the browser has them and motion is on; resolves once the DOM is updated.
|
|
78
78
|
export const vt = (fn: () => void): Promise<void> =>
|
|
79
79
|
motion() && document.startViewTransition ? document.startViewTransition(fn).updateCallbackDone : (fn(), Promise.resolve());
|
|
80
|
+
|
|
81
|
+
// Paging for a long list: one state per list, its size remembered per browser.
|
|
82
|
+
const PAGE_SIZES = [5, 25, 50, 100];
|
|
83
|
+
export function pager(id: string) {
|
|
84
|
+
let size = 25;
|
|
85
|
+
try {
|
|
86
|
+
const n = Number(localStorage.getItem("kz-page:" + id));
|
|
87
|
+
if (PAGE_SIZES.includes(n)) size = n;
|
|
88
|
+
} catch {}
|
|
89
|
+
return { id, size, at: 0, total: 0 };
|
|
90
|
+
}
|
|
91
|
+
type Pager = ReturnType<typeof pager>;
|
|
92
|
+
// The page of items showing; a list that shrank pulls the page back into range.
|
|
93
|
+
export function pageOf<T>(p: Pager, items: T[]): T[] {
|
|
94
|
+
p.total = items.length;
|
|
95
|
+
p.at = Math.max(0, Math.min(p.at, Math.ceil(items.length / p.size) - 1));
|
|
96
|
+
return items.slice(p.at * p.size, (p.at + 1) * p.size);
|
|
97
|
+
}
|
|
98
|
+
export function pagerHtml(p: Pager) {
|
|
99
|
+
if (p.total <= PAGE_SIZES[0]) return "";
|
|
100
|
+
const from = p.at * p.size + 1,
|
|
101
|
+
to = Math.min(p.total, from + p.size - 1);
|
|
102
|
+
return html`<div class="kpager" id="pg-${p.id}"><label>Rows<select class="sel" aria-label="Rows per page">${PAGE_SIZES.map((n) => html`<option${n === p.size ? raw(" selected") : ""}>${n}</option>`)}</select></label><span>${from}–${to} of ${p.total}</span><button class="btn sm" type="button" data-to="-1"${p.at ? "" : raw(" disabled")}>Prev</button><button class="btn sm" type="button" data-to="1"${to < p.total ? "" : raw(" disabled")}>Next</button></div>`;
|
|
103
|
+
}
|
|
104
|
+
export function wirePager(p: Pager, redraw: () => void) {
|
|
105
|
+
const box = $("pg-" + p.id);
|
|
106
|
+
if (!box) return;
|
|
107
|
+
box.querySelector("select").onchange = (e) => {
|
|
108
|
+
p.size = +(e.target as HTMLSelectElement).value;
|
|
109
|
+
p.at = 0;
|
|
110
|
+
try {
|
|
111
|
+
localStorage.setItem("kz-page:" + p.id, String(p.size));
|
|
112
|
+
} catch {}
|
|
113
|
+
redraw();
|
|
114
|
+
};
|
|
115
|
+
box.querySelectorAll<HTMLElement>("[data-to]").forEach(
|
|
116
|
+
(b) =>
|
|
117
|
+
(b.onclick = () => {
|
|
118
|
+
p.at += +b.dataset.to!;
|
|
119
|
+
redraw();
|
|
120
|
+
}),
|
|
121
|
+
);
|
|
122
|
+
}
|
package/web/board/icebox.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { termStop } from "./agent-term.ts";
|
|
|
3
3
|
import { load, post } from "./api.ts";
|
|
4
4
|
import { via } from "./cards.ts";
|
|
5
5
|
import { mic, stopDictation } from "./dictation.ts";
|
|
6
|
-
import { $, dataUrls, html, ico, modal, motion, raw, SKEL } from "./dom.ts";
|
|
6
|
+
import { $, dataUrls, html, ico, modal, motion, pageOf, pager, pagerHtml, raw, SKEL, wirePager } from "./dom.ts";
|
|
7
7
|
import { ideaCombo, newDir, plogo, setShown, short, showable } from "./projects.ts";
|
|
8
8
|
import { playSound, soundPick, toast } from "./toast.ts";
|
|
9
9
|
import { go, view } from "./views.ts";
|
|
@@ -22,6 +22,7 @@ const SRC = "Icebox";
|
|
|
22
22
|
// The reply style is per project: a promo voice in one need not leak into another's drafts.
|
|
23
23
|
let iceReply = null;
|
|
24
24
|
const iceStyle = {};
|
|
25
|
+
const icePg = pager("icebox");
|
|
25
26
|
const rStyle = (dir) => {
|
|
26
27
|
if (!iceStyle[dir])
|
|
27
28
|
try {
|
|
@@ -289,7 +290,10 @@ export async function openSources() {
|
|
|
289
290
|
groups.get(k).push(i);
|
|
290
291
|
});
|
|
291
292
|
// Rows in the order they are drawn, which is the order j and k walk.
|
|
292
|
-
const
|
|
293
|
+
const filtered = [...groups.values()].flat();
|
|
294
|
+
// Only the page: j and k, select-all and bulk actions stay on what shows.
|
|
295
|
+
const order = pageOf(icePg, filtered);
|
|
296
|
+
const onPage = new Set(order);
|
|
293
297
|
const isWaiting = (it) => !["promoted", "dismissed", "done"].includes(it.status);
|
|
294
298
|
// A checked request a filter hides is unchecked: a bulk action only ever acts on what shows.
|
|
295
299
|
{
|
|
@@ -375,12 +379,12 @@ export async function openSources() {
|
|
|
375
379
|
waiting && !order.length
|
|
376
380
|
? html`<div class="ice-zero"><h4>No matches</h4><p style="margin-top:10px"><button class="btn sm" id="ice-unf">Clear filters</button></p></div>`
|
|
377
381
|
: order.length
|
|
378
|
-
? html`<div class="tk-list ice-list">${[...groups].map(([g, ix]) => html`<div class="ice-cat">${g}<i>${ix.length}</i></div>${ix.map(row)}`)}</div>`
|
|
382
|
+
? html`<div class="tk-list ice-list">${[...groups].map(([g, ix]) => (ix.some((i) => onPage.has(i)) ? html`<div class="ice-cat">${g}<i>${ix.length}</i></div>${ix.filter((i) => onPage.has(i)).map(row)}` : ""))}${pagerHtml(icePg)}</div>`
|
|
379
383
|
: html`<div class="ice-zero"><h4>Nothing waiting</h4><p>Requests gathered from your sources wait here until you turn them into ideas.</p>${list.length ? "" : html`<p style="margin-top:10px"><button class="btn sm pri" id="ice-addsrc">${ico("plus")} Add a source</button></p>`}</div>`;
|
|
380
384
|
// Swipe: the waiting requests the filters show, least skipped first; a restored one
|
|
381
385
|
// comes back on top. Nothing is written by a skip.
|
|
382
386
|
const deck = iceSwipe
|
|
383
|
-
?
|
|
387
|
+
? filtered.filter((i) => isWaiting(ice[i])).sort((a, b) => (iceSwipe.skip.get(iceKey(ice[a])) || 0) - (iceSwipe.skip.get(iceKey(ice[b])) || 0))
|
|
384
388
|
: [];
|
|
385
389
|
// The card always names its project: a swipe decides for that project's Ideas.
|
|
386
390
|
const pName = (it) => it.project || store.S.projects.find((p) => p.dir === it.dir)?.label || "";
|
|
@@ -409,17 +413,17 @@ export async function openSources() {
|
|
|
409
413
|
const s = Math.round((Date.now() - S.t0) / 1000),
|
|
410
414
|
took = s < 60 ? s + " s" : Math.floor(s / 60) + " min " + (s % 60) + " s";
|
|
411
415
|
const bits = motion() ? html`<div class="sw-confetti" aria-hidden="true">${Array.from({ length: 14 }, (_, n) => raw(`<i style="--x:${(n * 37) % 100}%;--d:${(n % 5) * 0.08}s;--h:${(n * 53) % 360}"></i>`))}</div>` : "";
|
|
412
|
-
return html`<div class="sw-zero">${S.n ? bits : ""}<h4
|
|
416
|
+
return html`<div class="sw-zero">${S.n ? bits : ""}<h4>Icebox zero</h4><p>${S.n ? `${S.n} sorted · ${S.pro} promoted · ${S.dis} dismissed · in ${took}` : "Nothing waiting here."}</p>${S.days ? html`<p>${S.days}-day streak${S.days > 1 ? " — cleared every day" : ""}</p>` : ""}<p style="margin-top:14px"><button class="btn pri sm" id="sw-back">Back to list</button></p></div>`;
|
|
413
417
|
};
|
|
414
418
|
const swipe = () => {
|
|
415
419
|
const S = iceSwipe,
|
|
416
420
|
total = S.n + deck.length,
|
|
417
421
|
pop = S.pop;
|
|
418
422
|
S.pop = false;
|
|
419
|
-
const top = html`<div class="sw-top"><button class="btn ghost sm" id="sw-x" title="Back to the list (Esc)">← List</button><div class="sw-prog" role="progressbar" aria-valuemin="0" aria-valuemax="${total}" aria-valuenow="${S.n}"><i style="width:${total ? Math.round((S.n / total) * 100) : 100}%"></i></div><span class="sw-of">${deck.length ? `${S.n + 1} of ${total}` : `${total} of ${total}`}</span><span class="sw-streak" title="Sorted this session"
|
|
423
|
+
const top = html`<div class="sw-top"><button class="btn ghost sm" id="sw-x" title="Back to the list (Esc)">← List</button><div class="sw-prog" role="progressbar" aria-valuemin="0" aria-valuemax="${total}" aria-valuenow="${S.n}"><i style="width:${total ? Math.round((S.n / total) * 100) : 100}%"></i></div><span class="sw-of">${deck.length ? `${S.n + 1} of ${total}` : `${total} of ${total}`}</span><span class="sw-streak" title="Sorted this session">${S.n} sorted${pop ? html`<b class="sw-plus">+1</b>` : ""}</span></div>`;
|
|
420
424
|
if (!deck.length) return html`<div class="sw" id="sw">${top}${swZero()}</div>`;
|
|
421
425
|
const b = (id, cls, icon, label, key, off = false) =>
|
|
422
|
-
html`<button class="sw-b ${cls}" id="${id}" aria-label="${label} (${key})" title="${label} (${key})"${off ? " disabled" : ""}><span>${icon}</span><small>${label}</small></button>`;
|
|
426
|
+
html`<button class="sw-b ${cls}" id="${id}" aria-label="${label} (${key})" title="${label} (${key})"${off ? " disabled" : ""}><span>${icon}</span><small>${label}</small><kbd>${key}</kbd></button>`;
|
|
423
427
|
return html`<div class="sw" id="sw">${top}<div class="sw-stack">${deck[1] !== undefined ? swCard(deck[1], true) : ""}${swCard(deck[0], false)}</div><div class="sw-acts">${b("sw-d", "dis", ico("x"), "Dismiss", "←")}${b("sw-s", "", "↓", "Skip", "↓", deck.length < 2)}${b("sw-u", "", ico("restore"), "Undo", "z", !S.last)}${b("sw-p", "pro", ico("check"), "Promote", "→")}</div></div>`;
|
|
424
428
|
};
|
|
425
429
|
// The sources, in the right-hand drawer: shut until asked for. Slid in only when opened;
|
|
@@ -708,6 +712,7 @@ export async function openSources() {
|
|
|
708
712
|
openSources();
|
|
709
713
|
};
|
|
710
714
|
}
|
|
715
|
+
wirePager(icePg, openSources);
|
|
711
716
|
if ($("ice-all"))
|
|
712
717
|
$("ice-all").onchange = () => {
|
|
713
718
|
const k = order.map((i) => iceKey(ice[i]));
|
package/web/board/ideas.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// signal it came from (its `idea` text or `run` id); one typed by hand is "Manual".
|
|
4
4
|
// The data is the rail's (workspace.ts): no fetch of its own.
|
|
5
5
|
import { store } from "./store.ts";
|
|
6
|
-
import { $, html, ico, raw } from "./dom.ts";
|
|
6
|
+
import { $, html, ico, pageOf, pager, pagerHtml, raw, wirePager } from "./dom.ts";
|
|
7
7
|
import { age, NAMES } from "./labels.ts";
|
|
8
8
|
import { key, runPopup } from "./cards.ts";
|
|
9
9
|
import { load, post } from "./api.ts";
|
|
@@ -41,6 +41,7 @@ function sourcesOf(cards, d) {
|
|
|
41
41
|
|
|
42
42
|
// Keyboard: the row picked with the arrow keys (from the search box or the page), Enter acts on it.
|
|
43
43
|
let sel = 0;
|
|
44
|
+
const pg = pager("ideas");
|
|
44
45
|
let shownRows: any[] = [];
|
|
45
46
|
// Orca's Tasks shape: a toolbar over a list. The search box, the page's filters and New idea
|
|
46
47
|
// live in the shared header elsewhere, so they move in here and go back on leaving.
|
|
@@ -78,7 +79,7 @@ function draw() {
|
|
|
78
79
|
const proj = store.all ? "" : store.S?.dir ?? "";
|
|
79
80
|
const q = (($("bq") as HTMLInputElement | null)?.value ?? "").trim().toLowerCase();
|
|
80
81
|
const fin = (c) => c.status === "done" || c.status === "abandoned";
|
|
81
|
-
const
|
|
82
|
+
const matched = cards
|
|
82
83
|
.filter((c) => f.src === "all" || src.get(c) === f.src)
|
|
83
84
|
.filter((c) => (proj ? c.state === proj : !shownDirs.length || shownDirs.includes(c.state)))
|
|
84
85
|
// Open: ideas not started yet and runs in flight. Running: runs in flight only. Done: finished runs.
|
|
@@ -86,6 +87,7 @@ function draw() {
|
|
|
86
87
|
.filter((c) => !q || (titleOf(c) + " " + nameOf(c.state, projects)).toLowerCase().includes(q))
|
|
87
88
|
// On Open, ideas above runs or runs above ideas, as chosen; newest first within each.
|
|
88
89
|
.sort((a, b) => (f.show === "open" ? (a.kind === b.kind ? 0 : (a.kind === "idea") === (f.sort === "ideas") ? -1 : 1) : 0) || (b.moved ?? b.added ?? 0) - (a.moved ?? a.added ?? 0));
|
|
90
|
+
const rows = pageOf(pg, matched);
|
|
89
91
|
const now = Date.now();
|
|
90
92
|
const seg = (v, l) => html`<button class="tk-chip${f.show === v ? " on" : ""}" data-show="${v}">${l}</button>`;
|
|
91
93
|
const srcName = (u) => (u === "all" ? "All sources" : u === "" ? "Manual" : known.get(u) ? srcLabel(known.get(u)) : srcLabel({ url: u }));
|
|
@@ -121,7 +123,8 @@ function draw() {
|
|
|
121
123
|
// Not while a pop-up in it is open: redrawing would close it under the pointer.
|
|
122
124
|
if (!hx.querySelector("details[open]")) hx.innerHTML = String(extra);
|
|
123
125
|
$("tk-chips").innerHTML = String(chips);
|
|
124
|
-
$("tk-list").innerHTML = String(table);
|
|
126
|
+
$("tk-list").innerHTML = String(html`${table}${pagerHtml(pg)}`);
|
|
127
|
+
wirePager(pg, () => ((sel = 0), draw()));
|
|
125
128
|
|
|
126
129
|
hx.querySelectorAll<HTMLElement>("[data-src]").forEach((b) => (b.onclick = () => ((f.src = b.dataset.src!), (hx.innerHTML = ""), draw())));
|
|
127
130
|
hx.querySelectorAll<HTMLElement>("[data-sort]").forEach(
|
package/web/board/panel.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { store } from "./store.ts";
|
|
|
2
2
|
import { showTerm, termStop } from "./agent-term.ts";
|
|
3
3
|
import { load, post } from "./api.ts";
|
|
4
4
|
import { APPROVAL, answer, confirmAnswers, confirmRevise, decide, decided, resumable, resume } from "./approvals.ts";
|
|
5
|
-
import { cardEl, key, render } from "./cards.ts";
|
|
5
|
+
import { cardEl, key, render, runPopup } from "./cards.ts";
|
|
6
6
|
import { chat } from "./chat.ts";
|
|
7
7
|
import { stopDictation } from "./dictation.ts";
|
|
8
8
|
import { $, html, raw } from "./dom.ts";
|
|
@@ -74,6 +74,8 @@ export function open(c, keepTab) {
|
|
|
74
74
|
toggleArchive(c, a === "archive");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
+
// Over the page it is on, as Start does: no trip to the board.
|
|
78
|
+
if (a === "run") return runPopup(c);
|
|
77
79
|
const k = key(c);
|
|
78
80
|
// The form lives on the board: the run workspace hands over to it.
|
|
79
81
|
if (view === "run") go("board", true);
|
package/web/board/phone.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// ---- Phones: their own Home (devices, recent runs, usage) and the Runs page (this
|
|
2
2
|
// machine's runs grouped waiting / active / done). The board, Ideas and Icebox are set up
|
|
3
3
|
// on a computer; a phone has Home, Chat, Runs and Settings.
|
|
4
|
+
import { runPopup } from "./cards.ts";
|
|
4
5
|
import { $, html, raw } from "./dom.ts";
|
|
5
6
|
import { cardHref, logo, railData, stateOf, subline, titleOf, usageChips } from "./workspace.ts";
|
|
6
7
|
|
|
@@ -108,7 +109,11 @@ export function initPhone(go: (v: string, push?: boolean) => void, openRun: (c)
|
|
|
108
109
|
if (a.getAttribute("aria-disabled")) return e.preventDefault();
|
|
109
110
|
if (a.classList.contains("prow")) {
|
|
110
111
|
const c = [...runs(), ...ideas()].find((x) => x.state === a.dataset.dir && rowKey(x) === a.dataset.id);
|
|
111
|
-
if (c)
|
|
112
|
+
if (!c) return;
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
// An idea not started has nothing in a workspace yet: pick its agent and mode instead.
|
|
115
|
+
if (c.kind === "idea" && c.status === "idea") runPopup(c);
|
|
116
|
+
else openRun(c);
|
|
112
117
|
}
|
|
113
118
|
});
|
|
114
119
|
}
|
package/web/board.html
CHANGED
|
@@ -135,7 +135,7 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
135
135
|
[data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px;padding:0}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:0}
|
|
136
136
|
@media(max-width:640px){.rail .psec,.rail .plist,.rail .rib{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=ideas]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
|
|
137
137
|
/* phones: Home, Chat, Runs, Settings. The board, Ideas and the Icebox are set up on a computer (web/board/phone.ts) */
|
|
138
|
-
@media(min-width:641px){.rail .rbot .lbl{display:none}}
|
|
138
|
+
@media(min-width:641px){.rail .rbot .lbl{display:none}.rail .rbot a.it{flex:none;width:var(--btn-xs);height:var(--btn-xs);padding:0;justify-content:center;margin-right:auto}[data-rail=min] .rail .rbot a.it{width:var(--btn-s);height:var(--btn-s);margin-right:0}}
|
|
139
139
|
.rail a.it.ponly,#phome{display:none}
|
|
140
140
|
@media(max-width:640px){
|
|
141
141
|
.rail a.it:is([data-view=board],[data-view=ideas],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .rib{display:none!important}
|
|
@@ -442,6 +442,7 @@ dialog.onb-ask h3{margin:0 0 4px;font-size:16px;color:var(--ink-hi)}dialog.onb-a
|
|
|
442
442
|
@media(prefers-reduced-motion:reduce){.onb-prog button{transition:none}}
|
|
443
443
|
dialog.kz.wsnew{width:min(576px,calc(100vw - 32px))}dialog.wsnew .inl{gap:12px;max-height:85dvh;overflow-y:auto}dialog.wsnew .wsfrom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:-6px}dialog.wsnew .wsfrom i{font-style:normal;opacity:.7}dialog.wsnew .wsbase{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--dim);min-width:0}dialog.wsnew .wsbase select{width:auto;max-width:200px;border:0;background:none;color:var(--ink);font-size:12px;padding:2px}dialog.wsnew .wsadv summary{cursor:pointer;font-size:12px;color:var(--dim);padding:2px 0}dialog.wsnew .wsadv[open] summary{margin-bottom:8px}dialog.wsnew .err:empty{display:none}dialog.wsnew .err:not(:empty){color:var(--danger);border:1px solid color-mix(in srgb,var(--danger) 30%,transparent);background:color-mix(in srgb,var(--danger) 10%,transparent);border-radius:var(--r-s);padding:8px 12px}dialog.wsnew .row{justify-content:flex-end;align-items:center}dialog.wsnew .wskey{order:-1;margin-right:auto;font:11px var(--mono);color:var(--dim)}
|
|
444
444
|
dialog.kz{border:0;padding:0;background:none;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:visible;color:var(--ink)}dialog.kz::backdrop{background:rgb(0 0 0/.45)}dialog.kz>.inl{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:16px;gap:10px}dialog.kz .inl input,dialog.kz .inl textarea{background:var(--canvas);border-color:var(--line)}dialog.kz .row input{flex:1;min-width:0}dialog.kz #ndc{align-self:flex-start}dialog.kz .btn.opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;text-align:left}dialog.kz .btn.opt small{color:var(--dim)}dialog.kz label.att{display:flex;flex-direction:column;gap:4px}dialog.kz label.att:has(input[type=checkbox]){flex-direction:row;align-items:center}dialog.kz select{background:var(--canvas);border:1px solid var(--line);border-radius:var(--r-s);color:var(--ink);padding:6px 8px;font:inherit}dialog.viewer{width:min(1100px,calc(100vw - 32px));height:calc(100dvh - 32px);background:var(--bg);border-radius:var(--r);display:none;flex-direction:column;overflow:hidden}dialog.viewer[open]{display:flex}.viewer-hd{display:flex;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line)}.viewer-hd span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}dialog.viewer img{flex:1;min-height:0;width:100%;object-fit:contain}dialog.viewer iframe{flex:1;border:0;width:100%;background:#fff}
|
|
445
|
+
@keyframes sheet-up{from{transform:translateY(100%)}}dialog.kz.sheet{width:100vw;max-width:none;margin:auto 0 0;max-height:85dvh;animation:sheet-up .2s ease-out}dialog.kz.sheet>.inl{border-width:1px 0 0;border-radius:16px 16px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom));max-height:85dvh;overflow-y:auto}@media(prefers-reduced-motion:reduce){dialog.kz.sheet{animation:none}}
|
|
445
446
|
.inl .run-actions{display:grid;gap:8px}.inl .run-actions .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inl .run-actions .pri{grid-column:1/-1}
|
|
446
447
|
.notes{display:flex;flex-direction:column;gap:8px}
|
|
447
448
|
#pbody img{max-width:100%;border-radius:var(--r-s)}
|
|
@@ -492,7 +493,7 @@ body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
|
|
|
492
493
|
#ideasv #ideas-q{flex:0 1 240px;min-width:140px;border-radius:4px;padding:6px 10px;font-family:var(--mono);font-size:12px}
|
|
493
494
|
#ideasv .iscroll{flex:1;min-height:0;overflow:auto}
|
|
494
495
|
.itable{width:100%;border-collapse:collapse}.itable th{text-align:left;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);font-weight:600;padding:8px 12px;border-bottom:1px solid var(--line)}
|
|
495
|
-
.itable td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.itable tr:hover td{background:var(--hover)}#ideasv tbody tr{cursor:pointer}.itable tr.kb td{background:var(--hover)}.itable
|
|
496
|
+
.itable td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.itable tr:hover td{background:var(--hover)}#ideasv tbody tr{cursor:pointer}.itable tr.kb td{background:var(--hover)}.itable td:first-child{width:28px;padding-right:0}.itable td.d{color:var(--dim);white-space:nowrap}
|
|
496
497
|
.itable .ctx{display:flex;gap:6px;align-items:center;color:var(--dim);font-size:12px;margin-top:3px}.itable .tag{font-size:10.5px;border:1px solid var(--line);border-radius:4px;padding:0 7px}
|
|
497
498
|
.itable .stc{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}
|
|
498
499
|
.itable .go{display:flex;gap:6px;align-items:center;padding:4px 10px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.itable .go:hover{background:var(--hover)}.itable .go svg{width:13px;height:13px}.itable .acts{display:flex;gap:6px;justify-content:flex-end;align-items:center}.itable .del{display:grid;place-items:center;width:28px;height:28px;border:1px solid transparent;border-radius:4px;background:none;color:var(--dim);cursor:pointer}.itable .del:hover{color:var(--danger);border-color:var(--line)}.itable .del svg{width:15px;height:15px}.itable .acts .q{color:var(--dim);font-size:12px}.itable .acts .btn{padding:4px 10px;font-size:12px}
|
|
@@ -503,6 +504,7 @@ body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
|
|
|
503
504
|
.tk-q{position:relative;flex:1 1 256px;min-width:0;display:block}.tk-q svg{position:absolute;left:10px;top:9px;width:14px;height:14px;color:var(--dim);pointer-events:none}.tk-q #bq{width:100%;max-width:none;height:32px;margin:0;padding-left:32px;font-size:12px}
|
|
504
505
|
#tk-tools{display:flex;flex:none;align-items:center;gap:8px}#tk-tools #hx{display:flex;margin:0}
|
|
505
506
|
.tk-list{flex:0 1 auto;min-height:0;overflow:auto;border:1px solid color-mix(in srgb,var(--line) 50%,transparent);border-top:0;border-radius:0 0 var(--r) var(--r);background:var(--bg)}
|
|
507
|
+
.kpager{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:8px 12px;border-top:1px solid var(--line);background:var(--bg);font-size:var(--fs-s);color:var(--dim)}.kpager label{display:flex;align-items:center;gap:6px;margin-right:auto}.kpager select{width:auto}
|
|
506
508
|
.tk-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:56px 24px;text-align:center;font-size:14px;color:var(--dim)}.tk-empty svg{width:32px;height:32px;margin-bottom:12px;opacity:.6}.tk-empty p{margin:0;font-size:16px;font-weight:500;color:var(--ink)}
|
|
507
509
|
.itable th{position:sticky;top:0;z-index:1;height:32px;box-sizing:border-box;padding:0 12px;font-size:11px;font-weight:500;background:color-mix(in srgb,var(--hover) 25%,var(--bg))}.itable td{height:48px;box-sizing:border-box;padding:8px 12px;border-bottom:1px solid color-mix(in srgb,var(--line) 30%,transparent)}.itable tr:last-child td{border-bottom:0}.itable b{font-weight:500}
|
|
508
510
|
@media(max-width:640px){body.ideav #ideasv{padding:10px}.itable th:nth-child(4),.itable td:nth-child(4){display:none}.itable td,.itable th{padding:8px 6px}}
|
|
@@ -848,32 +850,32 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
|
|
|
848
850
|
.ice-open{display:grid;gap:8px;padding:6px 12px 12px 61px}
|
|
849
851
|
.ice-zero{padding:56px 24px;text-align:center;border:1px solid color-mix(in srgb,var(--line) 50%,transparent);border-top:0;border-radius:0 0 var(--r) var(--r)}
|
|
850
852
|
/* Swipe view: one request at a time. On a phone it takes the whole screen. */
|
|
851
|
-
.sw{display:flex;flex-direction:column;gap:
|
|
853
|
+
.sw{display:flex;flex-direction:column;justify-content:center;gap:16px;width:100%;max-width:680px;margin-inline:auto;height:calc(100dvh - var(--sw-top,130px));min-height:420px}
|
|
852
854
|
.sw-top{display:flex;align-items:center;gap:10px}.sw-top .btn{flex-shrink:0}
|
|
853
|
-
.sw-prog{flex:1;height:
|
|
855
|
+
.sw-prog{flex:1;height:3px;border-radius:2px;background:var(--line);overflow:hidden}.sw-prog i{display:block;height:100%;background:var(--accent);transition:width .25s ease-out}
|
|
854
856
|
.sw-of{color:var(--dim);font-size:12px;white-space:nowrap}
|
|
855
|
-
.sw-streak{position:relative;font-size:
|
|
857
|
+
.sw-streak{position:relative;color:var(--dim);font-size:12px;white-space:nowrap}
|
|
856
858
|
.sw-plus{position:absolute;right:-4px;top:-14px;color:var(--ok);font-size:12px;animation:sw-up .8s ease-out forwards}@keyframes sw-up{to{transform:translateY(-14px);opacity:0}}
|
|
857
|
-
.sw-stack{position:relative;flex:1;display:grid;min-height:300px}
|
|
858
|
-
.sw-card{grid-area:1/1;position:relative;display:flex;flex-direction:column;gap:
|
|
859
|
+
.sw-stack{position:relative;flex:0 1 auto;display:grid;min-height:300px;overflow:visible}
|
|
860
|
+
.sw-card{grid-area:1/1;position:relative;display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);box-shadow:var(--shadow-2);touch-action:pan-y;user-select:none;cursor:grab;overflow:auto}
|
|
859
861
|
.sw-card.drag{transition:none;cursor:grabbing}.sw-card:focus{outline:none}.sw-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
|
860
|
-
.sw-card.back{transform:scale(.
|
|
862
|
+
.sw-card.back{transform:scale(.96) translateY(10px);opacity:.5;pointer-events:none;overflow:hidden}
|
|
861
863
|
.sw-card.lift{position:fixed;z-index:95;margin:0}
|
|
862
864
|
.sw-hd{display:flex;align-items:center;gap:8px;color:var(--dim);font-size:12px}.sw-proj{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;color:var(--ink);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sw-src{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
863
|
-
.sw-t{font-size:
|
|
864
|
-
.sw-card .ice-notes{max-height:none}
|
|
865
|
+
.sw-t{font-size:20px;font-weight:500;line-height:1.5;margin:0;color:var(--ink-hi);white-space:pre-wrap;overflow-wrap:anywhere}
|
|
866
|
+
.sw-card .ice-notes{max-height:none;font-size:14px;line-height:1.65;color:var(--dim)}
|
|
865
867
|
.sw-stamp{position:absolute;top:18px;padding:4px 12px;border:3px solid;border-radius:8px;font-weight:700;font-size:20px;letter-spacing:.06em;text-transform:uppercase;pointer-events:none;opacity:0}
|
|
866
868
|
.sw-stamp.pro{left:18px;color:var(--ok);transform:rotate(-12deg);opacity:max(0,var(--p,0))}
|
|
867
869
|
.sw-stamp.dis{right:18px;color:var(--danger);transform:rotate(12deg);opacity:max(0,calc(-1*var(--p,0)))}
|
|
868
|
-
.sw-acts{display:
|
|
869
|
-
.sw-b{display:flex;
|
|
870
|
-
.sw-b span{display:grid;place-items:center
|
|
871
|
-
.sw-b span svg{width:
|
|
872
|
-
.sw-b.pro
|
|
873
|
-
.sw-b:hover:not(:disabled)
|
|
870
|
+
.sw-acts{display:grid;grid-template-columns:1fr auto auto 1fr;gap:8px}
|
|
871
|
+
.sw-b{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-s);background:none;color:var(--ink);cursor:pointer;font:inherit;font-size:var(--fs);transition:background .15s,border-color .15s,color .15s}
|
|
872
|
+
.sw-b span{display:grid;place-items:center}
|
|
873
|
+
.sw-b span svg{width:16px;height:16px}.sw-b small{font-size:inherit}.sw-b kbd{padding:0 5px;border:1px solid var(--line);border-radius:4px;color:var(--dim);font:11px/16px var(--mono)}
|
|
874
|
+
.sw-b.pro{background:var(--ink-hi);border-color:var(--ink-hi);color:var(--bg);font-weight:500}.sw-b.pro kbd{border-color:currentColor;color:inherit;opacity:.6}.sw-b.dis{color:var(--danger)}
|
|
875
|
+
.sw-b:hover:not(:disabled){background:var(--hover)}.sw-b.pro:hover:not(:disabled){background:var(--ink);border-color:var(--ink)}.sw-b:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sw-b:disabled{opacity:.35;cursor:default}
|
|
874
876
|
.sw-zero{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:40px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg-2);overflow:hidden}.sw-zero h4{font-size:20px;margin:0}.sw-zero p{margin:0;color:var(--dim)}
|
|
875
877
|
.sw-confetti i{position:absolute;top:-10px;left:var(--x);width:8px;height:12px;background:hsl(var(--h) 80% 60%);animation:sw-fall 1.6s var(--d) ease-in forwards}@keyframes sw-fall{to{transform:translateY(420px) rotate(540deg);opacity:0}}
|
|
876
|
-
@media (max-width:640px){.sw{position:fixed;inset:0;z-index:90;height:auto;min-height:0;padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:var(--bg)}.sw-t{font-size:
|
|
878
|
+
@media (max-width:640px){.sw{position:fixed;inset:0;z-index:90;height:auto;min-height:0;justify-content:flex-start;padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:var(--bg)}.sw-stack{flex:1}.sw-t{font-size:18px}.sw-card .ice-notes{font-size:16px}.sw-b kbd{display:none}.sw-acts{grid-template-columns:1fr 1fr}.sw-b{min-height:48px}.sw-b.pro{order:2}.sw-b.dis{order:1}.sw-b:not(.pro):not(.dis){order:3}}@media(prefers-reduced-motion:reduce){.sw-prog i,.sw-b{transition:none}}
|
|
877
879
|
.ice-zero h4{margin:0 0 6px;font-size:16px;font-weight:500;color:var(--ink)}
|
|
878
880
|
.ice-zero p{margin:0 auto;font-size:12px;color:var(--dim);line-height:1.5}
|
|
879
881
|
.ice-open .hint{font-size:12px;color:var(--dim)}
|