@vibe-forge/client 0.2.0-alpha.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.
Files changed (184) hide show
  1. package/LICENSE +21 -0
  2. package/cli.cjs +6 -0
  3. package/index.html +27 -0
  4. package/package.json +42 -0
  5. package/src/App.tsx +174 -0
  6. package/src/api.ts +241 -0
  7. package/src/components/ArchiveView.scss +168 -0
  8. package/src/components/ArchiveView.tsx +299 -0
  9. package/src/components/AutomationView/AutomationView.scss +26 -0
  10. package/src/components/AutomationView/RuleFormPanel.scss +129 -0
  11. package/src/components/AutomationView/RuleFormPanel.tsx +257 -0
  12. package/src/components/AutomationView/RuleSidebar.scss +219 -0
  13. package/src/components/AutomationView/RuleSidebar.tsx +258 -0
  14. package/src/components/AutomationView/RunHistoryPanel.scss +286 -0
  15. package/src/components/AutomationView/RunHistoryPanel.tsx +320 -0
  16. package/src/components/AutomationView/TaskList.scss +128 -0
  17. package/src/components/AutomationView/TaskList.tsx +79 -0
  18. package/src/components/AutomationView/TriggerList.scss +153 -0
  19. package/src/components/AutomationView/TriggerList.tsx +217 -0
  20. package/src/components/AutomationView/index.tsx +228 -0
  21. package/src/components/AutomationView/types.ts +21 -0
  22. package/src/components/Chat.scss +89 -0
  23. package/src/components/Chat.tsx +92 -0
  24. package/src/components/ConfigView.scss +185 -0
  25. package/src/components/ConfigView.tsx +258 -0
  26. package/src/components/NavRail.scss +71 -0
  27. package/src/components/NavRail.tsx +188 -0
  28. package/src/components/Sidebar.scss +112 -0
  29. package/src/components/Sidebar.tsx +291 -0
  30. package/src/components/chat/ChatHeader.scss +401 -0
  31. package/src/components/chat/ChatHeader.tsx +342 -0
  32. package/src/components/chat/ChatHistoryView.tsx +122 -0
  33. package/src/components/chat/ChatSettingsView.tsx +22 -0
  34. package/src/components/chat/ChatTimelineView.scss +53 -0
  35. package/src/components/chat/ChatTimelineView.tsx +158 -0
  36. package/src/components/chat/CodeBlock.scss +87 -0
  37. package/src/components/chat/CodeBlock.tsx +179 -0
  38. package/src/components/chat/CompletionMenu.scss +70 -0
  39. package/src/components/chat/CompletionMenu.tsx +58 -0
  40. package/src/components/chat/CurrentTodoList.scss +217 -0
  41. package/src/components/chat/CurrentTodoList.tsx +103 -0
  42. package/src/components/chat/MarkdownContent.tsx +43 -0
  43. package/src/components/chat/MessageFooter.tsx +48 -0
  44. package/src/components/chat/MessageItem.scss +251 -0
  45. package/src/components/chat/MessageItem.tsx +78 -0
  46. package/src/components/chat/NewSessionGuide.scss +186 -0
  47. package/src/components/chat/NewSessionGuide.tsx +167 -0
  48. package/src/components/chat/Sender.scss +367 -0
  49. package/src/components/chat/Sender.tsx +541 -0
  50. package/src/components/chat/SessionTimelinePanel/EventList.scss +58 -0
  51. package/src/components/chat/SessionTimelinePanel/EventList.tsx +212 -0
  52. package/src/components/chat/SessionTimelinePanel/gantt.ts +177 -0
  53. package/src/components/chat/SessionTimelinePanel/git-graph.ts +518 -0
  54. package/src/components/chat/SessionTimelinePanel/index.scss +28 -0
  55. package/src/components/chat/SessionTimelinePanel/index.tsx +121 -0
  56. package/src/components/chat/SessionTimelinePanel/mermaid.ts +4 -0
  57. package/src/components/chat/SessionTimelinePanel/types.ts +64 -0
  58. package/src/components/chat/SessionTimelinePanel/utils.ts +20 -0
  59. package/src/components/chat/ThinkingStatus.scss +70 -0
  60. package/src/components/chat/ThinkingStatus.tsx +13 -0
  61. package/src/components/chat/ToolCallBox.scss +137 -0
  62. package/src/components/chat/ToolCallBox.tsx +55 -0
  63. package/src/components/chat/ToolGroup.scss +154 -0
  64. package/src/components/chat/ToolGroup.tsx +102 -0
  65. package/src/components/chat/ToolRenderer.tsx +45 -0
  66. package/src/components/chat/messageUtils.ts +171 -0
  67. package/src/components/chat/safeSerialize.ts +84 -0
  68. package/src/components/chat/tools/DefaultTool.tsx +63 -0
  69. package/src/components/chat/tools/adapter-claude/BashTool.scss +71 -0
  70. package/src/components/chat/tools/adapter-claude/BashTool.tsx +82 -0
  71. package/src/components/chat/tools/adapter-claude/GlobTool.scss +88 -0
  72. package/src/components/chat/tools/adapter-claude/GlobTool.tsx +85 -0
  73. package/src/components/chat/tools/adapter-claude/GrepTool.scss +96 -0
  74. package/src/components/chat/tools/adapter-claude/GrepTool.tsx +114 -0
  75. package/src/components/chat/tools/adapter-claude/LSTool.scss +85 -0
  76. package/src/components/chat/tools/adapter-claude/LSTool.tsx +94 -0
  77. package/src/components/chat/tools/adapter-claude/ReadTool.scss +57 -0
  78. package/src/components/chat/tools/adapter-claude/ReadTool.tsx +87 -0
  79. package/src/components/chat/tools/adapter-claude/TodoTool.scss +78 -0
  80. package/src/components/chat/tools/adapter-claude/TodoTool.tsx +60 -0
  81. package/src/components/chat/tools/adapter-claude/WriteTool.scss +92 -0
  82. package/src/components/chat/tools/adapter-claude/WriteTool.tsx +86 -0
  83. package/src/components/chat/tools/adapter-claude/components/FileList.scss +65 -0
  84. package/src/components/chat/tools/adapter-claude/components/FileList.tsx +185 -0
  85. package/src/components/chat/tools/adapter-claude/index.ts +28 -0
  86. package/src/components/chat/tools/defineToolRender.ts +28 -0
  87. package/src/components/chat/tools/task/GetTaskInfoTool.scss +50 -0
  88. package/src/components/chat/tools/task/GetTaskInfoTool.tsx +88 -0
  89. package/src/components/chat/tools/task/ListTasksTool.scss +56 -0
  90. package/src/components/chat/tools/task/ListTasksTool.tsx +83 -0
  91. package/src/components/chat/tools/task/StartTasksTool.scss +56 -0
  92. package/src/components/chat/tools/task/StartTasksTool.tsx +96 -0
  93. package/src/components/chat/tools/task/components/TaskToolCard.scss +127 -0
  94. package/src/components/chat/tools/task/components/TaskToolCard.tsx +177 -0
  95. package/src/components/chat/tools/task/index.ts +15 -0
  96. package/src/components/chat/useChatModels.tsx +206 -0
  97. package/src/components/chat/useChatSession.ts +370 -0
  98. package/src/components/config/ConfigAboutSection.scss +111 -0
  99. package/src/components/config/ConfigAboutSection.tsx +86 -0
  100. package/src/components/config/ConfigDisplayValue.scss +22 -0
  101. package/src/components/config/ConfigDisplayValue.tsx +62 -0
  102. package/src/components/config/ConfigEditors.scss +65 -0
  103. package/src/components/config/ConfigEditors.tsx +98 -0
  104. package/src/components/config/ConfigFieldRow.scss +97 -0
  105. package/src/components/config/ConfigFieldRow.tsx +36 -0
  106. package/src/components/config/ConfigSectionForm.scss +94 -0
  107. package/src/components/config/ConfigSectionForm.tsx +436 -0
  108. package/src/components/config/ConfigSectionPanel.tsx +67 -0
  109. package/src/components/config/ConfigShortcutInput.scss +11 -0
  110. package/src/components/config/ConfigShortcutInput.tsx +52 -0
  111. package/src/components/config/ConfigSourceSwitch.tsx +57 -0
  112. package/src/components/config/configSchema.ts +319 -0
  113. package/src/components/config/configUtils.ts +83 -0
  114. package/src/components/config/index.tsx +5 -0
  115. package/src/components/config/recordEditors/BooleanRecordEditor.scss +1 -0
  116. package/src/components/config/recordEditors/BooleanRecordEditor.tsx +75 -0
  117. package/src/components/config/recordEditors/KeyValueEditor.scss +1 -0
  118. package/src/components/config/recordEditors/KeyValueEditor.tsx +97 -0
  119. package/src/components/config/recordEditors/McpServersRecordEditor.scss +1 -0
  120. package/src/components/config/recordEditors/McpServersRecordEditor.tsx +258 -0
  121. package/src/components/config/recordEditors/ModelServicesRecordEditor.scss +1 -0
  122. package/src/components/config/recordEditors/ModelServicesRecordEditor.tsx +233 -0
  123. package/src/components/config/recordEditors/RecordEditors.scss +117 -0
  124. package/src/components/config/recordEditors/RecordJsonEditor.scss +1 -0
  125. package/src/components/config/recordEditors/RecordJsonEditor.tsx +113 -0
  126. package/src/components/config/recordEditors/index.tsx +5 -0
  127. package/src/components/knowledge-base/KnowledgeBaseView.scss +19 -0
  128. package/src/components/knowledge-base/KnowledgeBaseView.tsx +186 -0
  129. package/src/components/knowledge-base/components/ActionButton.scss +5 -0
  130. package/src/components/knowledge-base/components/ActionButton.tsx +9 -0
  131. package/src/components/knowledge-base/components/EmptyState.scss +19 -0
  132. package/src/components/knowledge-base/components/EmptyState.tsx +42 -0
  133. package/src/components/knowledge-base/components/EntitiesTab.scss +5 -0
  134. package/src/components/knowledge-base/components/EntitiesTab.tsx +80 -0
  135. package/src/components/knowledge-base/components/EntityItem.scss +82 -0
  136. package/src/components/knowledge-base/components/EntityItem.tsx +79 -0
  137. package/src/components/knowledge-base/components/EntityList.scss +5 -0
  138. package/src/components/knowledge-base/components/EntityList.tsx +70 -0
  139. package/src/components/knowledge-base/components/FilterBar.scss +21 -0
  140. package/src/components/knowledge-base/components/FilterBar.tsx +51 -0
  141. package/src/components/knowledge-base/components/FlowsTab.scss +5 -0
  142. package/src/components/knowledge-base/components/FlowsTab.tsx +80 -0
  143. package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +27 -0
  144. package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +29 -0
  145. package/src/components/knowledge-base/components/KnowledgeList.scss +19 -0
  146. package/src/components/knowledge-base/components/KnowledgeList.tsx +19 -0
  147. package/src/components/knowledge-base/components/LoadingState.scss +5 -0
  148. package/src/components/knowledge-base/components/LoadingState.tsx +11 -0
  149. package/src/components/knowledge-base/components/MetaList.scss +19 -0
  150. package/src/components/knowledge-base/components/MetaList.tsx +18 -0
  151. package/src/components/knowledge-base/components/RulesTab.scss +5 -0
  152. package/src/components/knowledge-base/components/RulesTab.tsx +49 -0
  153. package/src/components/knowledge-base/components/SectionHeader.scss +22 -0
  154. package/src/components/knowledge-base/components/SectionHeader.tsx +21 -0
  155. package/src/components/knowledge-base/components/SkillsTab.scss +5 -0
  156. package/src/components/knowledge-base/components/SkillsTab.tsx +49 -0
  157. package/src/components/knowledge-base/components/SpecItem.scss +138 -0
  158. package/src/components/knowledge-base/components/SpecItem.tsx +131 -0
  159. package/src/components/knowledge-base/components/SpecList.scss +5 -0
  160. package/src/components/knowledge-base/components/SpecList.tsx +70 -0
  161. package/src/components/knowledge-base/components/TabContent.scss +8 -0
  162. package/src/components/knowledge-base/components/TabContent.tsx +17 -0
  163. package/src/components/knowledge-base/components/TabLabel.scss +10 -0
  164. package/src/components/knowledge-base/components/TabLabel.tsx +15 -0
  165. package/src/components/knowledge-base/index.tsx +1 -0
  166. package/src/components/sidebar/SessionItem.scss +256 -0
  167. package/src/components/sidebar/SessionItem.tsx +265 -0
  168. package/src/components/sidebar/SessionList.scss +92 -0
  169. package/src/components/sidebar/SessionList.tsx +166 -0
  170. package/src/components/sidebar/SidebarHeader.scss +79 -0
  171. package/src/components/sidebar/SidebarHeader.tsx +128 -0
  172. package/src/connectionManager.ts +172 -0
  173. package/src/hooks/useGlobalShortcut.ts +26 -0
  174. package/src/hooks/useQueryParams.ts +54 -0
  175. package/src/i18n.ts +22 -0
  176. package/src/main.tsx +41 -0
  177. package/src/resources/locales/en.json +765 -0
  178. package/src/resources/locales/zh.json +766 -0
  179. package/src/store/index.ts +23 -0
  180. package/src/styles/global.scss +100 -0
  181. package/src/utils/shortcutUtils.ts +88 -0
  182. package/src/vite-env.d.ts +12 -0
  183. package/src/ws.ts +33 -0
  184. package/vite.config.ts +26 -0
@@ -0,0 +1,299 @@
1
+ import './ArchiveView.scss'
2
+
3
+ import type { Session } from '@vibe-forge/core'
4
+ import { App, Button, Checkbox, Empty, Input, List, Popconfirm, Space, Tag, Tooltip } from 'antd'
5
+ import dayjs from 'dayjs'
6
+ import React, { useMemo, useState } from 'react'
7
+ import { useTranslation } from 'react-i18next'
8
+ import useSWR from 'swr'
9
+ import { deleteSession, listSessions, updateSession } from '../api'
10
+
11
+ export function ArchiveView() {
12
+ const { t } = useTranslation()
13
+ const { message } = App.useApp()
14
+ const { data: sessionsRes, mutate } = useSWR<{ sessions: Session[] }>(
15
+ '/api/sessions/archived',
16
+ async () => listSessions('archived')
17
+ )
18
+ const sessions: Session[] = sessionsRes?.sessions ?? []
19
+
20
+ const [searchQuery, setSearchQuery] = useState('')
21
+ const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set())
22
+ const [isBatchMode, setIsBatchMode] = useState(false)
23
+
24
+ const filteredSessions = useMemo(() => {
25
+ if (searchQuery.trim() === '') return sessions
26
+ const query = searchQuery.toLowerCase()
27
+ return sessions.filter((s: Session): boolean => {
28
+ const title = s.title ?? ''
29
+ const lastMsg = s.lastMessage ?? ''
30
+ const lastUserMsg = s.lastUserMessage ?? ''
31
+ const tags = (s.tags ?? []).join(' ')
32
+ const searchStr = `${title} ${s.id} ${lastMsg} ${lastUserMsg} ${tags}`.toLowerCase()
33
+ return searchStr.includes(query)
34
+ })
35
+ }, [sessions, searchQuery])
36
+
37
+ const handleRestore = async (id: string) => {
38
+ try {
39
+ await updateSession(id, { isArchived: false })
40
+ void message.success(t('common.restoreSuccess', 'Restored successfully'))
41
+ void mutate()
42
+ } catch (err) {
43
+ void message.error(t('common.restoreFailed', 'Failed to restore'))
44
+ }
45
+ }
46
+
47
+ const handleDelete = async (id: string) => {
48
+ try {
49
+ await deleteSession(id)
50
+ void message.success(t('common.deleteSuccess', 'Deleted successfully'))
51
+ void mutate()
52
+ } catch (err) {
53
+ void message.error(t('common.deleteFailed', 'Failed to delete'))
54
+ }
55
+ }
56
+
57
+ const handleToggleSelect = (id: string) => {
58
+ const next = new Set(selectedIds)
59
+ if (next.has(id)) {
60
+ next.delete(id)
61
+ } else {
62
+ next.add(id)
63
+ }
64
+ setSelectedIds(next)
65
+ }
66
+
67
+ const handleSelectAll = (selected: boolean) => {
68
+ if (selected) {
69
+ setSelectedIds(new Set(filteredSessions.map(s => s.id)))
70
+ } else {
71
+ setSelectedIds(new Set())
72
+ }
73
+ }
74
+
75
+ const handleBatchRestore = async () => {
76
+ try {
77
+ await Promise.all(Array.from(selectedIds).map(async (id) => updateSession(id, { isArchived: false })))
78
+ void message.success(t('common.batchRestoreSuccess', 'Batch restored successfully'))
79
+ setSelectedIds(new Set())
80
+ setIsBatchMode(false)
81
+ void mutate()
82
+ } catch (err) {
83
+ void message.error(t('common.batchRestoreFailed', 'Failed to restore some sessions'))
84
+ }
85
+ }
86
+
87
+ const handleBatchDelete = async () => {
88
+ try {
89
+ await Promise.all(Array.from(selectedIds).map(async (id) => deleteSession(id)))
90
+ void message.success(t('common.batchDeleteSuccess', 'Batch deleted successfully'))
91
+ setSelectedIds(new Set())
92
+ setIsBatchMode(false)
93
+ void mutate()
94
+ } catch (err) {
95
+ void message.error(t('common.batchDeleteFailed', 'Failed to delete some sessions'))
96
+ }
97
+ }
98
+
99
+ const isAllSelected = filteredSessions.length > 0 && selectedIds.size === filteredSessions.length
100
+
101
+ return (
102
+ <div className='archive-view'>
103
+ <div className='archive-view__header'>
104
+ <Space size={8} className='archive-view__title'>
105
+ <h2 className='archive-view__title-text'>{t('common.archivedSessions')}</h2>
106
+ </Space>
107
+
108
+ <Space>
109
+ {isBatchMode
110
+ ? (
111
+ <>
112
+ <span className='archive-view__batch-info'>
113
+ {t('common.selectedCount', { count: selectedIds.size })}
114
+ </span>
115
+ <Tooltip title={t('common.cancel')}>
116
+ <Button
117
+ icon={
118
+ <span className='material-symbols-rounded archive-view__action-icon'>
119
+ close
120
+ </span>
121
+ }
122
+ onClick={() => {
123
+ setIsBatchMode(false)
124
+ setSelectedIds(new Set())
125
+ }}
126
+ className='archive-view__icon-button'
127
+ />
128
+ </Tooltip>
129
+ <Tooltip title={t('common.batchRestore')}>
130
+ <Button
131
+ type='primary'
132
+ icon={
133
+ <span className='material-symbols-rounded archive-view__action-icon'>
134
+ unarchive
135
+ </span>
136
+ }
137
+ onClick={() => {
138
+ void handleBatchRestore()
139
+ }}
140
+ disabled={selectedIds.size === 0}
141
+ className='archive-view__icon-button'
142
+ />
143
+ </Tooltip>
144
+ <Popconfirm
145
+ title={t('common.deleteConfirm', { count: selectedIds.size })}
146
+ onConfirm={() => {
147
+ void handleBatchDelete()
148
+ }}
149
+ disabled={selectedIds.size === 0}
150
+ >
151
+ <Tooltip title={t('common.batchDelete')}>
152
+ <Button
153
+ danger
154
+ icon={
155
+ <span className='material-symbols-rounded archive-view__action-icon'>
156
+ delete_sweep
157
+ </span>
158
+ }
159
+ disabled={selectedIds.size === 0}
160
+ className='archive-view__icon-button'
161
+ />
162
+ </Tooltip>
163
+ </Popconfirm>
164
+ </>
165
+ )
166
+ : (
167
+ <Tooltip title={t('common.batchMode')}>
168
+ <Button
169
+ icon={
170
+ <span className='material-symbols-rounded archive-view__action-icon'>
171
+ checklist
172
+ </span>
173
+ }
174
+ onClick={() => setIsBatchMode(true)}
175
+ disabled={sessions.length === 0}
176
+ className='archive-view__icon-button'
177
+ />
178
+ </Tooltip>
179
+ )}
180
+ </Space>
181
+ </div>
182
+
183
+ <div className='archive-view__filter-bar'>
184
+ {isBatchMode && (
185
+ <div className='archive-view__select-all'>
186
+ <Tooltip title={isAllSelected ? t('common.deselectAll') : t('common.selectAll')}>
187
+ <Checkbox
188
+ checked={isAllSelected}
189
+ indeterminate={selectedIds.size > 0 && selectedIds.size < filteredSessions.length}
190
+ onChange={(e) => handleSelectAll(e.target.checked)}
191
+ />
192
+ </Tooltip>
193
+ </div>
194
+ )}
195
+ <Input
196
+ prefix={<span className='material-symbols-rounded archive-view__search-icon'>search</span>}
197
+ placeholder={t('common.search')}
198
+ value={searchQuery}
199
+ onChange={e => setSearchQuery(e.target.value)}
200
+ allowClear
201
+ className='archive-view__search-input'
202
+ />
203
+ </div>
204
+
205
+ <div className='archive-view__list'>
206
+ {filteredSessions.length === 0
207
+ ? (
208
+ <Empty
209
+ image={Empty.PRESENTED_IMAGE_SIMPLE}
210
+ description={searchQuery ? t('common.noSessions') : t('common.noArchivedSessions')}
211
+ />
212
+ )
213
+ : (
214
+ <List
215
+ itemLayout='horizontal'
216
+ dataSource={filteredSessions}
217
+ renderItem={(session) => (
218
+ <List.Item
219
+ className={[
220
+ 'archive-view__item',
221
+ selectedIds.has(session.id) ? 'archive-view__item--selected' : '',
222
+ isBatchMode ? 'archive-view__item--batch' : ''
223
+ ].filter(Boolean).join(' ')}
224
+ onClick={() => isBatchMode && handleToggleSelect(session.id)}
225
+ >
226
+ <div className='archive-view__item-row'>
227
+ {isBatchMode && (
228
+ <div className='archive-view__item-select'>
229
+ <Checkbox
230
+ checked={selectedIds.has(session.id)}
231
+ onChange={() => handleToggleSelect(session.id)}
232
+ onClick={(e) => e.stopPropagation()}
233
+ />
234
+ </div>
235
+ )}
236
+ <span className='material-symbols-rounded archive-view__item-icon'>
237
+ chat_bubble
238
+ </span>
239
+ <div className='archive-view__item-main'>
240
+ <span className='archive-view__item-title'>
241
+ {(session.title != null && session.title !== '')
242
+ ? session.title
243
+ : (session.lastMessage != null && session.lastMessage !== '')
244
+ ? session.lastMessage
245
+ : t('common.newChat')}
246
+ </span>
247
+ {session.tags && session.tags.length > 0 && (
248
+ <div className='archive-view__item-tags'>
249
+ {session.tags.map(tag => (
250
+ <Tag key={tag} className='archive-view__item-tag'>{tag}</Tag>
251
+ ))}
252
+ </div>
253
+ )}
254
+ <span className='archive-view__item-time'>
255
+ {dayjs(session.createdAt).format('YYYY-MM-DD HH:mm')}
256
+ </span>
257
+ </div>
258
+
259
+ {!isBatchMode && (
260
+ <div className='archive-view__item-actions'>
261
+ <Tooltip title={t('common.restore')}>
262
+ <Button
263
+ type='text'
264
+ size='small'
265
+ className='archive-view__item-action-button'
266
+ icon={<span className='material-symbols-rounded archive-view__action-icon'>unarchive</span>}
267
+ onClick={(e) => {
268
+ e.stopPropagation()
269
+ void handleRestore(session.id)
270
+ }}
271
+ />
272
+ </Tooltip>
273
+ <Popconfirm
274
+ title={t('common.deleteSessionConfirm')}
275
+ onConfirm={(e) => {
276
+ e?.stopPropagation()
277
+ void handleDelete(session.id)
278
+ }}
279
+ >
280
+ <Button
281
+ type='text'
282
+ size='small'
283
+ danger
284
+ className='archive-view__item-action-button'
285
+ icon={<span className='material-symbols-rounded archive-view__action-icon'>delete</span>}
286
+ onClick={(e) => e.stopPropagation()}
287
+ />
288
+ </Popconfirm>
289
+ </div>
290
+ )}
291
+ </div>
292
+ </List.Item>
293
+ )}
294
+ />
295
+ )}
296
+ </div>
297
+ </div>
298
+ )
299
+ }
@@ -0,0 +1,26 @@
1
+ .automation-view {
2
+ display: flex;
3
+ height: 100%;
4
+ padding: 24px;
5
+ overflow: hidden;
6
+
7
+ &__left {
8
+ width: 360px;
9
+ min-width: 320px;
10
+ display: flex;
11
+ flex-direction: column;
12
+ overflow: hidden;
13
+ }
14
+
15
+ &__divider {
16
+ width: 1px;
17
+ background: var(--border-color);
18
+ margin: 0 16px;
19
+ }
20
+
21
+ &__right {
22
+ flex: 1;
23
+ overflow: hidden;
24
+ padding-right: 8px;
25
+ }
26
+ }
@@ -0,0 +1,129 @@
1
+ .automation-view {
2
+ &__form-panel {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 16px;
6
+ height: 100%;
7
+ }
8
+
9
+ &__form-header {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ }
14
+
15
+ &__form-header-actions {
16
+ display: inline-flex;
17
+ gap: 12px;
18
+ }
19
+
20
+ &__form-title {
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 8px;
24
+ font-weight: 600;
25
+ color: var(--text-color);
26
+ }
27
+
28
+ &__form-icon {
29
+ font-size: 18px;
30
+ color: var(--sub-text-color);
31
+ }
32
+
33
+ &__form-grid {
34
+ display: grid;
35
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
36
+ gap: 20px;
37
+ flex: 1;
38
+ overflow: hidden;
39
+ }
40
+
41
+ &__form-left {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: 16px;
45
+ }
46
+
47
+ &__form-right {
48
+ display: flex;
49
+ flex-direction: column;
50
+ gap: 16px;
51
+ overflow: hidden;
52
+ min-height: 0;
53
+ }
54
+
55
+ &__form-right-scroll {
56
+ overflow: auto;
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: 16px;
60
+ min-height: 0;
61
+ }
62
+
63
+ &__form-section {
64
+ padding: 12px 0;
65
+ border-bottom: 1px solid var(--border-color);
66
+
67
+ &:last-child {
68
+ border-bottom: none;
69
+ }
70
+ }
71
+
72
+ &__label {
73
+ display: inline-flex;
74
+ align-items: center;
75
+ gap: 6px;
76
+ }
77
+
78
+ &__label-icon {
79
+ font-size: 16px;
80
+ color: var(--sub-text-color);
81
+
82
+ &--run {
83
+ color: var(--success-color);
84
+ }
85
+ }
86
+
87
+ &__toggle-group {
88
+ display: flex;
89
+ flex-direction: column;
90
+ gap: 12px;
91
+ }
92
+
93
+ &__toggle-row {
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: space-between;
97
+ padding: 8px 12px;
98
+ border-radius: 10px;
99
+ background: var(--tag-bg);
100
+ }
101
+
102
+ &__toggle-label {
103
+ display: inline-flex;
104
+ align-items: center;
105
+ gap: 8px;
106
+ color: var(--text-color);
107
+
108
+ &--run {
109
+ color: var(--success-color);
110
+ }
111
+ }
112
+
113
+ &__square-button {
114
+ display: inline-flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ height: 36px;
118
+ padding: 0 12px;
119
+ border-radius: 8px;
120
+
121
+ &--confirm {
122
+ font-weight: 600;
123
+ }
124
+ }
125
+
126
+ &__action-icon {
127
+ font-size: 18px;
128
+ }
129
+ }