@happyvertical/smrt-support 0.60.16 → 0.60.17
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/CaseDetail.svelte +82 -86
- package/dist/svelte/components/CaseQueue.svelte +37 -34
- package/dist/svelte/components/RoutingRationale.svelte +32 -32
- package/dist/svelte/components/TargetList.svelte +34 -34
- package/package.json +13 -13
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-support",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.17",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "82309620e710349dbb22f0b6cbf34dc601dd5ae1b92b24151704c69dfb3e4898",
|
|
11
|
+
"packageJson": "052e77910dd923cfb33f4c477d491dda4c8284b03e8ea15c754e646bb695b97b",
|
|
12
12
|
"agents": "06c34c176f2e9fcb1b2b2efa900ea859e8fe61906a5345f8bac81cd2119a2998"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -40,11 +40,11 @@ function formatWhen(iso: string): string {
|
|
|
40
40
|
}
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
|
-
<article class="case-
|
|
44
|
-
<header class="case-
|
|
45
|
-
<p class="case-
|
|
46
|
-
<h2 class="case-
|
|
47
|
-
<div class="case-
|
|
43
|
+
<article class="smrt-case-detail__root" data-smrt-component="CaseDetail">
|
|
44
|
+
<header class="smrt-case-detail__header" data-smrt-part="header">
|
|
45
|
+
<p class="smrt-case-detail__number" data-smrt-part="value">{caseView.caseNumber}</p>
|
|
46
|
+
<h2 class="smrt-case-detail__subject" data-smrt-part="title">{caseView.subject}</h2>
|
|
47
|
+
<div class="smrt-case-detail__badges" data-smrt-part="meta">
|
|
48
48
|
<StatusBadge
|
|
49
49
|
status={priorityBadgeKey(caseView.priority)}
|
|
50
50
|
label={caseView.priority}
|
|
@@ -56,17 +56,17 @@ function formatWhen(iso: string): string {
|
|
|
56
56
|
size="sm"
|
|
57
57
|
/>
|
|
58
58
|
{#if caseView.severity}
|
|
59
|
-
<span class="case-
|
|
59
|
+
<span class="smrt-case-detail__severity" data-smrt-part="meta">{caseView.severity}</span>
|
|
60
60
|
{/if}
|
|
61
61
|
{#if caseView.reopenCount > 0}
|
|
62
|
-
<span class="case-
|
|
62
|
+
<span class="smrt-case-detail__reopens" data-smrt-part="meta">
|
|
63
63
|
reopened ×{caseView.reopenCount}
|
|
64
64
|
</span>
|
|
65
65
|
{/if}
|
|
66
66
|
</div>
|
|
67
67
|
</header>
|
|
68
68
|
|
|
69
|
-
<dl class="case-
|
|
69
|
+
<dl class="smrt-case-detail__meta" data-smrt-part="meta">
|
|
70
70
|
<div>
|
|
71
71
|
<dt>Assigned</dt>
|
|
72
72
|
<dd>
|
|
@@ -89,19 +89,19 @@ function formatWhen(iso: string): string {
|
|
|
89
89
|
</dl>
|
|
90
90
|
|
|
91
91
|
{#if caseView.resolutionSummary}
|
|
92
|
-
<section class="case-
|
|
92
|
+
<section class="smrt-case-detail__resolution" data-smrt-part="description" aria-label="Resolution">
|
|
93
93
|
<h3>Resolution</h3>
|
|
94
94
|
<p>{caseView.resolutionSummary}</p>
|
|
95
95
|
</section>
|
|
96
96
|
{/if}
|
|
97
97
|
|
|
98
98
|
{#if workLinks.length > 0}
|
|
99
|
-
<section class="case-
|
|
99
|
+
<section class="smrt-case-detail__work" data-smrt-part="group" aria-label="Linked work">
|
|
100
100
|
<h3>Linked work</h3>
|
|
101
101
|
<ul>
|
|
102
102
|
{#each workLinks as link (link.id)}
|
|
103
103
|
<li>
|
|
104
|
-
<span class="case-
|
|
104
|
+
<span class="smrt-case-detail__work-kind" data-smrt-part="meta">
|
|
105
105
|
{link.linkKind === 'development_work_item'
|
|
106
106
|
? 'delivery'
|
|
107
107
|
: 'support'}
|
|
@@ -120,17 +120,17 @@ function formatWhen(iso: string): string {
|
|
|
120
120
|
</section>
|
|
121
121
|
{/if}
|
|
122
122
|
|
|
123
|
-
<section class="case-
|
|
123
|
+
<section class="smrt-case-detail__timeline" data-smrt-part="list" aria-label="Case history">
|
|
124
124
|
<h3>History</h3>
|
|
125
125
|
{#if timeline.length === 0}
|
|
126
|
-
<p class="case-
|
|
126
|
+
<p class="smrt-case-detail__empty" data-smrt-part="empty">No activity yet</p>
|
|
127
127
|
{:else}
|
|
128
128
|
<ol>
|
|
129
129
|
{#each timeline as item, index (index)}
|
|
130
|
-
<li class="
|
|
131
|
-
<div class="
|
|
132
|
-
<span class="
|
|
133
|
-
<span class="
|
|
130
|
+
<li class="smrt-case-detail__timeline-item" data-kind={item.kind} data-smrt-part="row">
|
|
131
|
+
<div class="smrt-case-detail__timeline-item-head" data-smrt-part="header">
|
|
132
|
+
<span class="smrt-case-detail__timeline-actor" data-smrt-part="author">{item.actorKind}</span>
|
|
133
|
+
<span class="smrt-case-detail__timeline-summary" data-smrt-part="summary">
|
|
134
134
|
{item.kind === 'event'
|
|
135
135
|
? item.summary
|
|
136
136
|
: humanizeStatus(item.summary)}
|
|
@@ -140,7 +140,7 @@ function formatWhen(iso: string): string {
|
|
|
140
140
|
</time>
|
|
141
141
|
</div>
|
|
142
142
|
{#if item.body}
|
|
143
|
-
<p class="
|
|
143
|
+
<p class="smrt-case-detail__timeline-body" data-smrt-part="body">{item.body}</p>
|
|
144
144
|
{/if}
|
|
145
145
|
</li>
|
|
146
146
|
{/each}
|
|
@@ -151,63 +151,39 @@ function formatWhen(iso: string): string {
|
|
|
151
151
|
|
|
152
152
|
<style>
|
|
153
153
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
154
|
-
@layer smrt.
|
|
155
|
-
.case-
|
|
154
|
+
@layer smrt.structure {
|
|
155
|
+
.smrt-case-detail__root {
|
|
156
156
|
display: flex;
|
|
157
157
|
flex-direction: column;
|
|
158
158
|
gap: 1rem;
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
.case-detail-number {
|
|
160
|
+
.smrt-case-detail__number {
|
|
162
161
|
margin: 0;
|
|
163
|
-
font-size: 0.75rem;
|
|
164
|
-
color: var(--smrt-color-on-surface-variant, inherit);
|
|
165
162
|
}
|
|
166
|
-
|
|
167
|
-
.case-detail-subject {
|
|
163
|
+
.smrt-case-detail__subject {
|
|
168
164
|
margin: 0.125rem 0 0.5rem;
|
|
169
|
-
font-size: 1.25rem;
|
|
170
165
|
}
|
|
171
|
-
|
|
172
|
-
.case-detail-badges {
|
|
166
|
+
.smrt-case-detail__badges {
|
|
173
167
|
display: flex;
|
|
174
168
|
align-items: center;
|
|
175
169
|
gap: 0.5rem;
|
|
176
170
|
flex-wrap: wrap;
|
|
177
171
|
}
|
|
178
|
-
|
|
179
|
-
.case-detail-severity,
|
|
180
|
-
.case-detail-reopens {
|
|
181
|
-
font-size: 0.75rem;
|
|
182
|
-
color: var(--smrt-color-on-surface-variant, inherit);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.case-detail-meta {
|
|
172
|
+
.smrt-case-detail__meta {
|
|
186
173
|
display: flex;
|
|
187
174
|
gap: 1.5rem;
|
|
188
175
|
margin: 0;
|
|
189
176
|
flex-wrap: wrap;
|
|
190
177
|
}
|
|
191
|
-
|
|
192
|
-
.case-detail-meta dt {
|
|
193
|
-
font-size: 0.6875rem;
|
|
194
|
-
text-transform: uppercase;
|
|
195
|
-
letter-spacing: 0.04em;
|
|
196
|
-
color: var(--smrt-color-on-surface-variant, inherit);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.case-detail-meta dd {
|
|
178
|
+
.smrt-case-detail__meta dd {
|
|
200
179
|
margin: 0;
|
|
201
180
|
}
|
|
202
|
-
|
|
203
|
-
.case-
|
|
204
|
-
.case-
|
|
205
|
-
.case-detail-timeline h3 {
|
|
181
|
+
.smrt-case-detail__resolution h3,
|
|
182
|
+
.smrt-case-detail__work h3,
|
|
183
|
+
.smrt-case-detail__timeline h3 {
|
|
206
184
|
margin: 0 0 0.5rem;
|
|
207
|
-
font-size: 0.875rem;
|
|
208
185
|
}
|
|
209
|
-
|
|
210
|
-
.case-detail-work ul {
|
|
186
|
+
.smrt-case-detail__work ul {
|
|
211
187
|
list-style: none;
|
|
212
188
|
margin: 0;
|
|
213
189
|
padding: 0;
|
|
@@ -215,21 +191,12 @@ function formatWhen(iso: string): string {
|
|
|
215
191
|
flex-direction: column;
|
|
216
192
|
gap: 0.375rem;
|
|
217
193
|
}
|
|
218
|
-
|
|
219
|
-
.case-detail-work li {
|
|
194
|
+
.smrt-case-detail__work li {
|
|
220
195
|
display: flex;
|
|
221
196
|
align-items: center;
|
|
222
197
|
gap: 0.5rem;
|
|
223
198
|
}
|
|
224
|
-
|
|
225
|
-
.case-detail-work-kind {
|
|
226
|
-
font-size: 0.6875rem;
|
|
227
|
-
text-transform: uppercase;
|
|
228
|
-
letter-spacing: 0.04em;
|
|
229
|
-
color: var(--smrt-color-on-surface-variant, inherit);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.case-detail-timeline ol {
|
|
199
|
+
.smrt-case-detail__timeline ol {
|
|
233
200
|
list-style: none;
|
|
234
201
|
margin: 0;
|
|
235
202
|
padding: 0;
|
|
@@ -237,47 +204,76 @@ function formatWhen(iso: string): string {
|
|
|
237
204
|
flex-direction: column;
|
|
238
205
|
gap: 0.625rem;
|
|
239
206
|
}
|
|
240
|
-
|
|
241
|
-
.timeline-item {
|
|
242
|
-
border-left: 2px solid var(--smrt-color-outline-variant, currentColor);
|
|
207
|
+
.smrt-case-detail__timeline-item {
|
|
243
208
|
padding-left: 0.75rem;
|
|
244
209
|
}
|
|
245
|
-
|
|
246
|
-
.timeline-item[data-kind='interaction'] {
|
|
247
|
-
border-left-color: var(--smrt-color-primary, currentColor);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.timeline-item-head {
|
|
210
|
+
.smrt-case-detail__timeline-item-head {
|
|
251
211
|
display: flex;
|
|
252
212
|
align-items: baseline;
|
|
253
213
|
gap: 0.5rem;
|
|
254
214
|
flex-wrap: wrap;
|
|
255
215
|
}
|
|
216
|
+
.smrt-case-detail__timeline-item time {
|
|
217
|
+
margin-left: auto;
|
|
218
|
+
}
|
|
219
|
+
.smrt-case-detail__timeline-body {
|
|
220
|
+
margin: 0.25rem 0 0;
|
|
221
|
+
white-space: pre-wrap;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
256
224
|
|
|
257
|
-
|
|
225
|
+
@layer smrt.theme {
|
|
226
|
+
.smrt-case-detail__number {
|
|
227
|
+
font-size: 0.75rem;
|
|
228
|
+
color: var(--smrt-color-on-surface-variant, inherit);
|
|
229
|
+
}
|
|
230
|
+
.smrt-case-detail__subject {
|
|
231
|
+
font-size: 1.25rem;
|
|
232
|
+
}
|
|
233
|
+
.smrt-case-detail__severity,
|
|
234
|
+
.smrt-case-detail__reopens {
|
|
235
|
+
font-size: 0.75rem;
|
|
236
|
+
color: var(--smrt-color-on-surface-variant, inherit);
|
|
237
|
+
}
|
|
238
|
+
.smrt-case-detail__meta dt {
|
|
258
239
|
font-size: 0.6875rem;
|
|
259
240
|
text-transform: uppercase;
|
|
260
241
|
letter-spacing: 0.04em;
|
|
261
242
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
262
243
|
}
|
|
263
|
-
|
|
264
|
-
.
|
|
244
|
+
.smrt-case-detail__resolution h3,
|
|
245
|
+
.smrt-case-detail__work h3,
|
|
246
|
+
.smrt-case-detail__timeline h3 {
|
|
247
|
+
font-size: 0.875rem;
|
|
248
|
+
}
|
|
249
|
+
.smrt-case-detail__work-kind {
|
|
250
|
+
font-size: 0.6875rem;
|
|
251
|
+
text-transform: uppercase;
|
|
252
|
+
letter-spacing: 0.04em;
|
|
253
|
+
color: var(--smrt-color-on-surface-variant, inherit);
|
|
254
|
+
}
|
|
255
|
+
.smrt-case-detail__timeline-item {
|
|
256
|
+
border-left: 2px solid var(--smrt-color-outline-variant, currentColor);
|
|
257
|
+
}
|
|
258
|
+
.smrt-case-detail__timeline-item[data-kind='interaction'] {
|
|
259
|
+
border-left-color: var(--smrt-color-primary, currentColor);
|
|
260
|
+
}
|
|
261
|
+
.smrt-case-detail__timeline-actor {
|
|
262
|
+
font-size: 0.6875rem;
|
|
263
|
+
text-transform: uppercase;
|
|
264
|
+
letter-spacing: 0.04em;
|
|
265
|
+
color: var(--smrt-color-on-surface-variant, inherit);
|
|
266
|
+
}
|
|
267
|
+
.smrt-case-detail__timeline-summary {
|
|
265
268
|
font-weight: 500;
|
|
266
269
|
}
|
|
267
|
-
|
|
268
|
-
.timeline-item time {
|
|
270
|
+
.smrt-case-detail__timeline-item time {
|
|
269
271
|
font-size: 0.75rem;
|
|
270
272
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
271
|
-
margin-left: auto;
|
|
272
273
|
}
|
|
273
|
-
|
|
274
|
-
.timeline-body {
|
|
275
|
-
margin: 0.25rem 0 0;
|
|
276
|
-
white-space: pre-wrap;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.case-detail-empty {
|
|
274
|
+
.smrt-case-detail__empty {
|
|
280
275
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
281
276
|
}
|
|
282
277
|
}
|
|
278
|
+
|
|
283
279
|
</style>
|
|
@@ -45,23 +45,23 @@ function formatUpdated(iso: string | null): string {
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
{#if cases.length === 0}
|
|
48
|
-
<p class="case-
|
|
48
|
+
<p class="smrt-case-queue__empty" data-smrt-component="CaseQueue" >{emptyMessage}</p>
|
|
49
49
|
{:else}
|
|
50
|
-
<ul class="case-
|
|
50
|
+
<ul class="smrt-case-queue__root" data-smrt-component="CaseQueue">
|
|
51
51
|
{#each cases as item (item.id)}
|
|
52
|
-
<li class="case-
|
|
52
|
+
<li class="smrt-case-queue__row" data-smrt-part="row">
|
|
53
53
|
<Button
|
|
54
54
|
variant="ghost"
|
|
55
55
|
fullWidth
|
|
56
56
|
onclick={() => onselect?.(item.id)}
|
|
57
57
|
aria-label={`Open case ${item.caseNumber}: ${item.subject}`}
|
|
58
58
|
>
|
|
59
|
-
<span class="case-
|
|
60
|
-
<span class="case-
|
|
61
|
-
<span class="case-
|
|
62
|
-
<span class="case-
|
|
59
|
+
<span class="smrt-case-queue__line" data-smrt-part="body">
|
|
60
|
+
<span class="smrt-case-queue__main" data-smrt-part="title">
|
|
61
|
+
<span class="smrt-case-queue__number" data-smrt-part="value">{item.caseNumber}</span>
|
|
62
|
+
<span class="smrt-case-queue__subject" data-smrt-part="title">{item.subject}</span>
|
|
63
63
|
</span>
|
|
64
|
-
<span class="case-
|
|
64
|
+
<span class="smrt-case-queue__meta" data-smrt-part="meta">
|
|
65
65
|
<StatusBadge
|
|
66
66
|
status={priorityBadgeKey(item.priority)}
|
|
67
67
|
label={item.priority}
|
|
@@ -73,15 +73,15 @@ function formatUpdated(iso: string | null): string {
|
|
|
73
73
|
size="sm"
|
|
74
74
|
/>
|
|
75
75
|
{#if item.channelKind}
|
|
76
|
-
<span class="case-
|
|
76
|
+
<span class="smrt-case-queue__channel" data-smrt-part="meta">{item.channelKind}</span>
|
|
77
77
|
{/if}
|
|
78
78
|
{#if showAssignee}
|
|
79
|
-
<span class="case-
|
|
79
|
+
<span class="smrt-case-queue__assignee" data-smrt-part="meta">
|
|
80
80
|
{item.assignedSpecialistName ??
|
|
81
81
|
(item.assignedSpecialistId ? 'assigned' : 'unassigned')}
|
|
82
82
|
</span>
|
|
83
83
|
{/if}
|
|
84
|
-
<span class="case-
|
|
84
|
+
<span class="smrt-case-queue__updated" data-smrt-part="meta">
|
|
85
85
|
{formatUpdated(item.updatedAt)}
|
|
86
86
|
</span>
|
|
87
87
|
</span>
|
|
@@ -94,8 +94,8 @@ function formatUpdated(iso: string | null): string {
|
|
|
94
94
|
|
|
95
95
|
<style>
|
|
96
96
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
97
|
-
@layer smrt.
|
|
98
|
-
.case-
|
|
97
|
+
@layer smrt.structure {
|
|
98
|
+
.smrt-case-queue__root {
|
|
99
99
|
list-style: none;
|
|
100
100
|
margin: 0;
|
|
101
101
|
padding: 0;
|
|
@@ -103,52 +103,55 @@ function formatUpdated(iso: string | null): string {
|
|
|
103
103
|
flex-direction: column;
|
|
104
104
|
gap: 0.25rem;
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
.case-queue-line {
|
|
106
|
+
.smrt-case-queue__line {
|
|
108
107
|
display: flex;
|
|
109
108
|
width: 100%;
|
|
110
109
|
align-items: center;
|
|
111
110
|
justify-content: space-between;
|
|
112
111
|
gap: 0.75rem;
|
|
113
|
-
text-align: left;
|
|
114
112
|
}
|
|
115
|
-
|
|
116
|
-
.case-queue-main {
|
|
113
|
+
.smrt-case-queue__main {
|
|
117
114
|
display: flex;
|
|
118
115
|
flex-direction: column;
|
|
119
116
|
gap: 0.125rem;
|
|
120
117
|
min-width: 0;
|
|
121
118
|
}
|
|
122
|
-
|
|
123
|
-
.case-queue-number {
|
|
124
|
-
font-size: 0.75rem;
|
|
125
|
-
color: var(--smrt-color-on-surface-variant, inherit);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.case-queue-subject {
|
|
129
|
-
font-weight: 500;
|
|
119
|
+
.smrt-case-queue__subject {
|
|
130
120
|
overflow: hidden;
|
|
131
121
|
text-overflow: ellipsis;
|
|
132
122
|
white-space: nowrap;
|
|
133
123
|
}
|
|
134
|
-
|
|
135
|
-
.case-queue-meta {
|
|
124
|
+
.smrt-case-queue__meta {
|
|
136
125
|
display: flex;
|
|
137
126
|
align-items: center;
|
|
138
127
|
gap: 0.5rem;
|
|
139
128
|
flex-shrink: 0;
|
|
140
129
|
}
|
|
130
|
+
.smrt-case-queue__empty {
|
|
131
|
+
padding: 1rem 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
141
134
|
|
|
142
|
-
|
|
143
|
-
.case-
|
|
144
|
-
|
|
135
|
+
@layer smrt.theme {
|
|
136
|
+
.smrt-case-queue__line {
|
|
137
|
+
text-align: left;
|
|
138
|
+
}
|
|
139
|
+
.smrt-case-queue__number {
|
|
145
140
|
font-size: 0.75rem;
|
|
146
141
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
147
142
|
}
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
.smrt-case-queue__subject {
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
}
|
|
146
|
+
.smrt-case-queue__channel,
|
|
147
|
+
.smrt-case-queue__assignee,
|
|
148
|
+
.smrt-case-queue__updated {
|
|
149
|
+
font-size: 0.75rem;
|
|
150
|
+
color: var(--smrt-color-on-surface-variant, inherit);
|
|
151
|
+
}
|
|
152
|
+
.smrt-case-queue__empty {
|
|
150
153
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
151
|
-
padding: 1rem 0;
|
|
152
154
|
}
|
|
153
155
|
}
|
|
156
|
+
|
|
154
157
|
</style>
|
|
@@ -35,24 +35,24 @@ function factorChips(
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
{#if ranking.length === 0}
|
|
38
|
-
<p class="routing-
|
|
38
|
+
<p class="smrt-routing-rationale__empty" data-smrt-component="RoutingRationale" >{emptyMessage}</p>
|
|
39
39
|
{:else}
|
|
40
|
-
<ul class="routing-
|
|
40
|
+
<ul class="smrt-routing-rationale__root" data-smrt-component="RoutingRationale">
|
|
41
41
|
{#each ranking as entry (entry.specialistId)}
|
|
42
|
-
<li class="routing-
|
|
43
|
-
<span class="routing-
|
|
44
|
-
<span class="routing-
|
|
45
|
-
<span class="routing-
|
|
46
|
-
<span class="routing-
|
|
42
|
+
<li class="smrt-routing-rationale__row" data-smrt-part="row">
|
|
43
|
+
<span class="smrt-routing-rationale__main" data-smrt-part="body">
|
|
44
|
+
<span class="smrt-routing-rationale__head" data-smrt-part="header">
|
|
45
|
+
<span class="smrt-routing-rationale__name" data-smrt-part="title">{entry.displayName}</span>
|
|
46
|
+
<span class="smrt-routing-rationale__score" data-smrt-part="value">score {entry.score}</span>
|
|
47
47
|
<StatusBadge
|
|
48
48
|
status={entry.eligible ? 'success' : 'inactive'}
|
|
49
49
|
label={entry.eligible ? 'eligible' : 'ineligible'}
|
|
50
50
|
size="sm"
|
|
51
51
|
/>
|
|
52
52
|
</span>
|
|
53
|
-
<span class="routing-
|
|
53
|
+
<span class="smrt-routing-rationale__factors" data-smrt-part="list">
|
|
54
54
|
{#each factorChips(entry.factors) as chip (chip)}
|
|
55
|
-
<span class="routing-
|
|
55
|
+
<span class="smrt-routing-rationale__factor" data-smrt-part="badge">{chip}</span>
|
|
56
56
|
{/each}
|
|
57
57
|
</span>
|
|
58
58
|
</span>
|
|
@@ -73,8 +73,8 @@ function factorChips(
|
|
|
73
73
|
|
|
74
74
|
<style>
|
|
75
75
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
76
|
-
@layer smrt.
|
|
77
|
-
.routing-
|
|
76
|
+
@layer smrt.structure {
|
|
77
|
+
.smrt-routing-rationale__root {
|
|
78
78
|
list-style: none;
|
|
79
79
|
margin: 0;
|
|
80
80
|
padding: 0;
|
|
@@ -82,55 +82,55 @@ function factorChips(
|
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
gap: 0.5rem;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
.routing-rationale-row {
|
|
85
|
+
.smrt-routing-rationale__row {
|
|
87
86
|
display: flex;
|
|
88
87
|
align-items: flex-start;
|
|
89
88
|
justify-content: space-between;
|
|
90
89
|
gap: 0.75rem;
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
.routing-rationale-main {
|
|
91
|
+
.smrt-routing-rationale__main {
|
|
94
92
|
display: flex;
|
|
95
93
|
flex-direction: column;
|
|
96
94
|
gap: 0.25rem;
|
|
97
95
|
min-width: 0;
|
|
98
96
|
}
|
|
99
|
-
|
|
100
|
-
.routing-rationale-head {
|
|
97
|
+
.smrt-routing-rationale__head {
|
|
101
98
|
display: flex;
|
|
102
99
|
align-items: center;
|
|
103
100
|
gap: 0.5rem;
|
|
104
101
|
flex-wrap: wrap;
|
|
105
102
|
}
|
|
103
|
+
.smrt-routing-rationale__factors {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
gap: 0.25rem;
|
|
107
|
+
}
|
|
108
|
+
.smrt-routing-rationale__factor {
|
|
109
|
+
padding: 0.0625rem 0.375rem;
|
|
110
|
+
}
|
|
111
|
+
.smrt-routing-rationale__empty {
|
|
112
|
+
padding: 1rem 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
106
115
|
|
|
107
|
-
|
|
116
|
+
@layer smrt.theme {
|
|
117
|
+
.smrt-routing-rationale__name {
|
|
108
118
|
font-weight: 500;
|
|
109
119
|
}
|
|
110
|
-
|
|
111
|
-
.routing-rationale-score {
|
|
120
|
+
.smrt-routing-rationale__score {
|
|
112
121
|
font-size: 0.75rem;
|
|
113
122
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
114
123
|
}
|
|
115
|
-
|
|
116
|
-
.routing-rationale-factors {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-wrap: wrap;
|
|
119
|
-
gap: 0.25rem;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.routing-rationale-factor {
|
|
124
|
+
.smrt-routing-rationale__factor {
|
|
123
125
|
font-size: 0.6875rem;
|
|
124
|
-
padding: 0.0625rem 0.375rem;
|
|
125
126
|
border-radius: 0.5rem;
|
|
126
127
|
background: var(--smrt-color-surface-container-highest, transparent);
|
|
127
128
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
128
129
|
border: var(--smrt-hairline);
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
-
.routing-rationale-empty {
|
|
131
|
+
.smrt-routing-rationale__empty {
|
|
132
132
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
133
|
-
padding: 1rem 0;
|
|
134
133
|
}
|
|
135
134
|
}
|
|
135
|
+
|
|
136
136
|
</style>
|