- library deleteMutation.onSuccess: only paths the server really deleted leave the selection (accumulated across 200-path chunks); kept files stay checked, current focus cleared only when its file is gone; in-modal freed-file delete and card-delete-with-file prune the same way - usage modal: direct delete offered whenever valid_total === 0, regardless of invalid_total (dead references never block); invalid count note kept in both branches - e2e runner: isolated_data_removed recorded after the TemporaryDirectory context exits and exact child PIDs are waited on (daemon PID compared first); isolated dir recorded for verification - locate gold ring: static ring kept, pulse moved to a ::before feedback layer animated with transform/opacity only (no box-shadow repaint), gated to data-motion=full; calm/off/reduced-motion stay static - e2e: +14 checks (46 total) — mixed kept/deleted selection, failed request retry, cross-200-batch with kept file, invalid-only in-modal delete, ring computed-style/keyframe evidence; HEL884_STRICT=0 records the full before-fix failure table Co-authored-by: multica-agent <github@multica.ai>
265 lines
6.2 KiB
CSS
265 lines
6.2 KiB
CSS
/* Scope border-box to the canvas; shared legacy chat uses content-box elsewhere. */
|
|
.canvas-root,
|
|
.canvas-root *,
|
|
.canvas-root *::before,
|
|
.canvas-root *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
/* Canvas surfaces consume the approved shared theme and motion tokens. */
|
|
.canvas-root .svelte-flow {
|
|
--xy-background-color-default: var(--board-bg);
|
|
--xy-background-pattern-color-default: var(--board-dot);
|
|
--xy-controls-button-background-color-default: transparent;
|
|
--xy-controls-button-background-color-hover-default: rgb(var(--ink) / 0.06);
|
|
--xy-controls-button-color-default: var(--tx-2);
|
|
--xy-controls-button-color-hover-default: var(--tx-1);
|
|
--xy-controls-button-border-color-default: transparent;
|
|
}
|
|
.canvas-root .svelte-flow__panel {
|
|
margin: 14px;
|
|
}
|
|
.canvas-root .svelte-flow__controls,
|
|
.canvas-root .svelte-flow__minimap {
|
|
padding: 4px;
|
|
border: 1px solid var(--line-2);
|
|
border-radius: var(--r-md);
|
|
background: var(--glass);
|
|
backdrop-filter: blur(14px);
|
|
box-shadow: var(--sh-1);
|
|
overflow: hidden;
|
|
}
|
|
.canvas-root .svelte-flow__controls {
|
|
gap: 2px;
|
|
height: 160px;
|
|
}
|
|
.canvas-root .svelte-flow__controls-button {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 7px;
|
|
border-radius: 7px;
|
|
}
|
|
.canvas-root .svelte-flow__minimap {
|
|
padding: 10px;
|
|
}
|
|
.canvas-root .svelte-flow__minimap svg {
|
|
display: block;
|
|
background: rgb(var(--ink) / 0.04);
|
|
border-radius: 5px;
|
|
}
|
|
.canvas-root .svelte-flow__minimap-mask {
|
|
fill: rgb(var(--ink) / 0.04);
|
|
stroke: color-mix(in srgb, var(--gold) 80%, var(--hi));
|
|
}
|
|
.canvas-card {
|
|
position: relative;
|
|
width: 240px;
|
|
border-radius: var(--r-lg);
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--line-2);
|
|
box-shadow: var(--sh-1);
|
|
cursor: grab;
|
|
transition:
|
|
box-shadow var(--t-base),
|
|
border-color var(--t-base);
|
|
--scene: var(--sc-image);
|
|
}
|
|
.canvas-card.artifact-node {
|
|
width: 220px;
|
|
border-radius: var(--r-md);
|
|
}
|
|
.canvas-card:hover {
|
|
box-shadow: var(--sh-2);
|
|
border-color: var(--line-3);
|
|
}
|
|
.canvas-card.a-in-frame,
|
|
.canvas-root .svelte-flow__node:focus-visible .canvas-card {
|
|
border-color: color-mix(in srgb, var(--scene) 45%, transparent);
|
|
}
|
|
/* HEL-884 locate deep-link: the looked-for card gets an unmistakable gold
|
|
ring until dismissed (20s) so it reads at any zoom. HEL-887: the ring
|
|
itself is a static layer; the pulse breathes on a separate ::before
|
|
feedback layer animated with transform/opacity only — composited, no
|
|
per-frame box-shadow repaint. */
|
|
.canvas-card.located {
|
|
border-color: var(--gold);
|
|
box-shadow:
|
|
0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent),
|
|
var(--sh-2);
|
|
}
|
|
.canvas-card.located::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -3px;
|
|
border-radius: calc(var(--r-lg) + 3px);
|
|
border: 3px solid color-mix(in srgb, var(--gold) 45%, transparent);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.canvas-card.artifact-node.located::before {
|
|
border-radius: calc(var(--r-md) + 3px);
|
|
}
|
|
html[data-motion="full"] .canvas-card.located::before {
|
|
animation: located-pulse 1.6s var(--ease-out) infinite;
|
|
}
|
|
@keyframes located-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 0;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
transform: scale(1.04);
|
|
}
|
|
}
|
|
.canvas-card:focus-visible {
|
|
outline: none;
|
|
}
|
|
.canvas-card:focus-visible::after,
|
|
.canvas-root .svelte-flow__node:focus-visible .canvas-card::after {
|
|
opacity: 1;
|
|
inset: var(--viewfinder-selected-inset);
|
|
}
|
|
.canvas-card header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 9px 10px 8px;
|
|
}
|
|
.canvas-card .title {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
color: var(--tx-1);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.canvas-card .kind-icon {
|
|
width: 22px;
|
|
height: 22px;
|
|
display: grid;
|
|
place-items: center;
|
|
flex-shrink: 0;
|
|
border-radius: 6px;
|
|
color: var(--kind-color);
|
|
background: color-mix(in srgb, var(--kind-color) 12%, transparent);
|
|
}
|
|
.canvas-card[data-kind="character"] {
|
|
--kind-color: var(--sc-agent);
|
|
}
|
|
.canvas-card[data-kind="location"],
|
|
.canvas-card[data-kind="scene"],
|
|
.canvas-card[data-kind="video"] {
|
|
--kind-color: var(--sc-video);
|
|
}
|
|
.canvas-card[data-kind="item"] {
|
|
--kind-color: var(--sc-project);
|
|
}
|
|
.canvas-card[data-kind="image"] {
|
|
--kind-color: var(--sc-image);
|
|
}
|
|
.canvas-card .play-badge {
|
|
display: grid;
|
|
place-items: center;
|
|
flex-shrink: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: rgb(var(--ink) / 0.06);
|
|
color: var(--tx-2);
|
|
}
|
|
.canvas-card .media {
|
|
position: relative;
|
|
height: 132px;
|
|
margin: 0 8px 8px;
|
|
border-radius: calc(var(--r-md) - 2px);
|
|
background: var(--desk-media-bg);
|
|
box-shadow: var(--media-shadow);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
.canvas-card.artifact-node .media {
|
|
height: 124px;
|
|
}
|
|
.canvas-card .media-el {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
.canvas-card .media-btn {
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
display: block;
|
|
}
|
|
.canvas-card .placeholder {
|
|
font-size: 10px;
|
|
letter-spacing: 0.08em;
|
|
color: var(--tx-3);
|
|
}
|
|
.canvas-card .out-kind {
|
|
position: absolute;
|
|
right: 6px;
|
|
bottom: 6px;
|
|
height: 18px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0 6px;
|
|
border-radius: 4px;
|
|
font-size: 10.5px;
|
|
color: var(--on-media);
|
|
background: var(--media-scrim);
|
|
border: 1px solid var(--line-2);
|
|
pointer-events: none;
|
|
}
|
|
.canvas-card footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0 10px 9px;
|
|
font-size: 11px;
|
|
color: var(--tx-3);
|
|
}
|
|
.canvas-card footer .node-id {
|
|
margin-left: auto;
|
|
font-family: var(--mono);
|
|
}
|
|
.canvas-card .type-chip {
|
|
font-size: 10.5px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
color: var(--kind-color);
|
|
background: color-mix(in srgb, var(--kind-color) 12%, transparent);
|
|
height: 18px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
.canvas-card .status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 10.5px;
|
|
}
|
|
.canvas-card .running-badge {
|
|
color: var(--info);
|
|
}
|
|
.canvas-card .running-badge::before {
|
|
content: "";
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--info);
|
|
}
|
|
.canvas-card .failed-badge {
|
|
color: var(--err);
|
|
}
|