feat: polish life os cards and voice stack
This commit is contained in:
parent
66362c7176
commit
0edf8c3fef
21 changed files with 3681 additions and 502 deletions
|
|
@ -438,9 +438,11 @@ export function App() {
|
|||
|
||||
const { agentStateOverride, handlePointerDown, handlePointerMove, handlePointerUp } = usePTT({
|
||||
connected: rtc.connected && !rtc.textOnly,
|
||||
currentAgentState: rtc.agentState,
|
||||
onSendPtt: (pressed) =>
|
||||
rtc.sendJson({ type: "voice-ptt", pressed, metadata: selectedCardMetadata() }),
|
||||
onBootstrap: rtc.connect,
|
||||
onInterrupt: () => rtc.sendJson({ type: "command", command: "reset" }),
|
||||
});
|
||||
const effectiveAgentState = agentStateOverride ?? rtc.agentState;
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -6,8 +6,10 @@ const MOVE_CANCEL_PX = 16;
|
|||
|
||||
interface UsePTTOptions {
|
||||
connected: boolean;
|
||||
currentAgentState: AgentState;
|
||||
onSendPtt(pressed: boolean): void;
|
||||
onBootstrap(): Promise<void>;
|
||||
onInterrupt?(): void;
|
||||
onTap?(): void; // called on a short press (< HOLD_MS) that didn't activate PTT
|
||||
}
|
||||
|
||||
|
|
@ -23,23 +25,31 @@ function dispatchMicEnable(enabled: boolean): void {
|
|||
}
|
||||
|
||||
/** Manages push-to-talk pointer events and mic enable/disable. */
|
||||
export function usePTT({ connected, onSendPtt, onBootstrap, onTap }: UsePTTOptions): PTTState {
|
||||
export function usePTT({
|
||||
connected,
|
||||
currentAgentState,
|
||||
onSendPtt,
|
||||
onBootstrap,
|
||||
onInterrupt,
|
||||
onTap,
|
||||
}: UsePTTOptions): PTTState {
|
||||
const [agentStateOverride, setAgentStateOverride] = useState<AgentState | null>(null);
|
||||
const activePointers = useRef(new Set<number>());
|
||||
const appStartedRef = useRef(false);
|
||||
const holdTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
const pttFiredRef = useRef(false);
|
||||
const pointerStartRef = useRef<{ x: number; y: number } | null>(null);
|
||||
|
||||
const beginPTT = useCallback(() => {
|
||||
if (!connected) return;
|
||||
if (agentStateOverride === "listening") return;
|
||||
if (currentAgentState === "thinking" || currentAgentState === "speaking") {
|
||||
onInterrupt?.();
|
||||
}
|
||||
pttFiredRef.current = true;
|
||||
setAgentStateOverride("listening");
|
||||
dispatchMicEnable(true);
|
||||
onSendPtt(true);
|
||||
}, [connected, agentStateOverride, onSendPtt]);
|
||||
|
||||
}, [connected, agentStateOverride, currentAgentState, onInterrupt, onSendPtt]);
|
||||
const endPTT = useCallback(() => {
|
||||
if (agentStateOverride !== "listening") return;
|
||||
setAgentStateOverride(null);
|
||||
|
|
@ -62,11 +72,8 @@ export function usePTT({ connected, onSendPtt, onBootstrap, onTap }: UsePTTOptio
|
|||
await onBootstrap();
|
||||
}
|
||||
if (activePointers.current.size !== 1) return;
|
||||
|
||||
pttFiredRef.current = false;
|
||||
pointerStartRef.current = { x: pe.clientX, y: pe.clientY };
|
||||
|
||||
// Delay activation slightly so horizontal swipe gestures can cancel.
|
||||
holdTimerRef.current = setTimeout(beginPTT, HOLD_MS);
|
||||
},
|
||||
[onBootstrap, beginPTT],
|
||||
|
|
@ -95,18 +102,14 @@ export function usePTT({ connected, onSendPtt, onBootstrap, onTap }: UsePTTOptio
|
|||
if (!activePointers.current.has(pe.pointerId)) return;
|
||||
activePointers.current.delete(pe.pointerId);
|
||||
if (activePointers.current.size !== 0) return;
|
||||
|
||||
// Cancel hold timer if it hasn't fired yet
|
||||
if (holdTimerRef.current !== null) {
|
||||
clearTimeout(holdTimerRef.current);
|
||||
holdTimerRef.current = null;
|
||||
}
|
||||
pointerStartRef.current = null;
|
||||
|
||||
if (pttFiredRef.current) {
|
||||
endPTT();
|
||||
} else {
|
||||
// PTT never fired → short tap.
|
||||
onTap?.();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef, useState } from "preact/hooks";
|
|||
import type {
|
||||
AgentState,
|
||||
CardItem,
|
||||
CardLane,
|
||||
CardMessageMetadata,
|
||||
CardState,
|
||||
ClientMessage,
|
||||
|
|
@ -18,13 +17,6 @@ const CARD_LIVE_CONTENT_EVENT = "nanobot:card-live-content-change";
|
|||
let cardIdCounter = 0;
|
||||
let logIdCounter = 0;
|
||||
|
||||
const LANE_RANK: Record<CardLane, number> = {
|
||||
attention: 0,
|
||||
work: 1,
|
||||
context: 2,
|
||||
history: 3,
|
||||
};
|
||||
|
||||
const STATE_RANK: Record<CardState, number> = {
|
||||
active: 0,
|
||||
stale: 1,
|
||||
|
|
@ -96,8 +88,6 @@ function compareCards(a: CardItem, b: CardItem): number {
|
|||
if (stateDiff !== 0) return stateDiff;
|
||||
const scoreDiff = readCardScore(b) - readCardScore(a);
|
||||
if (scoreDiff !== 0) return scoreDiff;
|
||||
const laneDiff = LANE_RANK[a.lane] - LANE_RANK[b.lane];
|
||||
if (laneDiff !== 0) return laneDiff;
|
||||
if (a.priority !== b.priority) return b.priority - a.priority;
|
||||
const updatedDiff = b.updatedAt.localeCompare(a.updatedAt);
|
||||
if (updatedDiff !== 0) return updatedDiff;
|
||||
|
|
@ -131,6 +121,8 @@ function toCardItem(msg: Extract<ServerMessage, { type: "card" }>): Omit<CardIte
|
|||
priority: msg.priority,
|
||||
state: msg.state,
|
||||
templateKey: msg.template_key || undefined,
|
||||
templateState:
|
||||
msg.template_state && typeof msg.template_state === "object" ? msg.template_state : undefined,
|
||||
contextSummary: msg.context_summary || undefined,
|
||||
createdAt: msg.created_at || new Date().toISOString(),
|
||||
updatedAt: msg.updated_at || new Date().toISOString(),
|
||||
|
|
|
|||
|
|
@ -4,8 +4,57 @@
|
|||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "M-1m Code";
|
||||
src: url("/card-templates/todo-item-live/assets/mplus-1m-regular-sub.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "M-1m Code";
|
||||
src: url("/card-templates/todo-item-live/assets/mplus-1m-bold-sub.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "IBM Plex Sans Condensed";
|
||||
src: url("/card-templates/todo-item-live/assets/ibm-plex-sans-condensed-400.ttf")
|
||||
format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "IBM Plex Sans Condensed";
|
||||
src: url("/card-templates/todo-item-live/assets/ibm-plex-sans-condensed-600.ttf")
|
||||
format("truetype");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "IBM Plex Sans Condensed";
|
||||
src: url("/card-templates/todo-item-live/assets/ibm-plex-sans-condensed-700.ttf")
|
||||
format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--card-font: "Iosevka", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
|
||||
--feed-surface: #e7ddd0;
|
||||
--card-surface: linear-gradient(180deg, #b56c3d 0%, #8f4f27 100%);
|
||||
--card-border: rgba(255, 220, 188, 0.24);
|
||||
--card-shadow: 0 10px 28px rgba(68, 34, 15, 0.22);
|
||||
--card-text: rgba(255, 245, 235, 0.9);
|
||||
--card-muted: rgba(255, 233, 214, 0.72);
|
||||
}
|
||||
|
||||
html {
|
||||
|
|
@ -638,8 +687,8 @@ body {
|
|||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(255, 200, 140, 0.25) transparent;
|
||||
background: #ece8e1;
|
||||
box-shadow: inset 0 1px 0 rgba(52, 40, 31, 0.24);
|
||||
background: var(--feed-surface);
|
||||
box-shadow: inset 0 1px 0 rgba(86, 53, 31, 0.16);
|
||||
}
|
||||
#card-feed::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
|
|
@ -663,7 +712,7 @@ body {
|
|||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(150, 110, 68, 0.82);
|
||||
color: rgba(128, 78, 44, 0.82);
|
||||
}
|
||||
.card-group-list {
|
||||
display: flex;
|
||||
|
|
@ -672,25 +721,25 @@ body {
|
|||
}
|
||||
.card {
|
||||
pointer-events: auto;
|
||||
background: rgba(28, 22, 16, 0.92);
|
||||
border: 1px solid rgba(255, 200, 140, 0.18);
|
||||
background: var(--card-surface);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 12px;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
|
||||
box-shadow: var(--card-shadow);
|
||||
animation: card-in 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
|
||||
position: relative;
|
||||
max-width: 100%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.card.kind-text {
|
||||
background: transparent;
|
||||
border: none;
|
||||
background: var(--card-surface);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
box-shadow: var(--card-shadow);
|
||||
}
|
||||
.card.dismissing {
|
||||
animation: card-out 0.18s ease-in both;
|
||||
|
|
@ -757,7 +806,7 @@ body {
|
|||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.07em;
|
||||
color: rgba(255, 200, 140, 0.92);
|
||||
color: rgba(255, 230, 208, 0.94);
|
||||
text-transform: uppercase;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
|
|
@ -778,8 +827,8 @@ body {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
.card-state {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: rgba(255, 245, 235, 0.66);
|
||||
background: rgba(255, 241, 229, 0.14);
|
||||
color: var(--card-muted);
|
||||
}
|
||||
.card-menu-wrap {
|
||||
position: relative;
|
||||
|
|
@ -788,10 +837,10 @@ body {
|
|||
.card-menu-trigger {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 1px solid rgba(255, 200, 140, 0.18);
|
||||
border: 1px solid rgba(255, 223, 198, 0.2);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
color: rgba(255, 245, 235, 0.58);
|
||||
background: rgba(255, 241, 229, 0.08);
|
||||
color: rgba(255, 241, 229, 0.7);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -802,10 +851,10 @@ body {
|
|||
border-color 0.15s ease;
|
||||
}
|
||||
.card.kind-text .card-menu-trigger {
|
||||
border-color: rgba(40, 26, 16, 0.1);
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
color: rgba(40, 26, 16, 0.72);
|
||||
box-shadow: 0 4px 12px rgba(24, 16, 10, 0.12);
|
||||
border-color: rgba(255, 223, 198, 0.2);
|
||||
background: rgba(255, 241, 229, 0.12);
|
||||
color: rgba(255, 245, 235, 0.82);
|
||||
box-shadow: 0 4px 12px rgba(59, 31, 15, 0.18);
|
||||
}
|
||||
.card-menu-trigger svg {
|
||||
width: 14px;
|
||||
|
|
@ -814,15 +863,15 @@ body {
|
|||
}
|
||||
.card-menu-trigger:hover,
|
||||
.card-menu-trigger.open {
|
||||
color: rgba(255, 245, 235, 0.9);
|
||||
background: rgba(255, 200, 140, 0.12);
|
||||
border-color: rgba(255, 200, 140, 0.38);
|
||||
color: rgba(255, 247, 239, 0.96);
|
||||
background: rgba(255, 223, 198, 0.16);
|
||||
border-color: rgba(255, 223, 198, 0.36);
|
||||
}
|
||||
.card.kind-text .card-menu-trigger:hover,
|
||||
.card.kind-text .card-menu-trigger.open {
|
||||
color: rgba(20, 10, 0, 0.92);
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
border-color: rgba(40, 26, 16, 0.18);
|
||||
color: rgba(255, 247, 239, 0.96);
|
||||
background: rgba(255, 223, 198, 0.18);
|
||||
border-color: rgba(255, 223, 198, 0.36);
|
||||
}
|
||||
.card-menu {
|
||||
position: absolute;
|
||||
|
|
@ -834,8 +883,8 @@ body {
|
|||
flex-direction: column;
|
||||
gap: 4px;
|
||||
border-radius: 12px;
|
||||
background: rgba(20, 14, 10, 0.98);
|
||||
border: 1px solid rgba(255, 200, 140, 0.16);
|
||||
background: rgba(86, 47, 23, 0.98);
|
||||
border: 1px solid rgba(255, 223, 198, 0.18);
|
||||
box-shadow:
|
||||
0 18px 36px rgba(0, 0, 0, 0.42),
|
||||
0 4px 10px rgba(0, 0, 0, 0.24);
|
||||
|
|
@ -844,7 +893,7 @@ body {
|
|||
.card-menu-item {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: rgba(255, 245, 235, 0.86);
|
||||
color: var(--card-text);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
text-align: left;
|
||||
|
|
@ -854,7 +903,7 @@ body {
|
|||
cursor: pointer;
|
||||
}
|
||||
.card-menu-item:hover {
|
||||
background: rgba(255, 200, 140, 0.12);
|
||||
background: rgba(255, 223, 198, 0.12);
|
||||
}
|
||||
.card-menu-item.danger {
|
||||
color: rgba(255, 177, 161, 0.92);
|
||||
|
|
@ -869,7 +918,7 @@ body {
|
|||
font-family: var(--card-font);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.65;
|
||||
color: rgba(255, 245, 235, 0.82);
|
||||
color: var(--card-text);
|
||||
white-space: normal;
|
||||
word-break: break-word;
|
||||
user-select: text;
|
||||
|
|
@ -878,17 +927,416 @@ body {
|
|||
.card.kind-text .card-body {
|
||||
color: inherit;
|
||||
}
|
||||
.card.kind-text .card-body > [data-nanobot-card-root] {
|
||||
display: block;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.card.kind-text .card-body > [data-nanobot-card-root] > :not(script) {
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
box-shadow: none;
|
||||
}
|
||||
.task-card-ui {
|
||||
--task-accent: #58706f;
|
||||
--task-accent-soft: rgba(88, 112, 111, 0.12);
|
||||
--task-ink: #2f241e;
|
||||
--task-muted: #7e6659;
|
||||
--task-surface: rgba(255, 248, 239, 0.92);
|
||||
--task-border: rgba(87, 65, 50, 0.14);
|
||||
--task-button-ink: #214240;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
border-radius: 0;
|
||||
border: 1px solid var(--task-border);
|
||||
background:
|
||||
radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 32%),
|
||||
linear-gradient(145deg, rgba(253, 245, 235, 0.98), rgba(242, 227, 211, 0.97));
|
||||
color: var(--task-ink);
|
||||
font-family: "M-1m Code", var(--card-font);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.68),
|
||||
0 18px 36px rgba(79, 56, 43, 0.12);
|
||||
}
|
||||
.task-card-ui::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: repeating-linear-gradient(
|
||||
135deg,
|
||||
rgba(122, 97, 78, 0.035) 0,
|
||||
rgba(122, 97, 78, 0.035) 2px,
|
||||
transparent 2px,
|
||||
transparent 10px
|
||||
);
|
||||
pointer-events: none;
|
||||
opacity: 0.55;
|
||||
}
|
||||
.task-card-ui__inner {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 15px 44px 13px 14px;
|
||||
}
|
||||
.task-card-ui__topline {
|
||||
position: relative;
|
||||
z-index: 6;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
.task-card-ui__lane-wrap {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.task-card-ui__lane-button {
|
||||
appearance: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.task-card-ui__lane-button:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.task-card-ui__lane {
|
||||
min-width: 0;
|
||||
font-size: 0.64rem;
|
||||
line-height: 1.1;
|
||||
letter-spacing: 0.11em;
|
||||
text-transform: uppercase;
|
||||
color: var(--task-muted);
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.task-card-ui__lane-caret {
|
||||
flex: 0 0 auto;
|
||||
font-size: 0.66rem;
|
||||
line-height: 1;
|
||||
color: var(--task-muted);
|
||||
transform: translateY(-1px);
|
||||
transition: transform 0.18s ease;
|
||||
}
|
||||
.task-card-ui__lane-caret.open {
|
||||
transform: translateY(-1px) rotate(180deg);
|
||||
}
|
||||
.task-card-ui__lane-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 6px);
|
||||
left: 0;
|
||||
z-index: 12;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 150px;
|
||||
padding: 6px;
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 248, 239, 0.96);
|
||||
box-shadow:
|
||||
0 10px 24px rgba(79, 56, 43, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.72);
|
||||
}
|
||||
.task-card-ui__lane-menu-item {
|
||||
appearance: none;
|
||||
border: 1px solid rgba(0, 0, 0, 0.05);
|
||||
border-radius: 10px;
|
||||
padding: 8px 10px;
|
||||
background: rgba(255, 248, 239, 0.78);
|
||||
color: var(--task-button-ink);
|
||||
font:
|
||||
700 0.7rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
.task-card-ui__lane-menu-item:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.task-card-ui__status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--task-muted);
|
||||
}
|
||||
.task-card-ui__status.is-error {
|
||||
color: #8e3023;
|
||||
}
|
||||
.task-card-ui__text-button {
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.task-card-ui__text-button:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
.task-card-ui__title {
|
||||
font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
|
||||
font-size: 0.96rem;
|
||||
line-height: 1.06;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.008em;
|
||||
color: var(--task-ink);
|
||||
text-wrap: balance;
|
||||
word-break: break-word;
|
||||
}
|
||||
.task-card-ui__tags {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 6px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-x: contain;
|
||||
}
|
||||
.task-card-ui__tags::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.task-card-ui__tag {
|
||||
appearance: none;
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
border-radius: 999px;
|
||||
padding: 4px 9px;
|
||||
background: var(--task-accent-soft);
|
||||
color: var(--task-button-ink);
|
||||
font-family: "M-1m Code", var(--card-font);
|
||||
font-size: 0.71rem;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
border: 1px solid rgba(0, 0, 0, 0.035);
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
}
|
||||
.task-card-ui__tag:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.task-card-ui__tag.is-holding {
|
||||
background: rgba(165, 95, 75, 0.18);
|
||||
color: #7b2f20;
|
||||
}
|
||||
.task-card-ui__tag--action {
|
||||
border-style: dashed;
|
||||
background: rgba(255, 248, 239, 0.74);
|
||||
cursor: pointer;
|
||||
}
|
||||
.task-card-ui__body {
|
||||
font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
|
||||
font-size: 0.86rem;
|
||||
line-height: 1.34;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.005em;
|
||||
color: #624d40;
|
||||
opacity: 0.95;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.task-card-ui__body.is-placeholder {
|
||||
opacity: 0.62;
|
||||
font-style: italic;
|
||||
}
|
||||
.task-card-ui__body-markdown {
|
||||
display: block;
|
||||
}
|
||||
.task-card-ui__body-markdown-inner {
|
||||
display: block;
|
||||
}
|
||||
.task-card-ui__md-line {
|
||||
display: block;
|
||||
}
|
||||
.task-card-ui__md-line + .task-card-ui__md-line {
|
||||
margin-top: 0.06rem;
|
||||
}
|
||||
.task-card-ui__md-line--heading {
|
||||
font-weight: 700;
|
||||
color: #503d31;
|
||||
}
|
||||
.task-card-ui__md-line--quote {
|
||||
padding-left: 0.55rem;
|
||||
border-left: 2px solid rgba(95, 120, 132, 0.3);
|
||||
}
|
||||
.task-card-ui__md-prefix {
|
||||
color: var(--task-muted);
|
||||
}
|
||||
.task-card-ui__md-break {
|
||||
display: block;
|
||||
height: 0.18rem;
|
||||
}
|
||||
.task-card-ui__body-markdown code {
|
||||
font-family: "M-1m Code", var(--card-font);
|
||||
font-size: 0.78em;
|
||||
}
|
||||
.task-card-ui__body-markdown a {
|
||||
color: inherit;
|
||||
}
|
||||
.task-card-ui__editor {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: none;
|
||||
resize: none;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
.task-card-ui__editor::placeholder {
|
||||
color: rgba(98, 77, 64, 0.6);
|
||||
opacity: 1;
|
||||
font-style: italic;
|
||||
}
|
||||
.task-card-ui__meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.task-card-ui__chip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: #4c3b30;
|
||||
font-family: "M-1m Code", var(--card-font);
|
||||
font-size: 0.63rem;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
.list-total-card-ui {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 15px 44px 13px 14px;
|
||||
background:
|
||||
radial-gradient(circle at top right, rgba(255, 252, 233, 0.68), transparent 34%),
|
||||
linear-gradient(145deg, rgba(244, 226, 187, 0.98), rgba(226, 198, 145, 0.97));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 250, 224, 0.62);
|
||||
color: #4d392d;
|
||||
}
|
||||
.list-total-card-ui__labels,
|
||||
.list-total-card-ui__row,
|
||||
.list-total-card-ui__total {
|
||||
display: grid;
|
||||
grid-template-columns: 68px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
.list-total-card-ui__labels {
|
||||
color: rgba(77, 57, 45, 0.72);
|
||||
font:
|
||||
700 0.62rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.list-total-card-ui__rows {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
.list-total-card-ui__input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(92, 70, 55, 0.14);
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #473429;
|
||||
padding: 5px 0 4px;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.list-total-card-ui__input:focus {
|
||||
border-bottom-color: rgba(92, 70, 55, 0.34);
|
||||
}
|
||||
.list-total-card-ui__input::placeholder {
|
||||
color: rgba(77, 57, 45, 0.42);
|
||||
}
|
||||
.list-total-card-ui__value {
|
||||
font:
|
||||
700 0.84rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
text-align: right;
|
||||
}
|
||||
.list-total-card-ui__name {
|
||||
font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.08;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.list-total-card-ui__status {
|
||||
min-height: 0.9rem;
|
||||
color: rgba(77, 57, 45, 0.5);
|
||||
font:
|
||||
700 0.62rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.list-total-card-ui__status.is-error {
|
||||
color: #8e3023;
|
||||
}
|
||||
.list-total-card-ui__total {
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid rgba(92, 70, 55, 0.18);
|
||||
color: #35271f;
|
||||
}
|
||||
.list-total-card-ui__total-label {
|
||||
font:
|
||||
700 0.66rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.list-total-card-ui__total-value {
|
||||
font:
|
||||
700 0.98rem / 1 "M-1m Code",
|
||||
var(--card-font);
|
||||
text-align: right;
|
||||
}
|
||||
.card-question {
|
||||
color: rgba(255, 245, 235, 0.95);
|
||||
}
|
||||
.card-response,
|
||||
.card-footer {
|
||||
color: rgba(255, 245, 235, 0.62);
|
||||
color: var(--card-muted);
|
||||
}
|
||||
.card-body p {
|
||||
margin: 0 0 6px;
|
||||
|
|
@ -904,7 +1352,7 @@ body {
|
|||
.card-body h6 {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
color: rgba(255, 200, 140, 0.95);
|
||||
color: rgba(255, 233, 214, 0.96);
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
.card-body ul,
|
||||
|
|
@ -916,13 +1364,13 @@ body {
|
|||
margin-bottom: 2px;
|
||||
}
|
||||
.card-body code {
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
background: rgba(255, 241, 229, 0.1);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
.card-body pre {
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
background: rgba(74, 39, 18, 0.42);
|
||||
border-radius: 6px;
|
||||
padding: 8px 10px;
|
||||
overflow-x: auto;
|
||||
|
|
@ -946,23 +1394,23 @@ body {
|
|||
text-align: left;
|
||||
}
|
||||
.card-body th {
|
||||
background: rgba(255, 200, 140, 0.08);
|
||||
color: rgba(255, 200, 140, 0.9);
|
||||
background: rgba(255, 223, 198, 0.1);
|
||||
color: rgba(255, 233, 214, 0.94);
|
||||
font-weight: 600;
|
||||
}
|
||||
.card-body a {
|
||||
color: rgba(255, 200, 140, 0.85);
|
||||
color: rgba(255, 233, 214, 0.9);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.card-body blockquote {
|
||||
border-left: 3px solid rgba(255, 200, 140, 0.3);
|
||||
border-left: 3px solid rgba(255, 223, 198, 0.28);
|
||||
margin: 6px 0;
|
||||
padding-left: 10px;
|
||||
color: rgba(255, 245, 235, 0.55);
|
||||
}
|
||||
.card-body hr {
|
||||
border: none;
|
||||
border-top: 1px solid rgba(255, 200, 140, 0.15);
|
||||
border-top: 1px solid rgba(255, 223, 198, 0.16);
|
||||
margin: 8px 0;
|
||||
}
|
||||
.card-body img {
|
||||
|
|
@ -979,10 +1427,10 @@ body {
|
|||
margin-top: 4px;
|
||||
}
|
||||
.card-choice-btn {
|
||||
background: rgba(255, 200, 140, 0.12);
|
||||
border: 1px solid rgba(255, 200, 140, 0.35);
|
||||
background: rgba(255, 223, 198, 0.12);
|
||||
border: 1px solid rgba(255, 223, 198, 0.34);
|
||||
border-radius: 8px;
|
||||
color: rgba(255, 245, 235, 0.9);
|
||||
color: var(--card-text);
|
||||
font-family: var(--card-font);
|
||||
font-size: 0.75rem;
|
||||
padding: 6px 14px;
|
||||
|
|
@ -994,11 +1442,11 @@ body {
|
|||
text-align: center;
|
||||
}
|
||||
.card-choice-btn:hover {
|
||||
background: rgba(255, 200, 140, 0.25);
|
||||
border-color: rgba(255, 200, 140, 0.65);
|
||||
background: rgba(255, 223, 198, 0.22);
|
||||
border-color: rgba(255, 223, 198, 0.56);
|
||||
}
|
||||
.card-choice-btn:active {
|
||||
background: rgba(255, 200, 140, 0.38);
|
||||
background: rgba(255, 223, 198, 0.32);
|
||||
}
|
||||
.card-choice-btn:disabled {
|
||||
opacity: 0.4;
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ export type ServerMessage =
|
|||
priority: number;
|
||||
state: CardState;
|
||||
template_key: string;
|
||||
template_state: Record<string, JsonValue>;
|
||||
context_summary: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
|
|
@ -94,6 +95,7 @@ export interface CardItem {
|
|||
priority: number;
|
||||
state: CardState;
|
||||
templateKey?: string;
|
||||
templateState?: Record<string, JsonValue>;
|
||||
contextSummary?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue