Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Notetaker page: the note's buttons under its title

Claudebd74788152dc
diff --git a/windows/src/hub/hero.ts b/windows/src/hub/hero.ts
index 90866213..ec1900a4 100644
--- a/windows/src/hub/hero.ts
+++ b/windows/src/hub/hero.ts
@@ -14,6 +14,9 @@ import type { Outfit } from "../mochi/wardrobe";
interface Animated {
el: HTMLCanvasElement;
draw(dt: number, t: number): void;
+ /** Pages are built before they are put in the window: dropped only once gone. */
+ shown?: boolean;
+ born?: number;
}
const live = new Set<Animated>();
@@ -28,9 +31,11 @@ function loop(now: number) {
const t = (now - start) / 1000;
for (const a of live) {
if (!a.el.isConnected) {
- live.delete(a);
+ // Built but not shown yet: wait for it (a few seconds at most).
+ if (a.shown || now - (a.born ??= now) > 5000) live.delete(a);
continue;
}
+ a.shown = true;
a.draw(dt, t);
}
if (live.size > 0 && document.visibilityState === "visible") frame = requestAnimationFrame(loop);
@@ -224,7 +229,7 @@ export function troupe(canvas: HTMLCanvasElement, cast: MochiSpec[], width: numb
const r = canvas.getBoundingClientRect();
const px = e.clientX - r.left;
for (const w of walkers) {
- if (Math.abs(px - w.x) < w.spec.size * 0.6) {
+ if (Math.abs(px - w.x) < w.spec.size * 0.4) {
w.engine.slap();
w.hopV = 260;
}
@@ -291,13 +296,15 @@ export function troupe(canvas: HTMLCanvasElement, cast: MochiSpec[], width: numb
w.engine.lookY = 0.1 + 0.1 * Math.sin(t + w.spec.start * 7);
}
w.engine.update(dt);
- const box = s / 0.6;
+ // `size` is the drawing's square, as on the Mac; the body is about 0.68 of it.
+ const box = s;
+ const floor = ch - 8;
ctx.save();
- ctx.translate(w.x - box / 2, ch - box * 0.78 - w.hop);
+ ctx.translate(w.x - box / 2, floor - box * 0.78 - w.hop);
// A soft shadow on the floor.
ctx.fillStyle = `rgba(0,0,0,${0.35 * (1 - Math.min(1, w.hop / 60))})`;
ctx.beginPath();
- ctx.ellipse(box / 2, box * 0.78 + w.hop - 2, s * 0.42, s * 0.08, 0, 0, Math.PI * 2);
+ ctx.ellipse(box / 2, box * 0.78 + w.hop - 1, s * 0.3, s * 0.05, 0, 0, Math.PI * 2);
ctx.fill();
w.engine.draw(ctx, box, box);
ctx.restore();
diff --git a/windows/src/hub/hub.css b/windows/src/hub/hub.css
index 1420c18a..a4327c0f 100644
--- a/windows/src/hub/hub.css
+++ b/windows/src/hub/hub.css
@@ -917,3 +917,7 @@ button.hub-icon svg {
max-width: 100%;
}
}
+
+.hub-note-detail > button {
+ align-self: flex-start;
+}
diff --git a/windows/src/hub/pages/notes.ts b/windows/src/hub/pages/notes.ts
index b55ca883..099556c7 100644
--- a/windows/src/hub/pages/notes.ts
+++ b/windows/src/hub/pages/notes.ts
@@ -146,11 +146,10 @@ export async function notesPage(page: HTMLElement, ctx: HubContext) {
));
}));
}
+ tools.append(copied);
detail.append(
- h("div", { class: "hub-row", style: "align-items:flex-start" },
- h("div", { style: "flex:1;min-width:0;display:flex;flex-direction:column;gap:4px" }, title, h("div", { class: "hub-note", text: note.app ? `${when} · ${note.app}` : when })),
- copied, tools,
- ),
+ h("div", { style: "display:flex;flex-direction:column;gap:4px;min-width:0" }, title, h("div", { class: "hub-note", text: note.app ? `${when} · ${note.app}` : when })),
+ tools,
confirm,
);
@@ -204,14 +203,14 @@ export async function notesPage(page: HTMLElement, ctx: HubContext) {
}
function summary(note: Note): HTMLElement {
- const el = h("div", { style: "display:flex;flex-direction:column;gap:14px" });
+ const el = h("div", { style: "display:flex;flex-direction:column;gap:14px;align-items:flex-start" });
const busy = state.working.includes(note.id);
if (!note.summary && note.keyPoints.length === 0 && note.todos.length === 0) {
el.append(h("div", { class: "hub-note", text: busy ? t("Writing the summary…") : t("No summary yet.") }));
if (!busy) el.append(button(t("Write the summary"), () => void FlowBridge.summarize(note.id), "primary", true));
return el;
}
- if (note.summary) el.append(h("div", { class: "hub-card", style: "font-size:14px;line-height:1.55;color:var(--hub-body)", text: note.summary }));
+ if (note.summary) el.append(h("div", { class: "hub-card", style: "font-size:14px;line-height:1.55;color:var(--hub-body);align-self:stretch", text: note.summary }));
if (note.keyPoints.length) {
const ul = h("ul", { style: "margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px;font-size:13.5px" });
for (const p of note.keyPoints) ul.append(h("li", { text: p }));