kaizen-agent 1.61.0 → 1.61.1
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/settings.ts +8 -2
- package/web/board.html +2 -2
- package/web/board.js +47 -47
- package/web/notebook.js +1 -1
- package/web/term.js +1 -1
- package/web/video.js +1 -1
package/package.json
CHANGED
package/web/board/settings.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { store } from "./store.ts";
|
|
|
2
2
|
import { termStop } from "./agent-term.ts";
|
|
3
3
|
import { load, post } from "./api.ts";
|
|
4
4
|
import { stopDictation } from "./dictation.ts";
|
|
5
|
-
import { $, html, ico,
|
|
5
|
+
import { $, html, ico, raw } from "./dom.ts";
|
|
6
6
|
import { close } from "./panel.ts";
|
|
7
7
|
import { placeOf, SETTINGS_NAV } from "./settings-pages.ts";
|
|
8
8
|
import { askNotify, notifyOn, playSound, soundPick, SOUNDS, toast } from "./toast.ts";
|
|
@@ -18,13 +18,19 @@ addEventListener("keydown", (e) => {
|
|
|
18
18
|
e.preventDefault();
|
|
19
19
|
$("sq")?.focus();
|
|
20
20
|
});
|
|
21
|
+
// The Settings page while it loads: its sidebar and a card of rows, so nothing jumps when it arrives.
|
|
22
|
+
const bar = (w: string, h = 14, m = "0") => `<span class="skel" style="width:${w};height:${h}px;margin:${m}"></span>`;
|
|
23
|
+
const SET_SKEL = raw(
|
|
24
|
+
`<div class="sset" aria-busy="true" aria-label="Loading"><nav class="snav"><div class="snavs">${bar("60%", 32, "0 0 24px")}${bar("100%", 32, "0 0 24px")}${[4, 3, 4].map((n) => bar("40%", 11, "0 12px 12px") + bar("100%", 32, "0 0 2px").repeat(n) + bar("0", 0, "0 0 20px")).join("")}</div></nav>` +
|
|
25
|
+
`<div class="smain"><div class="spage"><header>${bar("30%", 28, "0 0 8px")}${bar("55%")}</header><div class="scard">${(bar("70%", 13, "12px 0 6px") + bar("45%", 11, "0 0 12px")).repeat(6)}</div></div></div></div>`,
|
|
26
|
+
);
|
|
21
27
|
export async function openSettings() {
|
|
22
28
|
if (view !== "settings") return;
|
|
23
29
|
const gen = ++store.pageGen;
|
|
24
30
|
stopDictation(true);
|
|
25
31
|
// Coming from another page or a card, its body goes now, not when the fetch answers.
|
|
26
32
|
if (!$("panel").classList.contains("open") || $("ptitle").textContent !== "Settings") {
|
|
27
|
-
$("pbody").innerHTML =
|
|
33
|
+
$("pbody").innerHTML = SET_SKEL;
|
|
28
34
|
$("psub").textContent = "";
|
|
29
35
|
store.setScope = store.all ? "all" : store.dir || store.S.dir || "all";
|
|
30
36
|
}
|
package/web/board.html
CHANGED
|
@@ -742,10 +742,10 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
|
|
|
742
742
|
.sjump{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.sjump button{padding:3px 10px;border:1px solid var(--line);border-radius:var(--r-pill);font-size:12px;color:var(--dim)}.sjump button:hover{background:var(--hover);color:var(--ink)}
|
|
743
743
|
.snone{color:var(--dim);margin-top:20px}
|
|
744
744
|
/* settings, laid out as Orca's: its own sidebar in place of the rail, one page per item, rows in one card */
|
|
745
|
-
@media(min-width:641px){body.setv .rail{display:none}body.setv #panel>header{display:none}body.setv #panel>.body{padding:0}}
|
|
745
|
+
@media(min-width:641px){body.setv .rail{display:none}body.setv #panel>header{display:none}body.setv #panel>.body{padding:0!important;overflow:hidden}body.setv #panel{background:none;border-color:transparent;box-shadow:none}.sset .snav{background:none;border-right:0}.sset .snav .sq{border-block:0;padding-block:0 8px}.sset .smain{margin:0 0 0 0;background:var(--bg);border:1px solid var(--line);border-radius:var(--r)}}
|
|
746
746
|
.sset{display:grid;grid-template-columns:280px minmax(0,1fr);height:100%}
|
|
747
747
|
.snav{min-height:0;display:flex;flex-direction:column;background:var(--bg-2);border-right:1px solid var(--line)}
|
|
748
|
-
.sback{display:flex;align-items:center;gap:8px;padding:0
|
|
748
|
+
.sback{flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;margin:12px;height:var(--btn-s);border-radius:var(--r-s);font-size:13px;color:var(--dim);text-align:left}.sback:hover,.sup:hover{color:var(--ink)}
|
|
749
749
|
.sback svg,.sup svg{width:var(--ico);height:var(--ico);transform:rotate(90deg)}
|
|
750
750
|
.snav .sq{position:static;background:none;margin:0;padding:12px;border-block:1px solid var(--line)}
|
|
751
751
|
.snavs{flex:1;min-height:0;overflow-y:auto;padding:16px 12px}
|