@happyvertical/smrt-projects 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/AGENTS.md +3 -1
- package/dist/collections/Repositories.d.ts +22 -0
- package/dist/collections/Repositories.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +221 -6
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +234 -5
- package/dist/models/Repository.d.ts +56 -1
- package/dist/models/Repository.d.ts.map +1 -1
- package/dist/repository-token.d.ts +18 -0
- package/dist/repository-token.d.ts.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/repository-organization-sync.d.ts +118 -0
- package/dist/services/repository-organization-sync.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +104 -6
- package/dist/smrt-knowledge.okf.md +2 -2
- package/dist/svelte/AssistanceLauncher.svelte +23 -13
- package/dist/svelte/DeliveryStatus.svelte +23 -13
- package/dist/svelte/DevelopmentBoard.svelte +10 -4
- package/dist/svelte/DevelopmentRequestDetail.svelte +15 -9
- package/dist/svelte/PreviewApprovalPanel.svelte +16 -10
- package/dist/svelte/ProjectBoard.svelte +4 -0
- package/dist/svelte/ProjectInterview.svelte +123 -37
- package/dist/svelte/ProjectQuestionsAndDecisions.svelte +128 -35
- package/dist/svelte/ServiceEvidenceList.svelte +35 -23
- package/dist/svelte/components/ApprovalActions.svelte +15 -13
- package/dist/svelte/components/BulkActions.svelte +40 -37
- package/dist/svelte/components/DevelopmentRequestForm.svelte +37 -6
- package/dist/svelte/components/DevelopmentRequestList.svelte +68 -69
- package/dist/svelte/components/RejectDialog.svelte +54 -45
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -221,15 +221,15 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
221
221
|
</script>
|
|
222
222
|
|
|
223
223
|
<section
|
|
224
|
-
class="
|
|
224
|
+
class="smrt-project-interview__root"
|
|
225
225
|
aria-label={t(M['projects.interview.aria'])}
|
|
226
226
|
data-smrt-component="ProjectInterview"
|
|
227
227
|
data-motion={reducedMotion ? 'off' : 'on'}
|
|
228
228
|
>
|
|
229
229
|
{#if total === 0}
|
|
230
|
-
<p class="empty">{t(M['projects.interview.empty'])}</p>
|
|
230
|
+
<p class="smrt-project-interview__empty" data-smrt-part="empty">{t(M['projects.interview.empty'])}</p>
|
|
231
231
|
{:else}
|
|
232
|
-
<div class="progress">
|
|
232
|
+
<div class="smrt-project-interview__progress" data-smrt-part="progress">
|
|
233
233
|
<p aria-live="polite">
|
|
234
234
|
{#if current}{t(M['projects.interview.progress'], { current: position + 1, total })} · {/if}{t(M['projects.interview.answered_count'], { answered: answeredCount, total })}
|
|
235
235
|
</p>
|
|
@@ -237,19 +237,19 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
237
237
|
</div>
|
|
238
238
|
|
|
239
239
|
{#key current?.key ?? 'complete'}
|
|
240
|
-
<article class="
|
|
240
|
+
<article class="smrt-project-interview__step" data-smrt-part="item" data-interview-step={current?.key ?? 'complete'}>
|
|
241
241
|
{#if current}
|
|
242
242
|
{@const frame = framing[current.record.id] ?? {}}
|
|
243
243
|
{@const prompt = current.kind === 'question' ? current.record.prompt : current.record.question}
|
|
244
244
|
<h2 tabindex="-1" bind:this={heading}>{prompt}</h2>
|
|
245
245
|
{#if frame.why}
|
|
246
|
-
<div class="
|
|
246
|
+
<div class="smrt-project-interview__framing" data-smrt-part="description">
|
|
247
247
|
<h3>{t(M['projects.interview.why'])}</h3>
|
|
248
248
|
<p>{frame.why}</p>
|
|
249
249
|
</div>
|
|
250
250
|
{/if}
|
|
251
251
|
{#if frame.unblocks?.length}
|
|
252
|
-
<div class="
|
|
252
|
+
<div class="smrt-project-interview__framing" data-smrt-part="description">
|
|
253
253
|
<h3 id={`unblocks-${current.key}`}>{t(M['projects.interview.unblocks'])}</h3>
|
|
254
254
|
<ul aria-labelledby={`unblocks-${current.key}`}>
|
|
255
255
|
{#each frame.unblocks as label, index (`${index}:${label}`)}
|
|
@@ -260,7 +260,7 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
260
260
|
{/if}
|
|
261
261
|
|
|
262
262
|
{#if current.record.status !== 'open'}
|
|
263
|
-
<div class="
|
|
263
|
+
<div class="smrt-project-interview__recorded" data-smrt-part="meta">
|
|
264
264
|
<h3>{t(M['projects.interview.recorded'])}</h3>
|
|
265
265
|
{#if current.kind === 'question'}
|
|
266
266
|
<p>{current.record.answer}</p>
|
|
@@ -273,7 +273,7 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
273
273
|
{/if}
|
|
274
274
|
</div>
|
|
275
275
|
{:else if !current.record.canResolve}
|
|
276
|
-
<p class="empty">{t(M['projects.interview.not_yours'])}</p>
|
|
276
|
+
<p class="smrt-project-interview__empty" data-smrt-part="empty">{t(M['projects.interview.not_yours'])}</p>
|
|
277
277
|
{:else if current.kind === 'question'}
|
|
278
278
|
{@const question = current.record}
|
|
279
279
|
{@const options = sortedOptions(question.options, frame.recommendedOptionId, true)}
|
|
@@ -282,14 +282,14 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
282
282
|
<fieldset disabled={busy}>
|
|
283
283
|
<legend>{t(M['projects.interview.your_answer'])}</legend>
|
|
284
284
|
{#each options as option (option.id)}
|
|
285
|
-
<label class="
|
|
285
|
+
<label class="smrt-project-interview__choice" data-smrt-part="trigger" class:smrt-project-interview__recommended={option.isRecommended}>
|
|
286
286
|
<Input type="radio" name="selectedOptionId" value={option.id} required interaction={false} checked={selections[current.key] === option.id} onchange={() => (selections[current.key] = option.id)} />
|
|
287
287
|
<span>{option.label}{#if option.isRecommended} <strong>{t(M['projects.governance.recommended'])}</strong>{/if}
|
|
288
288
|
{#if option.description}<small>{option.description}</small>{/if}
|
|
289
289
|
</span>
|
|
290
290
|
</label>
|
|
291
291
|
{/each}
|
|
292
|
-
<label class="
|
|
292
|
+
<label class="smrt-project-interview__choice" data-smrt-part="trigger">
|
|
293
293
|
<Input type="radio" name="selectedOptionId" value="other" required interaction={false} checked={selections[current.key] === 'other'} onchange={() => (selections[current.key] = 'other')} />
|
|
294
294
|
<span>{t(M['projects.governance.other'])}</span>
|
|
295
295
|
</label>
|
|
@@ -310,7 +310,7 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
310
310
|
<fieldset disabled={busy}>
|
|
311
311
|
<legend>{t(M['projects.interview.your_choice'])}</legend>
|
|
312
312
|
{#each options as option (option.id)}
|
|
313
|
-
<label class="
|
|
313
|
+
<label class="smrt-project-interview__choice" data-smrt-part="trigger" class:smrt-project-interview__recommended={option.isRecommended}>
|
|
314
314
|
<Input type="radio" name="outcome" value={option.id} required interaction={false} />
|
|
315
315
|
<span>{option.label}{#if option.isRecommended} <strong>{t(M['projects.governance.recommended'])}</strong>{/if}
|
|
316
316
|
{#if option.description}<small>{option.description}</small>{/if}
|
|
@@ -328,7 +328,7 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
328
328
|
</Form>
|
|
329
329
|
{/if}
|
|
330
330
|
|
|
331
|
-
<nav class="
|
|
331
|
+
<nav class="smrt-project-interview__navigation" data-smrt-part="actions" aria-label={t(M['projects.interview.navigation'])}>
|
|
332
332
|
<Button type="button" variant="ghost" disabled={busy || position === 0} onclick={() => moveTo(position - 1, 'back')}>{t(M['projects.interview.back'])}</Button>
|
|
333
333
|
{#if current.record.status === 'open'}
|
|
334
334
|
<Button type="button" variant="ghost" disabled={busy} onclick={() => moveTo(position + 1, 'skip')}>{t(M['projects.interview.skip'])}</Button>
|
|
@@ -339,13 +339,13 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
339
339
|
{:else if openCount === 0}
|
|
340
340
|
<h2 tabindex="-1" bind:this={heading}>{t(M['projects.interview.complete_title'])}</h2>
|
|
341
341
|
<p>{t(M['projects.interview.complete_description'])}</p>
|
|
342
|
-
<nav class="
|
|
342
|
+
<nav class="smrt-project-interview__navigation" data-smrt-part="actions" aria-label={t(M['projects.interview.navigation'])}>
|
|
343
343
|
<Button type="button" variant="ghost" disabled={busy} onclick={() => moveTo(total - 1, 'back')}>{t(M['projects.interview.back'])}</Button>
|
|
344
344
|
</nav>
|
|
345
345
|
{:else}
|
|
346
346
|
<h2 tabindex="-1" bind:this={heading}>{t(M['projects.interview.remaining_title'])}</h2>
|
|
347
347
|
<p>{t(M['projects.interview.remaining_description'], { count: openCount })}</p>
|
|
348
|
-
<nav class="
|
|
348
|
+
<nav class="smrt-project-interview__navigation" data-smrt-part="actions" aria-label={t(M['projects.interview.navigation'])}>
|
|
349
349
|
<Button type="button" variant="ghost" disabled={busy} onclick={() => moveTo(total - 1, 'back')}>{t(M['projects.interview.back'])}</Button>
|
|
350
350
|
<Button type="button" disabled={busy} onclick={() => moveTo(firstOpenFrom(0), 'review')}>{t(M['projects.interview.review_skipped'])}</Button>
|
|
351
351
|
</nav>
|
|
@@ -357,31 +357,117 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
357
357
|
|
|
358
358
|
<style>
|
|
359
359
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
360
|
+
@layer smrt.structure {
|
|
361
|
+
.smrt-project-interview__root {
|
|
362
|
+
display: grid;
|
|
363
|
+
gap: var(--smrt-spacing-4);
|
|
364
|
+
max-width: 40rem;
|
|
365
|
+
}
|
|
366
|
+
.smrt-project-interview__progress {
|
|
367
|
+
display: grid;
|
|
368
|
+
gap: var(--smrt-spacing-2);
|
|
369
|
+
}
|
|
370
|
+
.smrt-project-interview__progress p, .smrt-project-interview__step h2, .smrt-project-interview__step h3, .smrt-project-interview__step p {
|
|
371
|
+
margin: 0;
|
|
372
|
+
}
|
|
373
|
+
.smrt-project-interview__progress progress {
|
|
374
|
+
width: 100%;
|
|
375
|
+
}
|
|
376
|
+
.smrt-project-interview__step {
|
|
377
|
+
display: grid;
|
|
378
|
+
gap: var(--smrt-spacing-4);
|
|
379
|
+
padding: var(--smrt-spacing-5);
|
|
380
|
+
}
|
|
381
|
+
.smrt-project-interview__framing {
|
|
382
|
+
display: grid;
|
|
383
|
+
gap: var(--smrt-spacing-1);
|
|
384
|
+
}
|
|
385
|
+
.smrt-project-interview__framing ul {
|
|
386
|
+
margin: 0;
|
|
387
|
+
padding-inline-start: var(--smrt-spacing-5);
|
|
388
|
+
}
|
|
389
|
+
.smrt-project-interview__recorded p {
|
|
390
|
+
display: grid;
|
|
391
|
+
gap: var(--smrt-spacing-1);
|
|
392
|
+
}
|
|
393
|
+
.smrt-project-interview__step :global(form) {
|
|
394
|
+
display: grid;
|
|
395
|
+
gap: var(--smrt-spacing-3);
|
|
396
|
+
}
|
|
397
|
+
.smrt-project-interview__step :global(form button[type='submit']) {
|
|
398
|
+
justify-self: start;
|
|
399
|
+
}
|
|
400
|
+
fieldset {
|
|
401
|
+
display: grid;
|
|
402
|
+
gap: var(--smrt-spacing-2);
|
|
403
|
+
padding: 0;
|
|
404
|
+
margin: 0;
|
|
405
|
+
min-width: 0;
|
|
406
|
+
}
|
|
407
|
+
legend {
|
|
408
|
+
margin-bottom: var(--smrt-spacing-2);
|
|
409
|
+
padding: 0;
|
|
410
|
+
}
|
|
411
|
+
.smrt-project-interview__choice {
|
|
412
|
+
display: flex;
|
|
413
|
+
align-items: start;
|
|
414
|
+
gap: var(--smrt-spacing-2);
|
|
415
|
+
}
|
|
416
|
+
.smrt-project-interview__choice :global(input[type='radio']) {
|
|
417
|
+
width: auto;
|
|
418
|
+
min-height: auto;
|
|
419
|
+
padding: 0;
|
|
420
|
+
}
|
|
421
|
+
.smrt-project-interview__choice small {
|
|
422
|
+
display: block;
|
|
423
|
+
}
|
|
424
|
+
.smrt-project-interview__navigation {
|
|
425
|
+
display: flex;
|
|
426
|
+
flex-wrap: wrap;
|
|
427
|
+
gap: var(--smrt-spacing-2);
|
|
428
|
+
justify-content: space-between;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
360
432
|
@layer smrt.theme {
|
|
361
|
-
.
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
.
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
.
|
|
433
|
+
.smrt-project-interview__progress p, .smrt-project-interview__empty, .smrt-project-interview__choice small {
|
|
434
|
+
color: var(--smrt-color-on-surface-variant);
|
|
435
|
+
}
|
|
436
|
+
.smrt-project-interview__step {
|
|
437
|
+
border: var(--smrt-hairline);
|
|
438
|
+
border-radius: var(--smrt-radius-medium);
|
|
439
|
+
}
|
|
440
|
+
.smrt-project-interview__step h2:focus {
|
|
441
|
+
outline: none;
|
|
442
|
+
}
|
|
443
|
+
.smrt-project-interview__step h2:focus-visible {
|
|
444
|
+
outline: var(--smrt-focus-ring-width) solid var(--smrt-focus-ring-color);
|
|
445
|
+
outline-offset: var(--smrt-focus-ring-offset);
|
|
446
|
+
}
|
|
447
|
+
.smrt-project-interview__framing h3, .smrt-project-interview__recorded h3 {
|
|
448
|
+
font-size: var(--smrt-typography-label-large-size);
|
|
449
|
+
}
|
|
450
|
+
fieldset {
|
|
451
|
+
border: 0;
|
|
452
|
+
}
|
|
453
|
+
.smrt-project-interview__choice.smrt-project-interview__recommended {
|
|
454
|
+
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
455
|
+
}
|
|
382
456
|
@media (prefers-reduced-motion: no-preference) {
|
|
383
|
-
.
|
|
457
|
+
.smrt-project-interview__root[data-motion='on'] .smrt-project-interview__step {
|
|
458
|
+
animation: smrt-interview-enter 160ms ease-out;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
@keyframes smrt-interview-enter {
|
|
462
|
+
from {
|
|
463
|
+
opacity: 0;
|
|
464
|
+
transform: translateY(0.25rem);
|
|
465
|
+
}
|
|
466
|
+
to {
|
|
467
|
+
opacity: 1;
|
|
468
|
+
transform: none;
|
|
469
|
+
}
|
|
384
470
|
}
|
|
385
|
-
@keyframes smrt-interview-enter { from { opacity: 0; transform: translateY(0.25rem); } to { opacity: 1; transform: none; } }
|
|
386
471
|
}
|
|
472
|
+
|
|
387
473
|
</style>
|
|
@@ -86,8 +86,8 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
86
86
|
}
|
|
87
87
|
</script>
|
|
88
88
|
|
|
89
|
-
<section class="
|
|
90
|
-
<div class="
|
|
89
|
+
<section class="smrt-project-questions-and-decisions__root" data-smrt-component="ProjectQuestionsAndDecisions">
|
|
90
|
+
<div class="smrt-project-questions-and-decisions__heading" data-smrt-part="header">
|
|
91
91
|
<div>
|
|
92
92
|
<h2>{t(M['projects.governance.questions'])}</h2>
|
|
93
93
|
<p>{t(M['projects.governance.questions_description'])}</p>
|
|
@@ -96,9 +96,9 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
{#if questions.length === 0}
|
|
99
|
-
<p class="empty">{t(M['projects.governance.questions_empty'])}</p>
|
|
99
|
+
<p class="smrt-project-questions-and-decisions__empty" data-smrt-part="empty">{t(M['projects.governance.questions_empty'])}</p>
|
|
100
100
|
{:else}
|
|
101
|
-
<div class="
|
|
101
|
+
<div class="smrt-project-questions-and-decisions__items" data-smrt-part="list">
|
|
102
102
|
{#each questions as question (question.id)}
|
|
103
103
|
<article id={`question-${question.id}`}>
|
|
104
104
|
<header>
|
|
@@ -106,11 +106,11 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
106
106
|
<h3>{question.prompt}</h3>
|
|
107
107
|
{#if question.ownerLabel}<small>{t(M['projects.governance.owner'])} {question.ownerLabel}</small>{/if}
|
|
108
108
|
</div>
|
|
109
|
-
<span class="status">{question.status}</span>
|
|
109
|
+
<span class="smrt-project-questions-and-decisions__status" data-smrt-part="status">{question.status}</span>
|
|
110
110
|
</header>
|
|
111
|
-
{#if question.answer}<p class="
|
|
111
|
+
{#if question.answer}<p class="smrt-project-questions-and-decisions__response" data-smrt-part="body">{question.answer}</p>{/if}
|
|
112
112
|
{#if question.contextReferences?.length}
|
|
113
|
-
<ul class="
|
|
113
|
+
<ul class="smrt-project-questions-and-decisions__references" data-smrt-part="list" aria-label={t(M['projects.governance.question_context'])}>
|
|
114
114
|
{#each question.contextReferences as reference (`${reference.kind}:${reference.ref}`)}
|
|
115
115
|
<li>{reference.label ?? reference.ref} <small>{reference.kind}</small></li>
|
|
116
116
|
{/each}
|
|
@@ -122,14 +122,14 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
122
122
|
<fieldset disabled={busy}>
|
|
123
123
|
<legend>{t(M['projects.governance.answer'])}</legend>
|
|
124
124
|
{#each question.options.filter((option) => option.id !== 'other') as option (option.id)}
|
|
125
|
-
<label class="
|
|
125
|
+
<label class="smrt-project-questions-and-decisions__choice" data-smrt-part="trigger">
|
|
126
126
|
<Input type="radio" name="selectedOptionId" value={option.id} required interaction={false} checked={selections[question.id] === option.id} onchange={() => selections[question.id] = option.id} />
|
|
127
127
|
<span>{option.label}{#if option.recommended} <strong>{t(M['projects.governance.recommended'])}</strong>{/if}
|
|
128
128
|
{#if option.description}<small>{option.description}</small>{/if}
|
|
129
129
|
</span>
|
|
130
130
|
</label>
|
|
131
131
|
{/each}
|
|
132
|
-
<label class="
|
|
132
|
+
<label class="smrt-project-questions-and-decisions__choice" data-smrt-part="trigger">
|
|
133
133
|
<Input type="radio" name="selectedOptionId" value="other" required interaction={false} checked={selections[question.id] === 'other'} onchange={() => selections[question.id] = 'other'} />
|
|
134
134
|
<span>{t(M['projects.governance.other'])}</span>
|
|
135
135
|
</label>
|
|
@@ -148,7 +148,7 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
148
148
|
</div>
|
|
149
149
|
{/if}
|
|
150
150
|
|
|
151
|
-
<div class="
|
|
151
|
+
<div class="smrt-project-questions-and-decisions__heading smrt-project-questions-and-decisions__decisions-heading" data-smrt-part="header">
|
|
152
152
|
<div>
|
|
153
153
|
<h2>{t(M['projects.governance.decisions'])}</h2>
|
|
154
154
|
<p>{t(M['projects.governance.decisions_description'])}</p>
|
|
@@ -157,9 +157,9 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
157
157
|
</div>
|
|
158
158
|
|
|
159
159
|
{#if decisions.length === 0}
|
|
160
|
-
<p class="empty">{t(M['projects.governance.decisions_empty'])}</p>
|
|
160
|
+
<p class="smrt-project-questions-and-decisions__empty" data-smrt-part="empty">{t(M['projects.governance.decisions_empty'])}</p>
|
|
161
161
|
{:else}
|
|
162
|
-
<div class="
|
|
162
|
+
<div class="smrt-project-questions-and-decisions__items" data-smrt-part="list">
|
|
163
163
|
{#each decisions as decision (decision.id)}
|
|
164
164
|
<article id={`decision-${decision.id}`}>
|
|
165
165
|
<header>
|
|
@@ -167,16 +167,16 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
167
167
|
<h3>{decision.question}</h3>
|
|
168
168
|
{#if decision.ownerLabel}<small>{t(M['projects.governance.owner'])} {decision.ownerLabel}</small>{/if}
|
|
169
169
|
</div>
|
|
170
|
-
<span class="status">{decision.status}</span>
|
|
170
|
+
<span class="smrt-project-questions-and-decisions__status" data-smrt-part="status">{decision.status}</span>
|
|
171
171
|
</header>
|
|
172
172
|
{#if decision.outcome}
|
|
173
|
-
<p class="
|
|
173
|
+
<p class="smrt-project-questions-and-decisions__response" data-smrt-part="body">
|
|
174
174
|
<strong>{decision.options?.find((option) => option.id === decision.outcome)?.label ?? decision.outcome}</strong>
|
|
175
175
|
{#if decision.rationale}<span>{decision.rationale}</span>{/if}
|
|
176
176
|
</p>
|
|
177
177
|
{/if}
|
|
178
178
|
{#if decision.contextReferences?.length}
|
|
179
|
-
<ul class="
|
|
179
|
+
<ul class="smrt-project-questions-and-decisions__references" data-smrt-part="list" aria-label={t(M['projects.governance.decision_context'])}>
|
|
180
180
|
{#each decision.contextReferences as reference (`${reference.kind}:${reference.ref}`)}
|
|
181
181
|
<li>{reference.label ?? reference.ref} <small>{reference.kind}</small></li>
|
|
182
182
|
{/each}
|
|
@@ -209,26 +209,119 @@ function submitDecision(event: SubmitEvent, decision: ProjectDecisionView) {
|
|
|
209
209
|
|
|
210
210
|
<style>
|
|
211
211
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
212
|
+
@layer smrt.structure {
|
|
213
|
+
.smrt-project-questions-and-decisions__root {
|
|
214
|
+
display: grid;
|
|
215
|
+
gap: var(--smrt-spacing-4);
|
|
216
|
+
}
|
|
217
|
+
.smrt-project-questions-and-decisions__heading {
|
|
218
|
+
align-items: end;
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
gap: var(--smrt-spacing-4);
|
|
222
|
+
}
|
|
223
|
+
.smrt-project-questions-and-decisions__heading h2, .smrt-project-questions-and-decisions__heading p, article h3, .smrt-project-questions-and-decisions__response {
|
|
224
|
+
margin: 0;
|
|
225
|
+
}
|
|
226
|
+
.smrt-project-questions-and-decisions__heading > span, .smrt-project-questions-and-decisions__status {
|
|
227
|
+
padding: var(--smrt-spacing-1) var(--smrt-spacing-3);
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
}
|
|
230
|
+
.smrt-project-questions-and-decisions__decisions-heading {
|
|
231
|
+
margin-top: var(--smrt-spacing-5);
|
|
232
|
+
}
|
|
233
|
+
.smrt-project-questions-and-decisions__items {
|
|
234
|
+
display: grid;
|
|
235
|
+
gap: var(--smrt-spacing-3);
|
|
236
|
+
}
|
|
237
|
+
article {
|
|
238
|
+
display: grid;
|
|
239
|
+
gap: var(--smrt-spacing-3);
|
|
240
|
+
padding: var(--smrt-spacing-4);
|
|
241
|
+
}
|
|
242
|
+
article header {
|
|
243
|
+
align-items: start;
|
|
244
|
+
display: flex;
|
|
245
|
+
justify-content: space-between;
|
|
246
|
+
gap: var(--smrt-spacing-3);
|
|
247
|
+
}
|
|
248
|
+
article header > div, article :global(form), .smrt-project-questions-and-decisions__response {
|
|
249
|
+
display: grid;
|
|
250
|
+
gap: var(--smrt-spacing-2);
|
|
251
|
+
}
|
|
252
|
+
fieldset {
|
|
253
|
+
display: grid;
|
|
254
|
+
gap: var(--smrt-spacing-2);
|
|
255
|
+
padding: 0;
|
|
256
|
+
min-width: 0;
|
|
257
|
+
}
|
|
258
|
+
.smrt-project-questions-and-decisions__choice {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: start;
|
|
261
|
+
gap: var(--smrt-spacing-2);
|
|
262
|
+
}
|
|
263
|
+
.smrt-project-questions-and-decisions__choice :global(input[type='radio']) {
|
|
264
|
+
width: auto;
|
|
265
|
+
min-height: auto;
|
|
266
|
+
padding: 0;
|
|
267
|
+
}
|
|
268
|
+
.smrt-project-questions-and-decisions__choice small {
|
|
269
|
+
display: block;
|
|
270
|
+
}
|
|
271
|
+
.smrt-project-questions-and-decisions__references {
|
|
272
|
+
display: flex;
|
|
273
|
+
flex-wrap: wrap;
|
|
274
|
+
gap: var(--smrt-spacing-2);
|
|
275
|
+
list-style: none;
|
|
276
|
+
margin: 0;
|
|
277
|
+
padding: 0;
|
|
278
|
+
}
|
|
279
|
+
.smrt-project-questions-and-decisions__references li {
|
|
280
|
+
padding: var(--smrt-spacing-1) var(--smrt-spacing-2);
|
|
281
|
+
}
|
|
282
|
+
article :global(form) {
|
|
283
|
+
padding-top: var(--smrt-spacing-3);
|
|
284
|
+
}
|
|
285
|
+
article :global(form button) {
|
|
286
|
+
justify-self: end;
|
|
287
|
+
}
|
|
288
|
+
@media (max-width: 40rem) {
|
|
289
|
+
.smrt-project-questions-and-decisions__heading, article header {
|
|
290
|
+
align-items: stretch;
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
}
|
|
293
|
+
.smrt-project-questions-and-decisions__heading > span, .smrt-project-questions-and-decisions__status {
|
|
294
|
+
align-self: start;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
212
299
|
@layer smrt.theme {
|
|
213
|
-
.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
article {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
300
|
+
.smrt-project-questions-and-decisions__heading p, article small, .smrt-project-questions-and-decisions__empty {
|
|
301
|
+
color: var(--smrt-color-on-surface-variant);
|
|
302
|
+
}
|
|
303
|
+
.smrt-project-questions-and-decisions__heading > span, .smrt-project-questions-and-decisions__status {
|
|
304
|
+
border: var(--smrt-hairline);
|
|
305
|
+
border-radius: var(--smrt-radius-full);
|
|
306
|
+
}
|
|
307
|
+
article {
|
|
308
|
+
border: var(--smrt-hairline);
|
|
309
|
+
border-radius: var(--smrt-radius-medium);
|
|
310
|
+
}
|
|
311
|
+
fieldset {
|
|
312
|
+
border: 0;
|
|
313
|
+
}
|
|
314
|
+
.smrt-project-questions-and-decisions__status {
|
|
315
|
+
font-size: var(--smrt-typography-label-medium-size);
|
|
316
|
+
text-transform: capitalize;
|
|
317
|
+
}
|
|
318
|
+
.smrt-project-questions-and-decisions__references li {
|
|
319
|
+
background: var(--smrt-color-surface-container);
|
|
320
|
+
border-radius: var(--smrt-radius-small);
|
|
321
|
+
}
|
|
322
|
+
article :global(form) {
|
|
323
|
+
border-top: var(--smrt-hairline);
|
|
324
|
+
}
|
|
233
325
|
}
|
|
326
|
+
|
|
234
327
|
</style>
|
|
@@ -31,7 +31,7 @@ const money = (amount = 0, currency = 'USD') => {
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<section
|
|
34
|
-
class="evidence"
|
|
34
|
+
class="smrt-service-evidence-list__root"
|
|
35
35
|
aria-label={t(M['projects.service_evidence.aria'])} data-smrt-component="ServiceEvidenceList"
|
|
36
36
|
>
|
|
37
37
|
{#each entries as entry (entry.id)}
|
|
@@ -70,53 +70,65 @@ const money = (amount = 0, currency = 'USD') => {
|
|
|
70
70
|
|
|
71
71
|
<style>
|
|
72
72
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
73
|
-
@layer smrt.
|
|
74
|
-
.evidence {
|
|
75
|
-
border-top: var(--smrt-hairline);
|
|
76
|
-
}
|
|
77
|
-
.evidence article {
|
|
73
|
+
@layer smrt.structure {
|
|
74
|
+
.smrt-service-evidence-list__root article {
|
|
78
75
|
align-items: center;
|
|
79
|
-
border-bottom: var(--smrt-hairline);
|
|
80
76
|
display: grid;
|
|
81
77
|
gap: var(--smrt-spacing-4);
|
|
82
78
|
grid-template-columns: 1fr auto;
|
|
83
79
|
padding: var(--smrt-spacing-4) var(--smrt-spacing-1);
|
|
84
80
|
}
|
|
85
|
-
.evidence article > div {
|
|
81
|
+
.smrt-service-evidence-list__root article > div {
|
|
86
82
|
display: grid;
|
|
87
83
|
gap: var(--smrt-spacing-1);
|
|
88
84
|
}
|
|
89
|
-
.evidence
|
|
90
|
-
.evidence dt {
|
|
91
|
-
color: var(--smrt-color-on-surface-variant);
|
|
92
|
-
}
|
|
93
|
-
.evidence dl {
|
|
85
|
+
.smrt-service-evidence-list__root dl {
|
|
94
86
|
display: flex;
|
|
95
87
|
gap: var(--smrt-spacing-5);
|
|
96
88
|
margin: 0;
|
|
97
89
|
}
|
|
98
|
-
.evidence dl div {
|
|
90
|
+
.smrt-service-evidence-list__root dl div {
|
|
99
91
|
display: grid;
|
|
100
92
|
gap: var(--smrt-spacing-1);
|
|
101
|
-
text-align: right;
|
|
102
93
|
}
|
|
103
|
-
.evidence
|
|
104
|
-
font-size: var(--smrt-typography-label-medium-size);
|
|
105
|
-
}
|
|
106
|
-
.evidence dd {
|
|
107
|
-
font-variant-numeric: tabular-nums;
|
|
94
|
+
.smrt-service-evidence-list__root dd {
|
|
108
95
|
margin: 0;
|
|
109
96
|
}
|
|
110
97
|
@media (max-width: 40rem) {
|
|
111
|
-
.evidence article {
|
|
98
|
+
.smrt-service-evidence-list__root article {
|
|
112
99
|
grid-template-columns: 1fr;
|
|
113
100
|
}
|
|
114
|
-
.evidence dl {
|
|
101
|
+
.smrt-service-evidence-list__root dl {
|
|
115
102
|
justify-content: space-between;
|
|
116
103
|
}
|
|
117
|
-
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@layer smrt.theme {
|
|
108
|
+
.smrt-service-evidence-list__root {
|
|
109
|
+
border-top: var(--smrt-hairline);
|
|
110
|
+
}
|
|
111
|
+
.smrt-service-evidence-list__root article {
|
|
112
|
+
border-bottom: var(--smrt-hairline);
|
|
113
|
+
}
|
|
114
|
+
.smrt-service-evidence-list__root small,
|
|
115
|
+
.smrt-service-evidence-list__root dt {
|
|
116
|
+
color: var(--smrt-color-on-surface-variant);
|
|
117
|
+
}
|
|
118
|
+
.smrt-service-evidence-list__root dl div {
|
|
119
|
+
text-align: right;
|
|
120
|
+
}
|
|
121
|
+
.smrt-service-evidence-list__root dt {
|
|
122
|
+
font-size: var(--smrt-typography-label-medium-size);
|
|
123
|
+
}
|
|
124
|
+
.smrt-service-evidence-list__root dd {
|
|
125
|
+
font-variant-numeric: tabular-nums;
|
|
126
|
+
}
|
|
127
|
+
@media (max-width: 40rem) {
|
|
128
|
+
.smrt-service-evidence-list__root dl div {
|
|
118
129
|
text-align: left;
|
|
119
130
|
}
|
|
120
131
|
}
|
|
121
132
|
}
|
|
133
|
+
|
|
122
134
|
</style>
|
|
@@ -55,7 +55,7 @@ const canEdit = $derived(
|
|
|
55
55
|
const canDelete = $derived(status === 'draft' && ondelete);
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<div class="approval-
|
|
58
|
+
<div class="smrt-approval-actions__root" class:smrt-approval-actions__vertical={layout === 'vertical'} data-smrt-component="ApprovalActions">
|
|
59
59
|
{#if canSubmit}
|
|
60
60
|
<Button variant="primary" onclick={onsubmit} disabled={disabled || loading}>
|
|
61
61
|
{loading ? 'Submitting...' : 'Submit for Approval'}
|
|
@@ -87,13 +87,13 @@ const canDelete = $derived(status === 'draft' && ondelete);
|
|
|
87
87
|
{/if}
|
|
88
88
|
|
|
89
89
|
{#if status === 'approved'}
|
|
90
|
-
<span class="
|
|
90
|
+
<span class="smrt-approval-actions__message smrt-approval-actions__success" data-smrt-part="message">
|
|
91
91
|
{t(M['projects.approval_actions.approved_message'])}
|
|
92
92
|
</span>
|
|
93
93
|
{/if}
|
|
94
94
|
|
|
95
95
|
{#if status === 'rejected'}
|
|
96
|
-
<span class="
|
|
96
|
+
<span class="smrt-approval-actions__message smrt-approval-actions__error" data-smrt-part="message">
|
|
97
97
|
{t(M['projects.approval_actions.rejected_message'])}
|
|
98
98
|
</span>
|
|
99
99
|
{/if}
|
|
@@ -101,34 +101,36 @@ const canDelete = $derived(status === 'draft' && ondelete);
|
|
|
101
101
|
|
|
102
102
|
<style>
|
|
103
103
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
104
|
-
@layer smrt.
|
|
105
|
-
.approval-
|
|
104
|
+
@layer smrt.structure {
|
|
105
|
+
.smrt-approval-actions__root {
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-wrap: wrap;
|
|
108
108
|
gap: 0.75rem;
|
|
109
109
|
align-items: center;
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
.approval-actions.vertical {
|
|
111
|
+
.smrt-approval-actions__root.smrt-approval-actions__vertical {
|
|
113
112
|
flex-direction: column;
|
|
114
113
|
align-items: stretch;
|
|
115
114
|
}
|
|
115
|
+
.smrt-approval-actions__message {
|
|
116
|
+
padding: 0.5rem 1rem;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
116
119
|
|
|
117
|
-
|
|
120
|
+
@layer smrt.theme {
|
|
121
|
+
.smrt-approval-actions__message {
|
|
118
122
|
font-size: var(--smrt-typography-body-medium-size, 0.875rem);
|
|
119
123
|
font-weight: var(--smrt-typography-label-large-weight, 500);
|
|
120
|
-
padding: 0.5rem 1rem;
|
|
121
124
|
border-radius: var(--smrt-radius-small);
|
|
122
125
|
}
|
|
123
|
-
|
|
124
|
-
.status-message.success {
|
|
126
|
+
.smrt-approval-actions__message.smrt-approval-actions__success {
|
|
125
127
|
background: var(--smrt-color-primary-container);
|
|
126
128
|
color: var(--smrt-color-on-primary-container);
|
|
127
129
|
}
|
|
128
|
-
|
|
129
|
-
.status-message.error {
|
|
130
|
+
.smrt-approval-actions__message.smrt-approval-actions__error {
|
|
130
131
|
background: var(--smrt-color-error-container);
|
|
131
132
|
color: var(--smrt-color-on-error-container);
|
|
132
133
|
}
|
|
133
134
|
}
|
|
135
|
+
|
|
134
136
|
</style>
|