@happyvertical/smrt-agents 0.60.16 → 0.60.18
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/AgentAdminPanel.svelte +52 -42
- package/dist/svelte/components/AgentAdminTabs.svelte +113 -114
- package/dist/svelte/components/AgentDashboard.svelte +75 -76
- package/dist/svelte/components/AgentRunHistory.svelte +87 -82
- package/dist/svelte/components/AgentScheduleForm.svelte +35 -37
- package/dist/svelte/components/AgentScheduleList.svelte +132 -136
- package/dist/svelte/components/AgentSettingsForm.svelte +16 -15
- package/dist/svelte/components/AgentSettingsShell.svelte +150 -144
- package/package.json +18 -18
|
@@ -66,40 +66,40 @@ function handleRunNow(schedule: AgentScheduleData, event: Event) {
|
|
|
66
66
|
}
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
|
-
<div class="schedule-
|
|
70
|
-
<table class="schedule-
|
|
71
|
-
<thead class="schedule-list__head">
|
|
69
|
+
<div class="smrt-agent-schedule-list__root" data-smrt-component="AgentScheduleList">
|
|
70
|
+
<table class="smrt-agent-schedule-list__table" data-smrt-part="table" class:smrt-agent-schedule-list__loading={loading}>
|
|
71
|
+
<thead class="smrt-agent-schedule-list__head" data-smrt-part="header">
|
|
72
72
|
<tr>
|
|
73
|
-
<th class="schedule-list__cell">Status</th>
|
|
74
|
-
<th class="schedule-list__cell">Agent</th>
|
|
75
|
-
<th class="schedule-list__cell">Schedule</th>
|
|
76
|
-
<th class="schedule-list__cell">{t(M['agents.schedule_list.last_run'])}</th>
|
|
77
|
-
<th class="schedule-list__cell">{t(M['agents.schedule_list.next_run'])}</th>
|
|
78
|
-
<th class="schedule-list__cell">{t(M['agents.schedule_list.success_rate'])}</th>
|
|
79
|
-
<th class="schedule-list__cell">Runs</th>
|
|
73
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">Status</th>
|
|
74
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">Agent</th>
|
|
75
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">Schedule</th>
|
|
76
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">{t(M['agents.schedule_list.last_run'])}</th>
|
|
77
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">{t(M['agents.schedule_list.next_run'])}</th>
|
|
78
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">{t(M['agents.schedule_list.success_rate'])}</th>
|
|
79
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">Runs</th>
|
|
80
80
|
{#if showActions}
|
|
81
|
-
<th class="schedule-list__cell">Actions</th>
|
|
81
|
+
<th class="smrt-agent-schedule-list__cell" data-smrt-part="cell">Actions</th>
|
|
82
82
|
{/if}
|
|
83
83
|
</tr>
|
|
84
84
|
</thead>
|
|
85
85
|
|
|
86
|
-
<tbody class="schedule-list__body">
|
|
86
|
+
<tbody class="smrt-agent-schedule-list__body" data-smrt-part="body">
|
|
87
87
|
{#if loading}
|
|
88
|
-
<tr class="schedule-list__row schedule-list__row
|
|
89
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
90
|
-
<div class="schedule-
|
|
91
|
-
<span class="schedule-list__spinner"></span>
|
|
88
|
+
<tr class="smrt-agent-schedule-list__row smrt-agent-schedule-list__row-loading" data-smrt-part="row">
|
|
89
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-loading" data-smrt-part="cell" colspan="8">
|
|
90
|
+
<div class="smrt-agent-schedule-list__progress" data-smrt-part="progress">
|
|
91
|
+
<span class="smrt-agent-schedule-list__spinner" data-smrt-part="spinner"></span>
|
|
92
92
|
<span>{t(M['agents.schedule_list.loading_schedules'])}</span>
|
|
93
93
|
</div>
|
|
94
94
|
</td>
|
|
95
95
|
</tr>
|
|
96
96
|
{:else if schedules.length === 0}
|
|
97
|
-
<tr class="schedule-list__row schedule-list__row
|
|
98
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
97
|
+
<tr class="smrt-agent-schedule-list__row smrt-agent-schedule-list__row-empty" data-smrt-part="row">
|
|
98
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-empty" data-smrt-part="cell" colspan="8">
|
|
99
99
|
{#if empty}
|
|
100
100
|
{@render empty()}
|
|
101
101
|
{:else}
|
|
102
|
-
<div class="schedule-list__empty">
|
|
102
|
+
<div class="smrt-agent-schedule-list__empty" data-smrt-part="empty">
|
|
103
103
|
<span>{t(M['agents.schedule_list.no_schedules_found'])}</span>
|
|
104
104
|
</div>
|
|
105
105
|
{/if}
|
|
@@ -109,12 +109,12 @@ function handleRunNow(schedule: AgentScheduleData, event: Event) {
|
|
|
109
109
|
{#each schedules as schedule (schedule.id)}
|
|
110
110
|
{@const successRate = calculateSuccessRate(schedule)}
|
|
111
111
|
<tr
|
|
112
|
-
class="schedule-list__row"
|
|
112
|
+
class="smrt-agent-schedule-list__row" data-smrt-part="row"
|
|
113
113
|
>
|
|
114
|
-
<td class="schedule-list__cell">
|
|
114
|
+
<td class="smrt-agent-schedule-list__cell" data-smrt-part="cell">
|
|
115
115
|
<ScheduleStatusBadge status={schedule.status} />
|
|
116
116
|
</td>
|
|
117
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
117
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-agent" data-smrt-part="cell">
|
|
118
118
|
{#if onScheduleClick}
|
|
119
119
|
<Button
|
|
120
120
|
variant="ghost"
|
|
@@ -124,52 +124,52 @@ function handleRunNow(schedule: AgentScheduleData, event: Event) {
|
|
|
124
124
|
{schedule.agentType}
|
|
125
125
|
</Button>
|
|
126
126
|
{:else}
|
|
127
|
-
<span class="agent-type">{schedule.agentType}</span>
|
|
127
|
+
<span class="smrt-agent-schedule-list__agent-type" data-smrt-part="title">{schedule.agentType}</span>
|
|
128
128
|
{/if}
|
|
129
129
|
{#if schedule.agentId}
|
|
130
|
-
<span class="agent-id">#{schedule.agentId.slice(0, 8)}</span>
|
|
130
|
+
<span class="smrt-agent-schedule-list__agent-id" data-smrt-part="meta">#{schedule.agentId.slice(0, 8)}</span>
|
|
131
131
|
{/if}
|
|
132
|
-
<span class="agent-method">.{schedule.method}()</span>
|
|
132
|
+
<span class="smrt-agent-schedule-list__agent-method" data-smrt-part="meta">.{schedule.method}()</span>
|
|
133
133
|
</td>
|
|
134
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
135
|
-
<span class="
|
|
136
|
-
<span class="
|
|
134
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-schedule" data-smrt-part="cell">
|
|
135
|
+
<span class="smrt-agent-schedule-list__cron-human" data-smrt-part="label">{formatCronExpression(schedule.cron)}</span>
|
|
136
|
+
<span class="smrt-agent-schedule-list__cron-raw" data-smrt-part="meta">{schedule.cron}</span>
|
|
137
137
|
</td>
|
|
138
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
138
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-date" data-smrt-part="cell">
|
|
139
139
|
<span
|
|
140
|
-
class="
|
|
141
|
-
class:
|
|
142
|
-
class:
|
|
140
|
+
class="smrt-agent-schedule-list__last-run" data-smrt-part="meta"
|
|
141
|
+
class:smrt-agent-schedule-list__success={schedule.lastStatus === 'success'}
|
|
142
|
+
class:smrt-agent-schedule-list__failed={schedule.lastStatus === 'failed'}
|
|
143
143
|
>
|
|
144
144
|
{formatRelativeTime(schedule.lastRun)}
|
|
145
145
|
</span>
|
|
146
146
|
</td>
|
|
147
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
147
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-date" data-smrt-part="cell">
|
|
148
148
|
{formatRelativeTime(schedule.nextRun)}
|
|
149
149
|
</td>
|
|
150
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
150
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-rate" data-smrt-part="cell">
|
|
151
151
|
{#if successRate !== null}
|
|
152
152
|
<span
|
|
153
|
-
class="
|
|
154
|
-
class:
|
|
155
|
-
class:
|
|
156
|
-
class:
|
|
153
|
+
class="smrt-agent-schedule-list__success-rate" data-smrt-part="value"
|
|
154
|
+
class:smrt-agent-schedule-list__good={successRate >= 0.9}
|
|
155
|
+
class:smrt-agent-schedule-list__warning={successRate >= 0.7 && successRate < 0.9}
|
|
156
|
+
class:smrt-agent-schedule-list__bad={successRate < 0.7}
|
|
157
157
|
>
|
|
158
158
|
{(successRate * 100).toFixed(0)}%
|
|
159
159
|
</span>
|
|
160
160
|
{:else}
|
|
161
|
-
<span class="
|
|
161
|
+
<span class="smrt-agent-schedule-list__success-rate" data-smrt-part="value">-</span>
|
|
162
162
|
{/if}
|
|
163
163
|
</td>
|
|
164
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
164
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-runs" data-smrt-part="cell">
|
|
165
165
|
{schedule.runCount}
|
|
166
166
|
{#if schedule.runningCount > 0}
|
|
167
|
-
<span class="
|
|
167
|
+
<span class="smrt-agent-schedule-list__running-indicator" data-smrt-part="indicator">({schedule.runningCount} running)</span>
|
|
168
168
|
{/if}
|
|
169
169
|
</td>
|
|
170
170
|
{#if showActions}
|
|
171
|
-
<td class="schedule-list__cell schedule-list__cell
|
|
172
|
-
<div class="actions">
|
|
171
|
+
<td class="smrt-agent-schedule-list__cell smrt-agent-schedule-list__cell-actions" data-smrt-part="cell">
|
|
172
|
+
<div class="smrt-agent-schedule-list__actions" data-smrt-part="actions">
|
|
173
173
|
<Button
|
|
174
174
|
variant="secondary"
|
|
175
175
|
size="sm"
|
|
@@ -198,182 +198,178 @@ function handleRunNow(schedule: AgentScheduleData, event: Event) {
|
|
|
198
198
|
|
|
199
199
|
<style>
|
|
200
200
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
201
|
-
@layer smrt.
|
|
202
|
-
.schedule-
|
|
201
|
+
@layer smrt.structure {
|
|
202
|
+
.smrt-agent-schedule-list__root {
|
|
203
203
|
width: 100%;
|
|
204
204
|
overflow-x: auto;
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
.schedule-list {
|
|
206
|
+
.smrt-agent-schedule-list__table {
|
|
208
207
|
width: 100%;
|
|
208
|
+
}
|
|
209
|
+
.smrt-agent-schedule-list__head th {
|
|
210
|
+
padding: var(--smrt-spacing-sm, 0.5rem) var(--smrt-spacing-md, 1rem);
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
}
|
|
213
|
+
.smrt-agent-schedule-list__cell {
|
|
214
|
+
padding: var(--smrt-spacing-sm, 0.5rem) var(--smrt-spacing-md, 1rem);
|
|
215
|
+
}
|
|
216
|
+
.smrt-agent-schedule-list__cell-agent {
|
|
217
|
+
max-width: 250px;
|
|
218
|
+
}
|
|
219
|
+
.smrt-agent-schedule-list__agent-id {
|
|
220
|
+
margin-left: var(--smrt-spacing-xs, 0.25rem);
|
|
221
|
+
}
|
|
222
|
+
.smrt-agent-schedule-list__agent-method {
|
|
223
|
+
margin-left: var(--smrt-spacing-xs, 0.25rem);
|
|
224
|
+
}
|
|
225
|
+
.smrt-agent-schedule-list__cell-schedule {
|
|
226
|
+
max-width: 200px;
|
|
227
|
+
}
|
|
228
|
+
.smrt-agent-schedule-list__cron-human {
|
|
229
|
+
display: block;
|
|
230
|
+
}
|
|
231
|
+
.smrt-agent-schedule-list__cron-raw {
|
|
232
|
+
display: block;
|
|
233
|
+
}
|
|
234
|
+
.smrt-agent-schedule-list__cell-date {
|
|
235
|
+
white-space: nowrap;
|
|
236
|
+
}
|
|
237
|
+
.smrt-agent-schedule-list__cell-actions {
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
}
|
|
240
|
+
.smrt-agent-schedule-list__actions {
|
|
241
|
+
display: flex;
|
|
242
|
+
gap: var(--smrt-spacing-xs, 0.25rem);
|
|
243
|
+
}
|
|
244
|
+
.smrt-agent-schedule-list__cell-loading,
|
|
245
|
+
.smrt-agent-schedule-list__cell-empty {
|
|
246
|
+
padding: var(--smrt-spacing-xl, 2rem);
|
|
247
|
+
}
|
|
248
|
+
.smrt-agent-schedule-list__progress {
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
gap: var(--smrt-spacing-sm, 0.5rem);
|
|
253
|
+
}
|
|
254
|
+
.smrt-agent-schedule-list__spinner {
|
|
255
|
+
width: 20px;
|
|
256
|
+
height: 20px;
|
|
257
|
+
}
|
|
258
|
+
.smrt-agent-schedule-list__table.smrt-agent-schedule-list__loading {
|
|
259
|
+
pointer-events: none;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@layer smrt.theme {
|
|
264
|
+
.smrt-agent-schedule-list__table {
|
|
209
265
|
border-collapse: collapse;
|
|
210
266
|
border-spacing: 0;
|
|
211
267
|
font: var(--smrt-typography-body-medium-font, 0.875rem / 1.25 sans-serif);
|
|
212
268
|
background: var(--smrt-color-surface);
|
|
213
269
|
}
|
|
214
|
-
|
|
215
|
-
.schedule-list.loading {
|
|
270
|
+
.smrt-agent-schedule-list__table.smrt-agent-schedule-list__loading {
|
|
216
271
|
opacity: 0.7;
|
|
217
|
-
pointer-events: none;
|
|
218
272
|
}
|
|
219
|
-
|
|
220
|
-
.schedule-list__head {
|
|
273
|
+
.smrt-agent-schedule-list__head {
|
|
221
274
|
background: var(--smrt-color-surface-container);
|
|
222
275
|
}
|
|
223
|
-
|
|
224
|
-
.schedule-list__head th {
|
|
225
|
-
padding: var(--smrt-spacing-sm, 0.5rem) var(--smrt-spacing-md, 1rem);
|
|
276
|
+
.smrt-agent-schedule-list__head th {
|
|
226
277
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
227
278
|
text-align: left;
|
|
228
|
-
white-space: nowrap;
|
|
229
279
|
border-bottom: var(--smrt-hairline);
|
|
230
280
|
}
|
|
231
|
-
|
|
232
|
-
.schedule-list__body tr {
|
|
281
|
+
.smrt-agent-schedule-list__body tr {
|
|
233
282
|
border-bottom: var(--smrt-hairline);
|
|
234
283
|
transition: background-color var(--smrt-duration-short2, 150ms) var(--smrt-easing-standard, ease);
|
|
235
284
|
}
|
|
236
|
-
|
|
237
|
-
.schedule-list__body tr:hover:not(.schedule-list__row--loading):not(.schedule-list__row--empty) {
|
|
285
|
+
.smrt-agent-schedule-list__body tr:hover:not(.smrt-agent-schedule-list__row-loading):not(.smrt-agent-schedule-list__row-empty) {
|
|
238
286
|
background: var(--smrt-color-surface-container-low);
|
|
239
287
|
}
|
|
240
|
-
|
|
241
288
|
@media (prefers-reduced-motion: reduce) {
|
|
242
|
-
.schedule-list__body tr {
|
|
289
|
+
.smrt-agent-schedule-list__body tr {
|
|
243
290
|
transition: none;
|
|
244
291
|
}
|
|
245
|
-
|
|
246
|
-
.schedule-list__spinner {
|
|
292
|
+
.smrt-agent-schedule-list__spinner {
|
|
247
293
|
animation: none;
|
|
248
294
|
}
|
|
249
295
|
}
|
|
250
|
-
|
|
251
|
-
.schedule-list__cell {
|
|
252
|
-
padding: var(--smrt-spacing-sm, 0.5rem) var(--smrt-spacing-md, 1rem);
|
|
296
|
+
.smrt-agent-schedule-list__cell {
|
|
253
297
|
vertical-align: middle;
|
|
254
298
|
}
|
|
255
|
-
|
|
256
|
-
.schedule-list__cell--agent {
|
|
257
|
-
max-width: 250px;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.agent-type {
|
|
299
|
+
.smrt-agent-schedule-list__agent-type {
|
|
261
300
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
262
301
|
}
|
|
263
|
-
|
|
264
|
-
.agent-id {
|
|
265
|
-
margin-left: var(--smrt-spacing-xs, 0.25rem);
|
|
302
|
+
.smrt-agent-schedule-list__agent-id {
|
|
266
303
|
color: var(--smrt-color-on-surface-variant);
|
|
267
304
|
font-family: var(--smrt-font-family-mono, ui-monospace, monospace);
|
|
268
305
|
font: var(--smrt-typography-body-small-font, 0.75rem / 1.25 sans-serif);
|
|
269
306
|
}
|
|
270
|
-
|
|
271
|
-
.agent-method {
|
|
272
|
-
margin-left: var(--smrt-spacing-xs, 0.25rem);
|
|
307
|
+
.smrt-agent-schedule-list__agent-method {
|
|
273
308
|
color: var(--smrt-color-on-surface-variant);
|
|
274
309
|
font-family: var(--smrt-font-family-mono, ui-monospace, monospace);
|
|
275
310
|
font: var(--smrt-typography-body-small-font, 0.75rem / 1.25 sans-serif);
|
|
276
311
|
}
|
|
277
|
-
|
|
278
|
-
.schedule-list__cell--schedule {
|
|
279
|
-
max-width: 200px;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.cron-human {
|
|
283
|
-
display: block;
|
|
312
|
+
.smrt-agent-schedule-list__cron-human {
|
|
284
313
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
285
314
|
}
|
|
286
|
-
|
|
287
|
-
.cron-raw {
|
|
288
|
-
display: block;
|
|
315
|
+
.smrt-agent-schedule-list__cron-raw {
|
|
289
316
|
font-family: var(--smrt-font-family-mono, ui-monospace, monospace);
|
|
290
317
|
font: var(--smrt-typography-body-small-font, 0.75rem / 1.25 sans-serif);
|
|
291
318
|
color: var(--smrt-color-on-surface-variant);
|
|
292
319
|
}
|
|
293
|
-
|
|
294
|
-
.schedule-list__cell--date {
|
|
320
|
+
.smrt-agent-schedule-list__cell-date {
|
|
295
321
|
color: var(--smrt-color-on-surface-variant);
|
|
296
|
-
white-space: nowrap;
|
|
297
322
|
}
|
|
298
|
-
|
|
299
|
-
.last-run.success {
|
|
323
|
+
.smrt-agent-schedule-list__last-run.smrt-agent-schedule-list__success {
|
|
300
324
|
color: var(--smrt-color-tertiary);
|
|
301
325
|
}
|
|
302
|
-
|
|
303
|
-
.last-run.failed {
|
|
326
|
+
.smrt-agent-schedule-list__last-run.smrt-agent-schedule-list__failed {
|
|
304
327
|
color: var(--smrt-color-error);
|
|
305
328
|
}
|
|
306
|
-
|
|
307
|
-
.schedule-list__cell--rate {
|
|
329
|
+
.smrt-agent-schedule-list__cell-rate {
|
|
308
330
|
text-align: center;
|
|
309
331
|
}
|
|
310
|
-
|
|
311
|
-
.success-rate {
|
|
332
|
+
.smrt-agent-schedule-list__success-rate {
|
|
312
333
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
313
334
|
}
|
|
314
|
-
|
|
315
|
-
.success-rate.good {
|
|
335
|
+
.smrt-agent-schedule-list__success-rate.smrt-agent-schedule-list__good {
|
|
316
336
|
color: var(--smrt-color-tertiary);
|
|
317
337
|
}
|
|
318
|
-
|
|
319
|
-
.success-rate.warning {
|
|
338
|
+
.smrt-agent-schedule-list__success-rate.smrt-agent-schedule-list__warning {
|
|
320
339
|
color: var(--smrt-color-secondary);
|
|
321
340
|
}
|
|
322
|
-
|
|
323
|
-
.success-rate.bad {
|
|
341
|
+
.smrt-agent-schedule-list__success-rate.smrt-agent-schedule-list__bad {
|
|
324
342
|
color: var(--smrt-color-error);
|
|
325
343
|
}
|
|
326
|
-
|
|
327
|
-
.schedule-list__cell--runs {
|
|
344
|
+
.smrt-agent-schedule-list__cell-runs {
|
|
328
345
|
text-align: center;
|
|
329
346
|
font-family: var(--smrt-font-family-mono, monospace);
|
|
330
347
|
}
|
|
331
|
-
|
|
332
|
-
.running-indicator {
|
|
348
|
+
.smrt-agent-schedule-list__running-indicator {
|
|
333
349
|
color: var(--smrt-color-primary);
|
|
334
350
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
335
351
|
}
|
|
336
|
-
|
|
337
|
-
.schedule-list__cell
|
|
338
|
-
white-space: nowrap;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.actions {
|
|
342
|
-
display: flex;
|
|
343
|
-
gap: var(--smrt-spacing-xs, 0.25rem);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.schedule-list__cell--loading,
|
|
347
|
-
.schedule-list__cell--empty {
|
|
348
|
-
padding: var(--smrt-spacing-xl, 2rem);
|
|
352
|
+
.smrt-agent-schedule-list__cell-loading,
|
|
353
|
+
.smrt-agent-schedule-list__cell-empty {
|
|
349
354
|
text-align: center;
|
|
350
355
|
}
|
|
351
|
-
|
|
352
|
-
.schedule-list__loading {
|
|
353
|
-
display: flex;
|
|
354
|
-
align-items: center;
|
|
355
|
-
justify-content: center;
|
|
356
|
-
gap: var(--smrt-spacing-sm, 0.5rem);
|
|
356
|
+
.smrt-agent-schedule-list__progress {
|
|
357
357
|
color: var(--smrt-color-on-surface-variant);
|
|
358
358
|
}
|
|
359
|
-
|
|
360
|
-
.schedule-list__spinner {
|
|
361
|
-
width: 20px;
|
|
362
|
-
height: 20px;
|
|
359
|
+
.smrt-agent-schedule-list__spinner {
|
|
363
360
|
border: 2px solid var(--smrt-color-outline-variant);
|
|
364
361
|
border-top-color: var(--smrt-color-primary);
|
|
365
362
|
border-radius: var(--smrt-radius-full);
|
|
366
363
|
animation: spin 0.8s linear infinite;
|
|
367
364
|
}
|
|
368
|
-
|
|
369
365
|
@keyframes spin {
|
|
370
366
|
to {
|
|
371
367
|
transform: rotate(360deg);
|
|
372
368
|
}
|
|
373
369
|
}
|
|
374
|
-
|
|
375
|
-
.schedule-list__empty {
|
|
370
|
+
.smrt-agent-schedule-list__empty {
|
|
376
371
|
color: var(--smrt-color-on-surface-variant);
|
|
377
372
|
}
|
|
378
373
|
}
|
|
374
|
+
|
|
379
375
|
</style>
|
|
@@ -110,7 +110,7 @@ async function handleSubmit() {
|
|
|
110
110
|
|
|
111
111
|
<Form class="agent-settings-form" onsubmit={handleSubmit}>
|
|
112
112
|
{#each schema.fields as field (field.id)}
|
|
113
|
-
<div class="field">
|
|
113
|
+
<div class="smrt-agent-settings-form__field" data-smrt-part="field">
|
|
114
114
|
{#if field.type === 'boolean'}
|
|
115
115
|
<Checkbox
|
|
116
116
|
id={field.id}
|
|
@@ -159,12 +159,12 @@ async function handleSubmit() {
|
|
|
159
159
|
{/if}
|
|
160
160
|
{/if}
|
|
161
161
|
{#if field.description}<small>{field.description}</small>{/if}
|
|
162
|
-
{#if errors[field.id]}<p class="error">{errors[field.id]}</p>{/if}
|
|
162
|
+
{#if errors[field.id]}<p class="smrt-agent-settings-form__error" data-smrt-part="error">{errors[field.id]}</p>{/if}
|
|
163
163
|
</div>
|
|
164
164
|
{/each}
|
|
165
165
|
|
|
166
166
|
{#if !readonly}
|
|
167
|
-
<div class="actions">
|
|
167
|
+
<div class="smrt-agent-settings-form__actions" data-smrt-part="actions">
|
|
168
168
|
<Button type="submit" disabled={saving}>{saving ? 'Saving…' : 'Save settings'}</Button>
|
|
169
169
|
</div>
|
|
170
170
|
{/if}
|
|
@@ -172,36 +172,37 @@ async function handleSubmit() {
|
|
|
172
172
|
|
|
173
173
|
<style>
|
|
174
174
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
175
|
-
@layer smrt.
|
|
175
|
+
@layer smrt.structure {
|
|
176
176
|
:global(.agent-settings-form) {
|
|
177
177
|
display: grid;
|
|
178
178
|
gap: var(--smrt-spacing-5, 1.25rem);
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
.field {
|
|
180
|
+
.smrt-agent-settings-form__field {
|
|
182
181
|
display: grid;
|
|
183
182
|
gap: var(--smrt-spacing-2, 0.5rem);
|
|
184
183
|
}
|
|
184
|
+
.smrt-agent-settings-form__error {
|
|
185
|
+
margin: 0;
|
|
186
|
+
}
|
|
187
|
+
.smrt-agent-settings-form__actions {
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: flex-end;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
185
192
|
|
|
193
|
+
@layer smrt.theme {
|
|
186
194
|
label {
|
|
187
195
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
188
196
|
}
|
|
189
|
-
|
|
190
197
|
small {
|
|
191
198
|
color: var(--smrt-color-on-surface-variant);
|
|
192
199
|
}
|
|
193
|
-
|
|
194
|
-
.error {
|
|
195
|
-
margin: 0;
|
|
200
|
+
.smrt-agent-settings-form__error {
|
|
196
201
|
color: var(--smrt-color-error);
|
|
197
202
|
font-size: var(--smrt-typography-body-medium-size, 0.875rem);
|
|
198
203
|
line-height: var(--smrt-typography-body-medium-line-height, 1.25rem);
|
|
199
204
|
letter-spacing: var(--smrt-typography-body-medium-tracking, 0.015625rem);
|
|
200
205
|
}
|
|
201
|
-
|
|
202
|
-
.actions {
|
|
203
|
-
display: flex;
|
|
204
|
-
justify-content: flex-end;
|
|
205
|
-
}
|
|
206
206
|
}
|
|
207
|
+
|
|
207
208
|
</style>
|