diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1090845..74c701e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,6 +2,8 @@
Issues and pull requests are welcome. Please run `pnpm typecheck` and `pnpm build` before opening a PR.
+For web UI changes, follow the [design system and page layout rules](docs/DESIGN.md).
+
## Database changes
Edit `lib/db/src/schema/*.ts`, then generate a migration:
diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md
index 97f63a0..56858ab 100644
--- a/THIRD_PARTY_LICENSES.md
+++ b/THIRD_PARTY_LICENSES.md
@@ -3,7 +3,7 @@
Every package that ships in the server or the web app bundle, from `pnpm licenses list --prod`. All are
permissive; none is GPL, AGPL, SSPL, BUSL or another license that restricts redistribution.
-244 packages: MIT 226, ISC 9, Apache-2.0 4, OFL-1.1 1, (MIT OR EUPL-1.1+) 1, MIT-0 1, BSD-3-Clause 1, Unlicense 1.
+248 packages: MIT 229, ISC 9, Apache-2.0 4, OFL-1.1 1, (MIT OR EUPL-1.1+) 1, MIT-0 1, BSD-3-Clause 1, Unlicense 1, 0BSD 1.
| Package | Version | License |
| ------------------------------------------------- | -------------- | ------------------ |
@@ -77,6 +77,7 @@ permissive; none is GPL, AGPL, SSPL, BUSL or another license that restricts redi
| finalhandler | 2.1.1 | MIT |
| fontkit | 2.0.4 | MIT |
| forwarded | 0.2.0 | MIT |
+| framer-motion | 14.14.0 | MIT |
| fresh | 2.0.0 | MIT |
| function-bind | 1.1.2 | MIT |
| get-caller-file | 2.0.5 | ISC |
@@ -157,6 +158,8 @@ permissive; none is GPL, AGPL, SSPL, BUSL or another license that restricts redi
| micromark-util-types | 2.0.3 | MIT |
| mime-db | 1.54.0 | MIT |
| mime-types | 3.0.2 | MIT |
+| motion-dom | 14.14.0 | MIT |
+| motion-utils | 14.7.0 | MIT |
| ms | 2.1.3 | MIT |
| negotiator | 1.1.0 | MIT |
| nodemailer | 10.4.0 | MIT-0 |
@@ -231,6 +234,7 @@ permissive; none is GPL, AGPL, SSPL, BUSL or another license that restricts redi
| toidentifier | 1.0.1 | MIT |
| trim-lines | 3.0.1 | MIT |
| trough | 2.2.0 | MIT |
+| tslib | 2.9.1 | 0BSD |
| type-is | 2.1.0 | MIT |
| undici | 7.30.2 | MIT |
| undici-types | 7.24.6 | MIT |
diff --git a/apps/web/package.json b/apps/web/package.json
index b0acf75..9b42d0b 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -10,6 +10,7 @@
},
"dependencies": {
"@tanstack/react-query": "catalog:",
+ "framer-motion": "^14.14.0",
"lucide-react": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
diff --git a/apps/web/src/components/AgentHeader.tsx b/apps/web/src/components/AgentHeader.tsx
index 30d61e3..0d8e7a2 100644
--- a/apps/web/src/components/AgentHeader.tsx
+++ b/apps/web/src/components/AgentHeader.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from "react";
+import { AnimatePresence, m } from "framer-motion";
import { Link, useLocation } from "wouter";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { Bell, Menu, MessageCircle, MessagesSquare, Phone, Plus } from "lucide-react";
@@ -9,6 +10,7 @@ import { AgentAvatar } from "./Creature";
import { statusEmoji, usePanel } from "./AgentPanel";
import { NotificationsSheet } from "./NotificationsSheet";
import { cx } from "./ui";
+import { reveal } from "./Motion";
export function useNewSideChat() {
const qc = useQueryClient();
@@ -39,46 +41,57 @@ function ChatsMenu({ title }: { title?: string }) {
onClick={() => setOpen(!open)}
className="flex h-8 shrink-0 items-center gap-2 rounded-full bg-[var(--card)] px-3 text-[13px] hover:bg-[var(--hover)]"
data-testid="open-chats"
+ aria-expanded={open}
aria-label="Chats"
>
Chats
{title && {title}
}
- {open && (
-
-
setOpen(false)}
- className={cx("flex items-center gap-3 rounded-xl px-3 py-2 text-sm hover:bg-[var(--hover)]", loc === "/" && "bg-[var(--hover)]")}
+
+ {open && (
+
- Main chat
-
- {side.length > 0 && Side chats
}
-
- {side.map((c) => (
- setOpen(false)}
- className={cx("flex items-center gap-3 rounded-xl px-3 py-2 text-sm hover:bg-[var(--hover)]", loc === `/chats/${c.id}` && "bg-[var(--hover)]")}
- >
- {c.title}
-
- ))}
-
-
-
-
Start a side chat
-
Keep a bigger project in its own thread. I still remember everything about you.
-
-
-
- )}
+ Main chat
+
+ {side.length > 0 && Side chats
}
+
+ {side.map((c) => (
+ setOpen(false)}
+ className={cx(
+ "flex items-center gap-3 rounded-xl px-3 py-2 text-sm hover:bg-[var(--hover)]",
+ loc === `/chats/${c.id}` && "bg-[var(--hover)]",
+ )}
+ >
+ {c.title}
+
+ ))}
+
+
+
+
Start a side chat
+
Keep a bigger project in its own thread. I still remember everything about you.
+
+
+
+ )}
+
);
}
@@ -92,7 +105,7 @@ export function AgentHeader({ me, title, onCall }: { me: Me; title?: string; onC
const busy = status !== "Idle";
const pill = "flex h-8 items-center gap-1.5 rounded-full bg-[var(--card)] px-3 text-[13px] hover:bg-[var(--hover)]";
return (
-
+
{!open && (
) : (
-
- {PRESETS.map((p) => (
-
save({ avatarUrl: `preset:${p.id}` })}
- aria-label={p.name}
- className={cx(
- "rounded-full ring-offset-2 ring-offset-[var(--card)]",
- me.agent.avatarUrl === `preset:${p.id}` && "ring-2 ring-[var(--accent)]",
- )}
- >
-
-
- ))}
-
+
save({ avatarUrl })} />
-
+
{tab === "activity" && }
{tab === "approvals" && }
{tab === "identity" && }
-
+
);
}
diff --git a/apps/web/src/components/AppShell.tsx b/apps/web/src/components/AppShell.tsx
index 998f6a2..62338fe 100644
--- a/apps/web/src/components/AppShell.tsx
+++ b/apps/web/src/components/AppShell.tsx
@@ -7,6 +7,8 @@ import type { Me, Space } from "../lib/types";
import { AgentPanel, usePanel } from "./AgentPanel";
import { useNewSideChat } from "./AgentHeader";
import { cx } from "./ui";
+import { AnimatePresence, m } from "framer-motion";
+import { fade, reveal, settle, useMotionAllowed } from "./Motion";
function spaceVisibleNow(s: Space) {
const days = s.schedule?.days;
@@ -15,19 +17,29 @@ function spaceVisibleNow(s: Space) {
}
function RailItem({ href, icon, label, active, testid }: { href: string; icon: ReactNode; label: string; active: boolean; testid?: string }) {
+ const animate = useMotionAllowed();
return (
+ {active && (
+
+ )}
{icon}
-
+
{label}
@@ -75,8 +87,8 @@ export function AppShell({ me, children }: { me: Me; children: ReactNode }) {
const pageKey = seg[0] === "chats" || seg[0] === "spaces" ? seg.slice(0, 2).join("/") : (seg[0] ?? "");
return (
-
-