refactor(web): remove the dead right-panel and subagent-preview code
v0.1.1 replaced both surfaces: the session tray took the right panel's todo/tasks, and the in-place `?sub=` child view took the subagent preview. - delete `features/chat/side-panel.tsx` (nothing imported it since the tray landed) - delete `SubagentModal` and its private helpers (`SUB_BADGE`, `SUB_DOT`, `SubagentEntry`, `parseSubagentLines`, `SUB_ROLES`); the child view builds its timeline from the parent's entries instead of `subagent.read` - drop `chatCommands.readSubagent` (its only caller is gone) - drop the deprecated store slice `PreviewTarget` / `preview` / `setPreview`, including the session-migration re-key and the `PanelTab` alias - drop their exclusive CSS (`.sub-item*`, `.sub-preview*`, `.sub-steer`) and the 6 orphan catalog keys (chat.subagentTitle, chat.preview, chat.previewNote, chat.task, chat.currentSubagents, chat.steerRequired) - tests: remove the two SubagentModal cases and the preview/readSubagent expectations (295 tests, down from 297 — exactly the deleted cases) Verification: typecheck clean, vitest 295/295, vite build green, visual matrix 24/24 clean.
This commit is contained in:
1 parent
bcf50b516f
commit
3789394c85
12 files changed
+12
-653
No files matched your search
@@ -935,33 +935,6 @@
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
/* ---------- right panel: removed in v0.1.1(tray 取代;仅保留子代理条目样式) ---------- */
|
||||
.sub-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.sub-item:hover {
|
||||
background: var(--accent);
|
||||
}
|
||||
.sub-item__main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.sub-item__name {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 550;
|
||||
}
|
||||
.sub-item__meta {
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
|
||||
/* ---------- drawers(仅 <1000:会话树是抽屉) ---------- */
|
||||
.drawer-backdrop {
|
||||
position: fixed;
|
||||
@@ -1085,30 +1058,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- subagent preview modal ---------- */
|
||||
.sub-preview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.sub-preview__feed {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
max-height: 38dvh;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-3);
|
||||
border-radius: var(--radius);
|
||||
background: var(--background);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.sub-preview__note {
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
.sub-steer {
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
/* ---------- attachment / dispatch ---------- */
|
||||
.drop-zone {
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user