@vibe-forge/client 0.11.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +6 -11
- package/dist/assets/{arc-h39NrT24.js → arc-CbOXL0l9.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-CaDg46I6.js → blockDiagram-c4efeb88-CqxINvsS.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-CDqjcF9U.js → c4Diagram-c83219d4-BKazU0hb.js} +1 -1
- package/dist/assets/channel-Dnopc5A6.js +1 -0
- package/dist/assets/{classDiagram-beda092f-BDnZm8nO.js → classDiagram-beda092f-fAFX5BpB.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-BUi85KJW.js → classDiagram-v2-2358418a-w1VkNGJj.js} +1 -1
- package/dist/assets/clone-sQthahUA.js +1 -0
- package/dist/assets/{createText-1719965b-Ca5dEwfo.js → createText-1719965b-CEinakVP.js} +1 -1
- package/dist/assets/{cssMode-Ysz7NfYo.js → cssMode-DPqRki4y.js} +1 -1
- package/dist/assets/{edges-96097737-CdSKqxZt.js → edges-96097737-Cb0F1_3K.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-B-veAUv_.js → erDiagram-0228fc6a-C-N2fx-J.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DD8Cx7_9.js → flowDb-c6c81e3f-D1Xz_8Gf.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-9f-_x1ET.js → flowDiagram-50d868cf-DyPSZyAj.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-OazrdWQO.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-5RhpQM4M.js → flowchart-elk-definition-6af322e1-Dr1DDXwE.js} +1 -1
- package/dist/assets/{freemarker2-SgMdIXw4.js → freemarker2-C3DvPFaK.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-DnxNghZA.js → ganttDiagram-a2739b55-DmvY1GRj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-CBvS3Tf9.js → gitGraphDiagram-82fe8481-CoXfPYYi.js} +1 -1
- package/dist/assets/{graph-CkHF299-.js → graph-BkDQy7Qt.js} +1 -1
- package/dist/assets/{handlebars-C57IyLUe.js → handlebars-BcTFdqjl.js} +1 -1
- package/dist/assets/{html-YsDy5wvW.js → html-Dg-O6XFr.js} +1 -1
- package/dist/assets/{htmlMode-7o_VDODD.js → htmlMode-B_wqYWvn.js} +1 -1
- package/dist/assets/{index-5325376f-BzOVQPu-.js → index-5325376f-kxPTR3_e.js} +1 -1
- package/dist/assets/index-o93dlo92.css +32 -0
- package/dist/assets/{index-BHFpctk6.js → index-wkhI4dr6.js} +357 -337
- package/dist/assets/{infoDiagram-8eee0895-DJ-UI1h4.js → infoDiagram-8eee0895-BEvqkwPI.js} +1 -1
- package/dist/assets/{javascript-BHQ9NEZr.js → javascript-DhlOH8_z.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-DwfykcG9.js → journeyDiagram-c64418c1-gKtLYmmp.js} +1 -1
- package/dist/assets/{jsonMode-3QjftkMM.js → jsonMode-DxTbF9OD.js} +1 -1
- package/dist/assets/{layout-CbViRb_b.js → layout-CDaZEk6E.js} +1 -1
- package/dist/assets/{line-DBdBvv9D.js → line-DNRQu8iq.js} +1 -1
- package/dist/assets/{linear-BDAfhcjn.js → linear-Cph9Z6_j.js} +1 -1
- package/dist/assets/{liquid-B0cPPzIR.js → liquid-ByZ6JgRG.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-IOxbobOz.js → lspLanguageFeatures-DzvhkgnM.js} +1 -1
- package/dist/assets/{mdx-Dma_RA8P.js → mdx-D8RGHTl6.js} +1 -1
- package/dist/assets/{mermaid.core-Cvn8Go4x.js → mermaid.core-BgcryF__.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-DEnYq0Lc.js → mindmap-definition-8da855dc-WrxK0FcB.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-ZC4j8sHU.js → pieDiagram-a8764435-VsZBsiQy.js} +1 -1
- package/dist/assets/{python-Be0WX4q5.js → python-CXVtk_cg.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-DUaqHlIB.js → quadrantDiagram-1e28029f-BVlgwOvU.js} +1 -1
- package/dist/assets/{razor-Tjhny-uT.js → razor-0tind7h2.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-DjSal3es.js → requirementDiagram-08caed73-CpPMPoYp.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BMDXMrMz.js → sankeyDiagram-a04cb91d-Cm5nnRmc.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-CQl9YUlH.js → sequenceDiagram-c5b8d532-DpMlJvJB.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-DG7mU9jD.js → stateDiagram-1ecb1508-DU1zc7vq.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-DTbR_azy.js → stateDiagram-v2-c2b004d7-D-0RgmAp.js} +1 -1
- package/dist/assets/{styles-b4e223ce-C9aS3zb8.js → styles-b4e223ce-BSO-yNWV.js} +1 -1
- package/dist/assets/{styles-ca3715f6-Bh3keVTZ.js → styles-ca3715f6-CHnsn2Ro.js} +1 -1
- package/dist/assets/{styles-d45a18b0-BDcLLa65.js → styles-d45a18b0-B-rVGjEq.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-B9H5ZS_9.js → svgDrawCommon-b86b1483-CA3Pl89f.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-DCMYCBhK.js → timeline-definition-faaaa080-BcihLR6s.js} +1 -1
- package/dist/assets/{tsMode-DVqLsn98.js → tsMode-D9GGa5Ur.js} +1 -1
- package/dist/assets/{typescript-wMVyXw7G.js → typescript-BT9CK_EL.js} +1 -1
- package/dist/assets/{xml-w0gzmn0c.js → xml-DNO75J-T.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-CdxyD3K5.js → xychartDiagram-f5964ef8-DJTwe32X.js} +1 -1
- package/dist/assets/{yaml-C29TL1ed.js → yaml-7CVzhiP2.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +13 -10
- package/src/api/git.ts +12 -0
- package/src/api/sessions.ts +61 -3
- package/src/api.ts +8 -0
- package/src/components/ArchiveView.scss +143 -54
- package/src/components/ArchiveView.tsx +181 -167
- package/src/components/CodeBlock.scss +5 -0
- package/src/components/ConfigView.scss +142 -31
- package/src/components/ConfigView.tsx +161 -86
- package/src/components/MarkdownContent.tsx +7 -0
- package/src/components/NavRail.scss +248 -0
- package/src/components/NavRail.tsx +80 -107
- package/src/components/NavRailCompact.tsx +107 -0
- package/src/components/NavRailCompactMoreSheet.tsx +141 -0
- package/src/components/ShortcutTooltip.tsx +4 -2
- package/src/components/Sidebar.scss +51 -0
- package/src/components/Sidebar.tsx +43 -16
- package/src/components/automation-view/RuleFormPanel.scss +40 -13
- package/src/components/automation-view/RuleSidebar.scss +73 -47
- package/src/components/automation-view/RuleSidebar.tsx +9 -13
- package/src/components/automation-view/RunHistoryPanel.scss +141 -13
- package/src/components/automation-view/RunHistoryPanel.tsx +203 -161
- package/src/components/automation-view/TaskList.scss +44 -13
- package/src/components/automation-view/TriggerList.scss +46 -14
- package/src/components/automation-view/index.scss +82 -10
- package/src/components/automation-view/index.tsx +108 -55
- package/src/components/benchmark-view/BenchmarkCasePanel.scss +36 -16
- package/src/components/benchmark-view/BenchmarkSidebar.scss +44 -22
- package/src/components/benchmark-view/BenchmarkSidebar.tsx +0 -6
- package/src/components/benchmark-view/BenchmarkView.scss +63 -20
- package/src/components/benchmark-view/index.tsx +71 -34
- package/src/components/chat/ChatComposerCard.scss +4 -0
- package/src/components/chat/ChatHeader.scss +187 -0
- package/src/components/chat/ChatHeader.tsx +206 -56
- package/src/components/chat/ChatHistoryView.tsx +63 -2
- package/src/components/chat/ChatTimelineView.scss +94 -1
- package/src/components/chat/ChatTimelineView.tsx +42 -0
- package/src/components/chat/NewSessionGuide.scss +139 -1
- package/src/components/chat/NewSessionGuide.tsx +57 -100
- package/src/components/chat/NewSessionGuideCompactPanel.tsx +130 -0
- package/src/components/chat/NewSessionGuideGrid.tsx +141 -0
- package/src/components/chat/git-controls/BranchSwitcherDropdown.tsx +61 -56
- package/src/components/chat/git-controls/BranchSwitcherResults.tsx +167 -0
- package/src/components/chat/git-controls/BranchTreeEntries.tsx +99 -0
- package/src/components/chat/git-controls/ChatGitControls.scss +437 -5
- package/src/components/chat/git-controls/ChatGitControls.tsx +136 -109
- package/src/components/chat/git-controls/DraftGitControls.tsx +91 -0
- package/src/components/chat/git-controls/GitOperationsDropdown.tsx +10 -2
- package/src/components/chat/git-controls/GitWorktreeDropdown.tsx +301 -28
- package/src/components/chat/git-controls/git-branch-tree.ts +148 -0
- package/src/components/chat/git-controls/use-chat-draft-git-controls.ts +168 -0
- package/src/components/chat/git-controls/use-chat-git-controls.ts +76 -3
- package/src/components/chat/messages/MessageContextMenu.tsx +3 -1
- package/src/components/chat/messages/MessageItem.scss +78 -4
- package/src/components/chat/messages/MessageItem.tsx +47 -3
- package/src/components/chat/sender/@components/adapter-select/AdapterSelectControl.scss +15 -0
- package/src/components/chat/sender/@components/reference-actions/ReferenceActionsControl.scss +17 -0
- package/src/components/chat/sender/@components/reference-actions/ReferencePermissionActionsPopover.tsx +4 -1
- package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.scss +15 -2
- package/src/components/chat/sender/@components/sender-body/SenderBody.tsx +3 -0
- package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-theme.ts +52 -3
- package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.scss +12 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectBase.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectShared.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.scss +63 -0
- package/src/components/chat/sender/@core/get-sender-runtime-state.ts +1 -1
- package/src/components/chat/sender/@hooks/use-model-select-browser.tsx +4 -2
- package/src/components/chat/sender/@types/sender-props.ts +1 -0
- package/src/components/chat/sender/Sender.scss +1 -1
- package/src/components/chat/sender/Sender.tsx +1 -0
- package/src/components/chat/session-timeline-panel/EventList.scss +88 -0
- package/src/components/chat/session-timeline-panel/EventList.tsx +99 -47
- package/src/components/chat/session-timeline-panel/gantt.ts +23 -7
- package/src/components/chat/session-timeline-panel/git-graph.ts +6 -1
- package/src/components/chat/session-timeline-panel/index.scss +14 -1
- package/src/components/chat/session-timeline-panel/index.tsx +86 -10
- package/src/components/chat/session-timeline-panel/types.ts +4 -0
- package/src/components/chat/status-bar/ChatStatusBar.scss +27 -0
- package/src/components/chat/status-bar/ChatStatusBar.tsx +39 -0
- package/src/components/chat/terminal/ChatTerminalView.tsx +6 -0
- package/src/components/chat/tools/core/ToolCallBox.scss +19 -0
- package/src/components/chat/tools/core/ToolGroup.scss +32 -0
- package/src/components/chat/tools/task/components/TaskToolCard.scss +59 -1
- package/src/components/config/ConfigEditors.scss +20 -6
- package/src/components/config/ConfigFieldRow.scss +57 -17
- package/src/components/config/ConfigSectionForm.scss +10 -4
- package/src/components/config/ConfigSectionPanel.tsx +18 -11
- package/src/components/config/configSchema.ts +1 -0
- package/src/components/config/record-editors/RecordEditors.scss +42 -9
- package/src/components/dock-panel/DockPanel.scss +6 -2
- package/src/components/dock-panel/DockPanel.tsx +12 -16
- package/src/components/knowledge-base/KnowledgeBaseView.scss +180 -6
- package/src/components/knowledge-base/KnowledgeBaseView.tsx +98 -26
- package/src/components/knowledge-base/components/ActionButton.scss +4 -0
- package/src/components/knowledge-base/components/EmptyState.scss +5 -8
- package/src/components/knowledge-base/components/EntitiesTab.tsx +8 -2
- package/src/components/knowledge-base/components/EntityItem.scss +10 -3
- package/src/components/knowledge-base/components/FilterBar.scss +13 -2
- package/src/components/knowledge-base/components/FlowsTab.tsx +8 -2
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +2 -23
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +0 -5
- package/src/components/knowledge-base/components/KnowledgeList.scss +15 -6
- package/src/components/knowledge-base/components/LoadingState.scss +4 -0
- package/src/components/knowledge-base/components/RuleItem.scss +86 -0
- package/src/components/knowledge-base/components/RuleItem.tsx +2 -0
- package/src/components/knowledge-base/components/RulesTab.tsx +8 -2
- package/src/components/knowledge-base/components/SectionHeader.scss +3 -18
- package/src/components/knowledge-base/components/SectionHeader.tsx +3 -7
- package/src/components/knowledge-base/components/SkillsTab.tsx +8 -3
- package/src/components/knowledge-base/components/SpecItem.scss +16 -7
- package/src/components/layout/@hooks/use-mobile-sidebar-modal.ts +190 -0
- package/src/components/layout/AppShell.scss +106 -6
- package/src/components/layout/AppShell.tsx +118 -10
- package/src/components/layout/PageShell.scss +41 -0
- package/src/components/layout/PageShell.tsx +32 -0
- package/src/components/layout/mobile-sidebar-constants.ts +1 -0
- package/src/components/nav-rail-compact-config.ts +114 -0
- package/src/components/nav-rail-items.tsx +181 -0
- package/src/components/sidebar/SessionContextMenu.tsx +3 -1
- package/src/components/sidebar/SessionItem.scss +62 -0
- package/src/components/sidebar/SessionItem.tsx +97 -52
- package/src/components/sidebar/SessionList.tsx +6 -0
- package/src/components/sidebar/SidebarHeader.scss +49 -0
- package/src/components/sidebar/SidebarHeader.tsx +27 -5
- package/src/components/sidebar/SidebarHeaderBatchActions.tsx +8 -4
- package/src/components/sidebar/SidebarHeaderSearchActions.tsx +6 -3
- package/src/components/sidebar/SidebarUtilityFooter.tsx +69 -0
- package/src/components/workspace/ContextFilePicker.tsx +12 -4
- package/src/hooks/chat/chat-session-workspace-draft.ts +25 -0
- package/src/hooks/chat/use-chat-scroll.ts +24 -7
- package/src/hooks/chat/use-chat-session-actions.ts +19 -2
- package/src/hooks/use-responsive-layout.ts +115 -0
- package/src/resources/adapters.ts +15 -0
- package/src/resources/locales/en.json +52 -0
- package/src/resources/locales/zh.json +52 -0
- package/src/routes/ChatRoute.scss +113 -14
- package/src/routes/ChatRoute.tsx +29 -35
- package/src/store/index.ts +2 -0
- package/dist/assets/channel-CBULQbJz.js +0 -1
- package/dist/assets/clone-dkS7LczW.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-1miffU4x.js +0 -1
- package/dist/assets/index-D_XqxIvp.css +0 -32
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
.benchmark-view {
|
|
2
2
|
// Sidebar container
|
|
3
3
|
&__sidebar {
|
|
4
|
-
width:
|
|
4
|
+
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
gap: 16px;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
padding: 24px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__sidebar-header {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
8
|
gap: 8px;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
height: 32px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__sidebar-title.ant-typography {
|
|
23
|
-
font-size: 18px;
|
|
24
|
-
margin: 0;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: 10px 12px 12px;
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
&__sep.ant-divider {
|
|
@@ -40,6 +26,24 @@
|
|
|
40
26
|
align-items: center;
|
|
41
27
|
gap: 6px;
|
|
42
28
|
flex-shrink: 0;
|
|
29
|
+
|
|
30
|
+
.ant-btn {
|
|
31
|
+
width: 28px;
|
|
32
|
+
min-width: 28px;
|
|
33
|
+
height: 28px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: none;
|
|
36
|
+
border-radius: 6px;
|
|
37
|
+
background: transparent;
|
|
38
|
+
color: var(--sub-text-color);
|
|
39
|
+
transition: background-color .2s ease, color .2s ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ant-btn:hover,
|
|
43
|
+
.ant-btn:focus-visible {
|
|
44
|
+
background: var(--nav-hover-bg, #f3f4f6);
|
|
45
|
+
color: var(--text-color);
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
&__search-icon {
|
|
@@ -47,11 +51,20 @@
|
|
|
47
51
|
color: var(--sub-text-color);
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
&__search .ant-input-affix-wrapper {
|
|
55
|
+
height: 30px;
|
|
56
|
+
border-radius: 6px;
|
|
57
|
+
background: var(--bg-color);
|
|
58
|
+
padding: 0 8px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
// Tree
|
|
51
63
|
&__tree-shell {
|
|
52
64
|
flex: 1;
|
|
53
65
|
min-height: 0;
|
|
54
66
|
overflow: auto;
|
|
67
|
+
padding-right: 2px;
|
|
55
68
|
}
|
|
56
69
|
|
|
57
70
|
&__tree-shell .ant-tree {
|
|
@@ -107,21 +120,30 @@
|
|
|
107
120
|
display: flex;
|
|
108
121
|
align-items: center;
|
|
109
122
|
gap: 6px;
|
|
110
|
-
padding:
|
|
111
|
-
border
|
|
123
|
+
padding: 8px;
|
|
124
|
+
border: 1px solid var(--border-color);
|
|
125
|
+
border-radius: 8px;
|
|
112
126
|
min-width: 0;
|
|
113
|
-
|
|
127
|
+
background: var(--bg-color);
|
|
128
|
+
transition: background-color .15s, border-color .15s;
|
|
114
129
|
}
|
|
115
130
|
|
|
116
131
|
&__tree-category {
|
|
117
|
-
padding:
|
|
132
|
+
padding: 8px;
|
|
118
133
|
}
|
|
119
134
|
|
|
120
135
|
&__tree-shell .ant-tree-node-content-wrapper:hover &__tree-category,
|
|
121
136
|
&__tree-shell .ant-tree-node-content-wrapper:hover &__tree-case,
|
|
122
137
|
&__tree-shell .ant-tree-node-content-wrapper.ant-tree-node-selected
|
|
123
138
|
&__tree-case {
|
|
124
|
-
background: var(--
|
|
139
|
+
background: var(--sidebar-hover-bg, #e5e5e5);
|
|
140
|
+
border-color: var(--sidebar-hover-bg, #e5e5e5);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__tree-shell .ant-tree-node-content-wrapper.ant-tree-node-selected
|
|
144
|
+
&__tree-case {
|
|
145
|
+
border-color: var(--primary-color);
|
|
146
|
+
background: var(--primary-soft-bg);
|
|
125
147
|
}
|
|
126
148
|
|
|
127
149
|
&__tree-icon {
|
|
@@ -200,12 +200,6 @@ export function BenchmarkSidebar({
|
|
|
200
200
|
|
|
201
201
|
return (
|
|
202
202
|
<div className='benchmark-view__sidebar'>
|
|
203
|
-
<div className='benchmark-view__sidebar-header'>
|
|
204
|
-
<Typography.Title level={4} className='benchmark-view__sidebar-title'>
|
|
205
|
-
{t('benchmark.title')}
|
|
206
|
-
</Typography.Title>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
203
|
<div className='benchmark-view__search-row'>
|
|
210
204
|
<Input
|
|
211
205
|
value={query}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
.benchmark-view {
|
|
2
|
+
&__body {
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
gap: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__mobile-switcher-shell {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
2
12
|
display: flex;
|
|
3
13
|
height: 100%;
|
|
4
14
|
overflow: hidden;
|
|
@@ -7,18 +17,21 @@
|
|
|
7
17
|
display: flex;
|
|
8
18
|
flex-direction: column;
|
|
9
19
|
overflow: hidden;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
background: var(--border-color);
|
|
20
|
+
width: var(--subpage-secondary-panel-width);
|
|
21
|
+
min-width: var(--subpage-secondary-panel-width);
|
|
22
|
+
max-width: var(--subpage-secondary-panel-width);
|
|
23
|
+
background: var(--sub-bg-color);
|
|
15
24
|
}
|
|
16
25
|
|
|
17
26
|
&__right {
|
|
18
27
|
flex: 1;
|
|
19
28
|
min-width: 0;
|
|
20
29
|
overflow: hidden;
|
|
21
|
-
|
|
30
|
+
margin: var(--subpage-content-card-gap);
|
|
31
|
+
margin-left: 0;
|
|
32
|
+
padding: 10px 12px 12px;
|
|
33
|
+
border-radius: var(--subpage-content-card-radius);
|
|
34
|
+
background: var(--subpage-content-card-bg);
|
|
22
35
|
}
|
|
23
36
|
|
|
24
37
|
&__canvas {
|
|
@@ -43,24 +56,19 @@
|
|
|
43
56
|
|
|
44
57
|
@media (max-width: 1100px) {
|
|
45
58
|
.benchmark-view {
|
|
46
|
-
|
|
59
|
+
&__body {
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
}
|
|
47
62
|
|
|
48
63
|
&__left {
|
|
49
64
|
width: 100%;
|
|
50
65
|
min-width: 0;
|
|
51
|
-
max-height:
|
|
52
|
-
padding-right: 0;
|
|
53
|
-
padding: 16px 16px 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__divider {
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 1px;
|
|
66
|
+
max-height: 320px;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
&__right {
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
margin-top: 0;
|
|
71
|
+
margin-left: var(--subpage-content-card-gap);
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
}
|
|
@@ -68,11 +76,46 @@
|
|
|
68
76
|
@media (max-width: 720px) {
|
|
69
77
|
.benchmark-view {
|
|
70
78
|
&__right {
|
|
71
|
-
padding:
|
|
79
|
+
padding: 10px 12px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (max-width: 960px) {
|
|
85
|
+
.benchmark-view--compact {
|
|
86
|
+
.benchmark-view__mobile-switcher-shell {
|
|
87
|
+
display: block;
|
|
88
|
+
padding: 12px;
|
|
89
|
+
padding-bottom: 0;
|
|
72
90
|
}
|
|
73
91
|
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
.benchmark-view__mobile-switcher {
|
|
93
|
+
width: 100%;
|
|
94
|
+
|
|
95
|
+
.ant-segmented-group {
|
|
96
|
+
gap: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ant-segmented-item {
|
|
100
|
+
min-height: 32px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.benchmark-view__left,
|
|
105
|
+
.benchmark-view__right {
|
|
106
|
+
width: auto;
|
|
107
|
+
min-width: 0;
|
|
108
|
+
max-width: none;
|
|
109
|
+
max-height: none;
|
|
110
|
+
margin: 12px;
|
|
111
|
+
margin-top: 12px;
|
|
112
|
+
border-radius: var(--subpage-content-card-radius);
|
|
113
|
+
background: var(--subpage-content-card-bg);
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.benchmark-view__right {
|
|
118
|
+
padding: 12px;
|
|
76
119
|
}
|
|
77
120
|
}
|
|
78
121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './BenchmarkView.scss'
|
|
2
2
|
|
|
3
|
-
import { App } from 'antd'
|
|
3
|
+
import { App, Segmented } from 'antd'
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
|
5
5
|
import { useTranslation } from 'react-i18next'
|
|
6
6
|
import useSWR from 'swr'
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
listBenchmarkCategories,
|
|
14
14
|
startBenchmarkRun
|
|
15
15
|
} from '#~/api.js'
|
|
16
|
+
import { PageShell } from '#~/components/layout/PageShell'
|
|
17
|
+
import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
|
|
16
18
|
import { useQueryParams } from '#~/hooks/useQueryParams.js'
|
|
17
19
|
import type { BenchmarkCase } from '@vibe-forge/types'
|
|
18
20
|
|
|
@@ -24,12 +26,15 @@ import { isTerminalRun } from './utils.js'
|
|
|
24
26
|
export function BenchmarkView() {
|
|
25
27
|
const { t } = useTranslation()
|
|
26
28
|
const { message } = App.useApp()
|
|
29
|
+
const { isCompactLayout, isTouchInteraction } = useResponsiveLayout()
|
|
27
30
|
|
|
28
31
|
// State
|
|
29
32
|
const [activeRunId, setActiveRunId] = useState('')
|
|
30
33
|
const [treeQuery, setTreeQuery] = useState('')
|
|
31
34
|
const [expandedKeys, setExpandedKeys] = useState<string[]>([])
|
|
32
35
|
const [checkedKeys, setCheckedKeys] = useState<string[]>([])
|
|
36
|
+
const [mobilePanel, setMobilePanel] = useState<'cases' | 'details'>('cases')
|
|
37
|
+
const isCompactView = isCompactLayout || isTouchInteraction
|
|
33
38
|
|
|
34
39
|
const { values, update } = useQueryParams<BenchmarkQueryParams>({
|
|
35
40
|
keys: ['category', 'title'],
|
|
@@ -147,6 +152,13 @@ export function BenchmarkView() {
|
|
|
147
152
|
}
|
|
148
153
|
}, [selectedCase, update, values.category, values.title])
|
|
149
154
|
|
|
155
|
+
useEffect(() => {
|
|
156
|
+
if (!isCompactView) return
|
|
157
|
+
if (selectedCase == null) {
|
|
158
|
+
setMobilePanel('cases')
|
|
159
|
+
}
|
|
160
|
+
}, [isCompactView, selectedCase])
|
|
161
|
+
|
|
150
162
|
useEffect(() => {
|
|
151
163
|
if (!isTerminalRun(activeRun)) return
|
|
152
164
|
void mutateCases()
|
|
@@ -161,40 +173,65 @@ export function BenchmarkView() {
|
|
|
161
173
|
}, [activeRun, activeRunId, message, mutateCases, mutateCategories, mutateResult, mutateRun, t])
|
|
162
174
|
|
|
163
175
|
const checkedCaseCount = checkedKeys.filter(k => k.startsWith('case:')).length
|
|
176
|
+
const showCases = !isCompactView || mobilePanel === 'cases'
|
|
177
|
+
const showDetails = !isCompactView || mobilePanel === 'details'
|
|
164
178
|
|
|
165
179
|
return (
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
180
|
+
<PageShell
|
|
181
|
+
className={`benchmark-view ${isCompactView ? 'benchmark-view--compact' : ''}`}
|
|
182
|
+
bodyClassName='benchmark-view__body'
|
|
183
|
+
>
|
|
184
|
+
{isCompactView && (
|
|
185
|
+
<div className='benchmark-view__mobile-switcher-shell'>
|
|
186
|
+
<Segmented
|
|
187
|
+
block
|
|
188
|
+
className='benchmark-view__mobile-switcher'
|
|
189
|
+
value={mobilePanel}
|
|
190
|
+
onChange={(value) => setMobilePanel(value as 'cases' | 'details')}
|
|
191
|
+
options={[
|
|
192
|
+
{ label: t('benchmark.mobileCases'), value: 'cases' },
|
|
193
|
+
{ label: t('benchmark.mobileDetails'), value: 'details', disabled: selectedCase == null }
|
|
194
|
+
]}
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
)}
|
|
198
|
+
{showCases && (
|
|
199
|
+
<div className='benchmark-view__left'>
|
|
200
|
+
<BenchmarkSidebar
|
|
201
|
+
cases={cases}
|
|
202
|
+
categories={categories}
|
|
203
|
+
selectedCase={selectedCase}
|
|
204
|
+
query={treeQuery}
|
|
205
|
+
expandedKeys={expandedKeys}
|
|
206
|
+
checkedKeys={checkedKeys}
|
|
207
|
+
checkedCaseCount={checkedCaseCount}
|
|
208
|
+
onQueryChange={setTreeQuery}
|
|
209
|
+
onExpandedKeysChange={setExpandedKeys}
|
|
210
|
+
onCheckedKeysChange={setCheckedKeys}
|
|
211
|
+
onSelectCase={(category, title) => {
|
|
212
|
+
update({ category, title })
|
|
213
|
+
if (isCompactView) {
|
|
214
|
+
setMobilePanel('details')
|
|
215
|
+
}
|
|
216
|
+
}}
|
|
217
|
+
onRunCase={(item) => void handleRunSpecificCase(item)}
|
|
218
|
+
onRunCategory={(category) => void handleRunCategory(category)}
|
|
219
|
+
onBatchRun={() => void handleBatchRun()}
|
|
220
|
+
/>
|
|
221
|
+
</div>
|
|
222
|
+
)}
|
|
223
|
+
{showDetails && (
|
|
224
|
+
<div className='benchmark-view__right'>
|
|
225
|
+
<BenchmarkCasePanel
|
|
226
|
+
selectedCase={selectedCase}
|
|
227
|
+
latestResult={latestResult}
|
|
228
|
+
activeRun={activeRun}
|
|
229
|
+
activeRunId={activeRunId}
|
|
230
|
+
progressPercent={progressPercent}
|
|
231
|
+
onRunCase={() => void (selectedCase && handleRunSpecificCase(selectedCase))}
|
|
232
|
+
/>
|
|
233
|
+
</div>
|
|
234
|
+
)}
|
|
235
|
+
</PageShell>
|
|
199
236
|
)
|
|
200
237
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--chat-composer-card-border: var(--border-color);
|
|
4
4
|
|
|
5
5
|
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
6
7
|
display: flex;
|
|
7
8
|
flex-direction: column;
|
|
8
9
|
overflow: hidden;
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
|
|
31
32
|
&__summary {
|
|
32
33
|
width: 100%;
|
|
34
|
+
min-width: 0;
|
|
33
35
|
margin: 0;
|
|
34
36
|
border: none;
|
|
35
37
|
min-height: 36px;
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
|
|
51
53
|
&__content {
|
|
52
54
|
display: grid;
|
|
55
|
+
min-width: 0;
|
|
53
56
|
grid-template-rows: 0fr;
|
|
54
57
|
opacity: 0;
|
|
55
58
|
transition: grid-template-rows .24s ease, opacity .18s ease;
|
|
@@ -57,6 +60,7 @@
|
|
|
57
60
|
|
|
58
61
|
&__body {
|
|
59
62
|
min-height: 0;
|
|
63
|
+
min-width: 0;
|
|
60
64
|
overflow: hidden;
|
|
61
65
|
padding: 0 4px 4px;
|
|
62
66
|
}
|
|
@@ -30,6 +30,13 @@
|
|
|
30
30
|
min-width: 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
&-leading-actions {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 4px;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
&-title {
|
|
34
41
|
font-weight: 600;
|
|
35
42
|
color: var(--text-color);
|
|
@@ -41,6 +48,45 @@
|
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
50
|
|
|
51
|
+
.chat-header.is-compact {
|
|
52
|
+
padding: 10px 12px 8px;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
|
|
56
|
+
.chat-header-main {
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.chat-header-leading-actions {
|
|
62
|
+
gap: 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.chat-header-title {
|
|
66
|
+
line-height: 1.3;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.chat-header-actions {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
margin-left: auto;
|
|
74
|
+
justify-content: flex-end;
|
|
75
|
+
flex-wrap: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.chat-header-action-button.ant-btn.ant-btn-text {
|
|
79
|
+
width: 36px;
|
|
80
|
+
min-width: 36px;
|
|
81
|
+
height: 36px;
|
|
82
|
+
border-radius: 8px;
|
|
83
|
+
|
|
84
|
+
.chat-header-view-option.material-symbols-rounded {
|
|
85
|
+
font-size: 18px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
44
90
|
.chat-header-icon.material-symbols-rounded {
|
|
45
91
|
font-size: 18px;
|
|
46
92
|
}
|
|
@@ -49,6 +95,7 @@
|
|
|
49
95
|
display: flex;
|
|
50
96
|
align-items: center;
|
|
51
97
|
gap: 4px;
|
|
98
|
+
min-width: 0;
|
|
52
99
|
}
|
|
53
100
|
|
|
54
101
|
.chat-header-action-button.ant-btn.ant-btn-text {
|
|
@@ -586,6 +633,146 @@ html.dark .chat-header-action-button.ant-btn.ant-btn-text {
|
|
|
586
633
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
587
634
|
}
|
|
588
635
|
|
|
636
|
+
@media (max-width: 768px) {
|
|
637
|
+
.session-settings-drawer {
|
|
638
|
+
gap: 10px;
|
|
639
|
+
|
|
640
|
+
.settings-section {
|
|
641
|
+
gap: 10px;
|
|
642
|
+
|
|
643
|
+
.section-header {
|
|
644
|
+
font-size: 11px;
|
|
645
|
+
letter-spacing: .08em;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
&__form {
|
|
650
|
+
.config-view__field-row {
|
|
651
|
+
gap: 10px;
|
|
652
|
+
padding: 10px 12px;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.config-view__field-meta {
|
|
656
|
+
gap: 8px;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.config-view__field-title,
|
|
660
|
+
.config-view__field-desc {
|
|
661
|
+
white-space: normal;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.config-view__field-control {
|
|
665
|
+
min-width: 0;
|
|
666
|
+
width: 100%;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.config-view__array-list {
|
|
670
|
+
gap: 6px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.config-view__array-item {
|
|
674
|
+
align-items: flex-start;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.config-view__icon-button--compact {
|
|
678
|
+
width: 30px;
|
|
679
|
+
min-width: 30px;
|
|
680
|
+
height: 30px;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.config-view__icon-button--full {
|
|
684
|
+
width: 100%;
|
|
685
|
+
min-width: 100%;
|
|
686
|
+
height: 36px;
|
|
687
|
+
justify-content: flex-start;
|
|
688
|
+
gap: 6px;
|
|
689
|
+
padding: 0 12px;
|
|
690
|
+
border-radius: 8px;
|
|
691
|
+
border: 1px dashed var(--border-color) !important;
|
|
692
|
+
background: var(--sub-bg-color) !important;
|
|
693
|
+
color: var(--sub-text-color) !important;
|
|
694
|
+
align-self: stretch;
|
|
695
|
+
|
|
696
|
+
&::after {
|
|
697
|
+
content: attr(aria-label);
|
|
698
|
+
font-size: 12px;
|
|
699
|
+
font-weight: 500;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.session-tool-groups {
|
|
706
|
+
gap: 10px;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.session-tool-group-card {
|
|
710
|
+
padding: 12px 12px 0;
|
|
711
|
+
border-radius: 12px;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.session-tool-group-card__header {
|
|
715
|
+
align-items: flex-start;
|
|
716
|
+
padding-bottom: 10px;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.session-tool-group-card__title {
|
|
720
|
+
gap: 8px;
|
|
721
|
+
font-size: 12px;
|
|
722
|
+
|
|
723
|
+
.material-symbols-rounded {
|
|
724
|
+
width: 24px;
|
|
725
|
+
height: 24px;
|
|
726
|
+
border-radius: 8px;
|
|
727
|
+
font-size: 14px;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.session-tool-group-card__meta {
|
|
732
|
+
gap: 6px;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.session-tool-group-card__count {
|
|
736
|
+
padding: 1px 6px;
|
|
737
|
+
font-size: 11px;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.session-tool-group-card__list {
|
|
741
|
+
max-height: none;
|
|
742
|
+
margin: 0 -12px;
|
|
743
|
+
padding: 0 12px;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.session-tool-row {
|
|
747
|
+
height: 34px;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.session-debug-panel {
|
|
751
|
+
padding: 0 10px;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.session-debug-row {
|
|
755
|
+
grid-template-columns: 72px minmax(0, 1fr);
|
|
756
|
+
gap: 8px;
|
|
757
|
+
height: auto;
|
|
758
|
+
min-height: 34px;
|
|
759
|
+
padding: 6px 0;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.settings-footer {
|
|
763
|
+
gap: 16px;
|
|
764
|
+
padding-top: 16px;
|
|
765
|
+
|
|
766
|
+
.danger-zone {
|
|
767
|
+
.delete-session-row {
|
|
768
|
+
flex-direction: column;
|
|
769
|
+
align-items: stretch;
|
|
770
|
+
padding: 12px;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
589
776
|
html.dark {
|
|
590
777
|
.session-settings-drawer {
|
|
591
778
|
.settings-footer {
|