@leitwerk-dev/ui 0.4.0 → 0.4.2
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/assets/{ChronicleMarkdown-6T_LF-3B.js → ChronicleMarkdown-CDe1jngc.js} +1 -1
- package/dist/assets/DashboardPage-BRxe3uuy.css +1 -0
- package/dist/assets/DashboardPage-LiQ0_72g.js +1 -0
- package/dist/assets/{FutureLaunchDetailPage-D5Gc8YmZ.js → FutureLaunchDetailPage-DvyW_J5d.js} +1 -1
- package/dist/assets/GenericLauncher-D1qQy9hq.js +4 -0
- package/dist/assets/HomePage-Cnmp6osB.js +1 -0
- package/dist/assets/ProcessActionsMenu-DEQynjFa.js +1 -0
- package/dist/assets/{ProcessDetailPage-0c-fMf4Y.js → ProcessDetailPage-DvjQQTDj.js} +9 -9
- package/dist/assets/{ProcessesPage-CVvENTJg.js → ProcessesPage-B4BMXJT7.js} +1 -1
- package/dist/assets/SettingsPage-w1RHZ2l6.js +2 -0
- package/dist/assets/SkillsPage-Ber36rAD.js +2 -0
- package/dist/assets/{WatchersPage-D-uT5vWk.js → WatchersPage-Btq_SIk3.js} +1 -1
- package/dist/assets/{WikiPage-BNdWnJ6L.js → WikiPage-BjncVYf1.js} +1 -1
- package/dist/assets/http-contracts-public-BUgTIHYG.js +1 -0
- package/dist/assets/index-Dz0T5gKc.js +21 -0
- package/dist/assets/index-DzKWCM-z.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +8 -8
- package/src/chronicle/components/ChronicleStartupRecoverySection.svelte +8 -0
- package/src/components/GenericLauncher.svelte +69 -102
- package/src/components/ProcessActionsMenu.svelte +37 -59
- package/src/lib/api.ts +11 -0
- package/src/lib/dashboard-refresh.ts +47 -0
- package/src/lib/router-logic.ts +26 -5
- package/src/lib/router.svelte.ts +6 -2
- package/src/pages/DashboardPage.svelte +194 -0
- package/src/pages/FutureLaunchDetailPage.svelte +2 -2
- package/src/pages/HomePage.svelte +4 -4
- package/src/shell/AppShell.svelte +51 -57
- package/src/shell/Sidebar.svelte +134 -240
- package/src/test-support/wait.ts +19 -0
- package/dist/assets/GenericLauncher-4BQGl6fT.js +0 -4
- package/dist/assets/HomePage-mb9RzXht.js +0 -1
- package/dist/assets/ProcessActionsMenu-CEzADnZT.js +0 -1
- package/dist/assets/SettingsPage-CbNM5RWn.js +0 -2
- package/dist/assets/SkillsPage-rCSwSz89.js +0 -2
- package/dist/assets/http-contracts-public-BXXSFKbw.js +0 -1
- package/dist/assets/index-DybyOt1_.css +0 -1
- package/dist/assets/index-gVt2yBO1.js +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:where(button,input,textarea,select){margin:0}:where(button,textarea,input:not([type]),input[type=text],input[type=search],input[type=email],input[type=url],input[type=password],input[type=number]){appearance:none}:root select:not([multiple]):not([size]),:root select:not([multiple])[size="1"]{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2318212b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;background-size:12px 12px;min-width:0;max-width:100%;padding-inline-end:28px;line-height:1.5}:root input:is([type=checkbox],[type=radio]){width:14px;height:14px}html:root input:is([type=checkbox],[type=radio]){appearance:none;border:1px solid var(--chronicle-border-strong);background:var(--chronicle-panel-surface);color:var(--chronicle-accent);border-radius:3px;flex-shrink:0;place-content:center;padding:0;display:inline-grid}html:root input[type=radio]{border-radius:50%}:root input:is([type=checkbox],[type=radio]):checked{border-color:var(--chronicle-accent)}:root input[type=radio]:checked:before{content:"";background:currentColor;border-radius:50%;width:8px;height:8px}:root input[type=checkbox]:checked{background:var(--chronicle-accent)}:root input[type=checkbox]:checked:before{content:"";border:solid var(--chronicle-text-on-accent);border-width:0 0 2px 2px;width:8px;height:5px;transform:translateY(-1px)rotate(-45deg)}:root input:is([type=checkbox],[type=radio]):disabled{opacity:.58;cursor:not-allowed}@media (forced-colors:active){:root select:not([multiple]):not([size]),:root select:not([multiple])[size="1"],html:root input:is([type=checkbox],[type=radio]){appearance:auto;background-image:none}:root input:is([type=checkbox],[type=radio]):before{content:none}}.ui-button{justify-content:center;align-items:center;gap:var(--space-xs);min-height:44px;padding:8px var(--space-md);border:1px solid var(--chronicle-border);background:var(--chronicle-card-surface);color:var(--chronicle-text);font:620 var(--type-body-sm) / 1.4 var(--font-sans);text-align:center;cursor:pointer;border-radius:999px;flex-shrink:0;text-decoration:none;display:inline-flex}.ui-button:hover:not(:disabled){border-color:var(--chronicle-border-strong);background:var(--chronicle-panel-muted)}.ui-button:focus-visible{outline:2px solid var(--chronicle-accent);outline-offset:3px}.ui-button:disabled{opacity:.55;cursor:default}.ui-button[aria-expanded=true]{border-color:var(--chronicle-border-strong);background:var(--chronicle-panel-muted)}.ui-button[data-variant=primary]{border-color:var(--chronicle-text);background:var(--chronicle-text);color:var(--chronicle-text-on-accent)}.ui-button[data-variant=primary]:hover:not(:disabled){background:var(--chronicle-text-muted)}.ui-button[data-variant=danger]{border-color:var(--chronicle-danger);background:var(--chronicle-danger);color:var(--chronicle-text-on-accent)}.ui-button[data-variant=danger]:hover:not(:disabled){background:var(--chronicle-danger-text)}.ui-button[data-size=icon]{border-radius:var(--radius-sm);width:44px;padding:0}.ui-button svg{flex-shrink:0;width:18px;height:18px}.ui-button[data-variant=quiet]{color:var(--chronicle-link);background:0 0;border-color:#0000}.ui-button[data-variant=quiet]:hover:not(:disabled){background:var(--chronicle-panel-muted);border-color:var(--chronicle-border)}.ui-button[data-variant=danger-quiet]{color:var(--chronicle-danger-text);border-color:var(--chronicle-danger-border)}.ui-button[data-variant=danger-quiet]:hover:not(:disabled){background:var(--chronicle-danger-surface-soft)}.toast-container.svelte-1s91x7a{z-index:1000;flex-direction:column;gap:10px;max-width:min(440px,100vw - 32px);display:flex;position:fixed;top:16px;right:16px}.toast.svelte-1s91x7a{border:1px solid var(--chronicle-border);background:color-mix(in srgb, var(--chronicle-panel-surface) 92%, var(--chronicle-panel-muted) 8%);box-shadow:var(--chronicle-shadow-soft);border-radius:16px;justify-content:space-between;align-items:flex-start;gap:14px;padding:14px 16px;display:flex}.toast.warn.svelte-1s91x7a{border-color:color-mix(in srgb, var(--chronicle-attention) 42%, var(--chronicle-border) 58%);background:color-mix(in srgb, white 90%, var(--chronicle-attention) 10%)}.toast.error.svelte-1s91x7a{border-color:color-mix(in srgb, var(--chronicle-danger) 38%, var(--chronicle-border) 62%);background:color-mix(in srgb, white 90%, var(--chronicle-danger) 10%)}.toast-open.svelte-1s91x7a{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;padding:0}.toast-copy.svelte-1s91x7a{gap:6px;min-width:0;display:grid}.toast-title.svelte-1s91x7a{flex-wrap:wrap;align-items:baseline;gap:10px;margin:0;display:flex}.toast-kicker.svelte-1s91x7a{letter-spacing:.08em;text-transform:uppercase;color:var(--chronicle-text);font-size:11px;font-weight:700}.toast-shortcut.svelte-1s91x7a{color:var(--chronicle-text-muted);font-size:12px;line-height:1.4}.toast-message.svelte-1s91x7a{color:var(--chronicle-text);margin:0;font-size:14px;line-height:1.55}.toast-open.svelte-1s91x7a:hover .toast-message:where(.svelte-1s91x7a),.toast-open.svelte-1s91x7a:focus-visible .toast-message:where(.svelte-1s91x7a){text-decoration:underline}.toast-dismiss.svelte-1s91x7a{border:1px solid color-mix(in srgb, var(--chronicle-border-strong) 84%, white 16%);background:color-mix(in srgb, var(--chronicle-card-surface) 92%, white 8%);min-height:44px;color:var(--chronicle-text);cursor:pointer;border-radius:999px;flex-shrink:0;padding:0 14px}.toast-dismiss.svelte-1s91x7a:hover{border-color:color-mix(in srgb, var(--chronicle-accent) 22%, var(--chronicle-border-strong) 78%);transform:translateY(-1px)}@media (width<=720px){.toast-container.svelte-1s91x7a{max-width:none;top:12px;left:12px;right:12px}.toast.svelte-1s91x7a{padding:12px 14px}.toast-title.svelte-1s91x7a{gap:6px}.toast-shortcut.svelte-1s91x7a{width:100%}}.page-header.svelte-6k6hra{gap:var(--space-sm);z-index:5;display:grid;position:relative}.page-header-row.svelte-6k6hra{justify-content:space-between;align-items:center;gap:var(--space-md);min-width:0;min-height:44px;padding:0 0 var(--space-sm);border-bottom:1px solid color-mix(in srgb, var(--chronicle-border) 84%, white 16%);display:flex}.page-header-copy.svelte-6k6hra{gap:3px;min-width:0;display:grid}.page-header-subtitle.svelte-6k6hra{margin:0}h1.svelte-6k6hra{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:min(100%,68ch);font-family:var(--font-display);letter-spacing:-.012em;color:var(--chronicle-text);margin:0;font-size:clamp(1.12rem,1rem + .45vw,1.42rem);font-weight:650;line-height:1.08;overflow:hidden}.page-header-actions.svelte-6k6hra{justify-content:flex-end;align-items:center;gap:var(--space-xs);flex-wrap:wrap;flex:none;min-width:0;display:flex}.page-header-subtitle.svelte-6k6hra{max-width:68ch;font-size:var(--type-body-sm);color:var(--chronicle-text-muted);line-height:1.55}@media (width<=720px){.page-header-row.svelte-6k6hra,.page-header-actions.svelte-6k6hra{flex-direction:column;align-items:stretch}.page-header-actions.svelte-6k6hra{width:100%}h1.svelte-6k6hra{white-space:normal;font-size:1.02rem;line-height:1.16}.page-header[data-mobile-layout=compact].svelte-6k6hra .page-header-row:where(.svelte-6k6hra),.page-header[data-mobile-layout=compact].svelte-6k6hra .page-header-actions:where(.svelte-6k6hra){flex-direction:row;align-items:center}.page-header[data-mobile-layout=compact].svelte-6k6hra .page-header-actions:where(.svelte-6k6hra){flex:none;width:auto}.page-header[data-mobile-layout=compact].svelte-6k6hra h1:where(.svelte-6k6hra){white-space:nowrap}}.browser-ui-extension-indicator.svelte-1n7sv4y{display:contents}.modal-panel.svelte-agedr{width:var(--modal-width);height:var(--modal-height);max-width:none;max-height:var(--modal-max-height);gap:var(--space-md);padding:var(--space-xl);border-radius:var(--radius-lg);background:var(--chronicle-card-surface);box-shadow:var(--chronicle-shadow);color:inherit;border:0;flex-direction:column;margin:auto;display:flex;position:fixed;inset:0;overflow:hidden}.modal-panel.svelte-agedr::backdrop{background:color-mix(in srgb, var(--chronicle-text) 32%, transparent 68%)}.modal-panel[data-presentation=bottom-sheet].svelte-agedr{padding:8px 16px max(14px, env(safe-area-inset-bottom));border:1px solid var(--chronicle-border-strong);background:var(--chronicle-card-surface);border-bottom:0;border-radius:22px 22px 0 0;gap:0;margin:0 auto;animation:.22s cubic-bezier(.16,1,.3,1) svelte-agedr-modal-bottom-sheet-in;inset:auto 0 0}.modal-panel[data-presentation=bottom-sheet].svelte-agedr::backdrop{background:color-mix(in srgb, var(--chronicle-text) 38%, transparent 62%);-webkit-backdrop-filter:none}.modal-close.svelte-agedr{right:var(--space-md);top:var(--space-md);color:var(--chronicle-text-muted);position:absolute}.modal-close.svelte-agedr:hover{background:var(--chronicle-panel-muted);color:var(--chronicle-text)}.modal-close.svelte-agedr:focus-visible{outline:2px solid var(--chronicle-accent);outline-offset:2px}.modal-close.svelte-agedr svg:where(.svelte-agedr){stroke:currentColor;stroke-width:1.7px;fill:none;width:18px;height:18px}@media (width<=640px){.modal-panel.svelte-agedr:not([data-presentation=bottom-sheet]){padding:var(--space-lg)}}@keyframes svelte-agedr-modal-bottom-sheet-in{0%{opacity:.88;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.modal-panel[data-presentation=bottom-sheet].svelte-agedr{animation:none}}.shortcut-header.svelte-1rcsztz{margin-right:var(--space-2xl);gap:8px;display:grid}.shortcut-header.svelte-1rcsztz h2:where(.svelte-1rcsztz){font-size:var(--type-title-md);margin:0;line-height:1.1}.shortcut-header.svelte-1rcsztz p:where(.svelte-1rcsztz){color:var(--chronicle-text-muted);font-size:var(--type-body-sm);margin:0;line-height:1.55}.shortcut-list.svelte-1rcsztz{gap:8px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.shortcut-row.svelte-1rcsztz{border-radius:var(--radius-md);background:var(--chronicle-panel-muted);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:10px 12px;display:grid}.shortcut-keys.svelte-1rcsztz{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.shortcut-row.svelte-1rcsztz span:where(.svelte-1rcsztz){font-size:var(--type-body);color:var(--chronicle-text);line-height:1.45}kbd.svelte-1rcsztz{border:1px solid var(--chronicle-border-strong);background:var(--chronicle-bg);min-width:24px;height:24px;font-family:var(--font-mono);font-size:var(--type-caption);color:var(--chronicle-text);border-radius:8px;justify-content:center;align-items:center;padding:0 7px;font-weight:700;display:inline-flex}.route-viewport.svelte-7nya9d{flex-direction:column;flex:auto;width:100%;min-width:0;height:100%;min-height:0;display:flex}.route-viewport[data-mode=page].svelte-7nya9d{overscroll-behavior-y:contain;overflow-y:auto}.route-viewport[data-mode=workspace].svelte-7nya9d{overflow:hidden}.route-viewport.svelte-7nya9d>*{flex:auto;min-width:0;min-height:0}.route-status.svelte-7nya9d{place-content:center;gap:var(--space-sm);min-height:12rem;color:var(--text-muted);text-align:center;display:grid}.route-error.svelte-7nya9d button:where(.svelte-7nya9d){min-height:44px;padding:0 var(--space-md);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-primary);cursor:pointer}@media (width<=960px){.route-viewport[data-mode=page].svelte-7nya9d{overscroll-behavior-y:auto;height:auto;overflow-y:visible}}.sidebar.svelte-1h3hqd4{--sidebar-expanded-width:240px;--sidebar-collapsed-width:64px;flex:0 0 var(--sidebar-expanded-width);width:var(--sidebar-expanded-width);min-width:var(--sidebar-expanded-width);max-width:var(--sidebar-expanded-width);height:100%;min-height:0;padding:16px var(--space-xs) 20px;border-right:1px solid var(--chronicle-border);background:var(--chronicle-sidebar-surface);transition:background-color var(--duration-fast) var(--ease-out-quart);flex-direction:column;display:flex;position:relative;overflow:hidden}.sidebar[data-sidebar-state=collapsed].svelte-1h3hqd4{flex-basis:var(--sidebar-collapsed-width);width:var(--sidebar-collapsed-width);min-width:var(--sidebar-collapsed-width);max-width:var(--sidebar-collapsed-width);z-index:2;align-items:center;padding:16px 8px;overflow:visible}.sidebar-header.svelte-1h3hqd4{gap:12px;margin-bottom:18px;display:grid}.sidebar-topbar.svelte-1h3hqd4{justify-content:space-between;align-items:center;gap:12px;display:flex}.sidebar-brand.svelte-1h3hqd4{min-width:0;color:var(--chronicle-text);font-family:var(--font-display);letter-spacing:-.02em;font-size:1.3rem;font-weight:700;text-decoration:none}.sidebar-brand.svelte-1h3hqd4:hover{color:color-mix(in srgb, var(--chronicle-text) 82%, var(--chronicle-accent) 18%)}.rail-icon-control.svelte-1h3hqd4{width:48px;min-height:48px;color:var(--chronicle-text-faint);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;grid-template-rows:20px auto;place-items:center;gap:2px;padding:5px 2px 4px;text-decoration:none;display:grid;position:relative}.rail-icon-control.svelte-1h3hqd4:hover,.rail-icon-control.is-active.svelte-1h3hqd4,.rail-icon-control[aria-expanded=true].svelte-1h3hqd4,.sidebar-nav-link.svelte-1h3hqd4:hover,.sidebar-nav-link.is-active.svelte-1h3hqd4,.user-trigger.svelte-1h3hqd4:hover,.user-trigger[aria-expanded=true].svelte-1h3hqd4{border-color:color-mix(in srgb, var(--chronicle-border) 72%, transparent 28%);background:color-mix(in srgb, var(--chronicle-card-surface) 78%, transparent 22%);color:var(--chronicle-text)}.rail-icon-control.is-active.svelte-1h3hqd4,.rail-icon-control[aria-expanded=true].svelte-1h3hqd4{border-color:color-mix(in srgb, var(--chronicle-accent) 24%, var(--chronicle-border) 76%);background:color-mix(in srgb, var(--chronicle-accent) 9%, var(--chronicle-card-surface) 91%)}.sidebar-collapse-button.svelte-1h3hqd4{grid-template-rows:1fr}.rail-control-icon.svelte-1h3hqd4,.rail-icon-control.svelte-1h3hqd4 svg:where(.svelte-1h3hqd4){width:19px;height:19px}.rail-control-label.svelte-1h3hqd4{color:currentColor;text-overflow:ellipsis;white-space:nowrap;max-width:44px;font-size:.625rem;font-weight:650;line-height:1;overflow:hidden}.rail-icon-control.has-issue.svelte-1h3hqd4:after{content:"";background:var(--chronicle-danger);width:6px;height:6px;box-shadow:0 0 0 1.5px var(--chronicle-sidebar-surface);border-radius:999px;position:absolute;top:5px;right:6px}.sidebar-primary-nav.svelte-1h3hqd4{gap:4px;display:grid}.sidebar-nav-link.svelte-1h3hqd4{min-height:38px;color:var(--chronicle-text-muted);border:1px solid #0000;border-radius:12px;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;padding:7px 9px;text-decoration:none;display:grid}.sidebar-nav-link.is-active.svelte-1h3hqd4{background:color-mix(in srgb, var(--chronicle-accent) 9%, var(--chronicle-card-surface) 91%);border-color:color-mix(in srgb, var(--chronicle-accent) 25%, var(--chronicle-border) 75%)}.sidebar-nav-icon.svelte-1h3hqd4{width:22px;height:22px;color:inherit;border-radius:7px;justify-content:center;align-items:center;font-size:.92rem;font-weight:750;line-height:1;display:inline-flex}.sidebar-nav-icon.svelte-1h3hqd4 svg:where(.svelte-1h3hqd4){width:18px;height:18px}.sidebar-nav-label.svelte-1h3hqd4{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.9rem;font-weight:620;line-height:1.3;overflow:hidden}.sidebar-scroll.svelte-1h3hqd4{overscroll-behavior:contain;flex-direction:column;flex:1;gap:14px;min-height:0;display:flex;overflow:hidden}.collapsed-rail.svelte-1h3hqd4{flex-direction:column;flex:1;align-items:center;gap:6px;width:100%;min-height:0;display:flex}.current-processes-anchor.svelte-1h3hqd4{position:relative}.current-processes-popover.svelte-1h3hqd4{border:1px solid color-mix(in srgb, var(--chronicle-border-strong) 82%, white 18%);background:color-mix(in srgb, var(--chronicle-card-surface) 96%, white 4%);width:min(360px,100vw - 132px);max-height:min(70vh,520px);box-shadow:var(--chronicle-shadow);z-index:4;border-radius:20px;padding:16px;position:absolute;top:0;left:calc(100% + 12px)}.popover-header.svelte-1h3hqd4{margin-bottom:12px}.popover-eyebrow.svelte-1h3hqd4,.popover-header.svelte-1h3hqd4 h2:where(.svelte-1h3hqd4){margin:0}.popover-eyebrow.svelte-1h3hqd4{letter-spacing:.08em;text-transform:uppercase;color:var(--chronicle-text-muted);font-size:11px;font-weight:700}.popover-header.svelte-1h3hqd4 h2:where(.svelte-1h3hqd4){color:var(--chronicle-text);margin-top:4px;font-size:1rem;line-height:1.35}.popover-error.svelte-1h3hqd4{margin-bottom:12px}.popover-scroll.svelte-1h3hqd4{max-height:min(52vh,400px);padding-right:2px;overflow-y:auto}.popover-process-list.svelte-1h3hqd4 .process-row:where(.svelte-1h3hqd4){padding-block:12px}.popover-section.svelte-1h3hqd4+.popover-section:where(.svelte-1h3hqd4){border-top:1px solid color-mix(in srgb, var(--chronicle-border) 72%, transparent 28%);margin-top:16px;padding-top:14px}.sidebar-footer.svelte-1h3hqd4{border-top:1px solid color-mix(in srgb, var(--chronicle-border) 72%, transparent 28%);z-index:3;flex:none;margin-top:12px;padding-top:12px;position:relative}.sidebar-footer.is-collapsed.svelte-1h3hqd4{width:48px;padding-top:8px}.user-trigger.svelte-1h3hqd4{border-radius:var(--radius-sm);width:100%;min-height:42px;color:var(--chronicle-text-muted);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;padding:5px 8px;font-weight:620;display:grid}.user-trigger.is-collapsed.svelte-1h3hqd4{grid-template-columns:1fr;place-items:center;width:48px;height:48px;padding:0;display:grid}.footer-icon.svelte-1h3hqd4,.footer-icon.svelte-1h3hqd4 svg:where(.svelte-1h3hqd4){width:20px;height:20px;display:block}.footer-icon.svelte-1h3hqd4{justify-self:center}.user-name.svelte-1h3hqd4{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.875rem;line-height:1.35;overflow:hidden}.user-popover.svelte-1h3hqd4{border:1px solid var(--chronicle-border);background:var(--chronicle-card-surface);width:100%;box-shadow:var(--chronicle-shadow-soft);z-index:5;border-radius:14px;gap:4px;padding:6px;display:grid;position:absolute;bottom:calc(100% + 8px);left:0}.user-popover.is-collapsed.svelte-1h3hqd4{width:180px;bottom:0;left:calc(100% + 12px)}.user-popover-action.svelte-1h3hqd4{width:100%;min-height:38px;color:var(--chronicle-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:8px 10px;font-size:.875rem;font-weight:620;text-decoration:none;display:block}.user-popover-action.svelte-1h3hqd4:hover:not(:disabled){background:var(--chronicle-panel-muted)}.user-popover-action.svelte-1h3hqd4:disabled{cursor:wait;opacity:.58}.logout-error.svelte-1h3hqd4{color:var(--chronicle-danger-text);font-size:var(--type-caption);margin:4px 8px 6px;line-height:1.4}.process-group.svelte-1h3hqd4{--process-row-gutter:var(--space-xs);min-height:0;padding-inline:var(--process-row-gutter);flex-direction:column;flex:1 1 0;gap:10px;display:flex}.process-group.is-empty.svelte-1h3hqd4{flex:none}.process-group.svelte-1h3hqd4:not(.is-empty){min-height:124px}.future-group.svelte-1h3hqd4:not(.is-empty){flex-grow:.8}.group-header.svelte-1h3hqd4{justify-content:space-between;align-items:center;gap:10px;min-height:20px;display:flex}.group-header.compact.svelte-1h3hqd4{margin-top:2px;margin-bottom:6px}.group-heading.svelte-1h3hqd4{letter-spacing:.08em;text-transform:uppercase;color:var(--chronicle-text-muted);font-size:11px;font-weight:700}.group-count.svelte-1h3hqd4{border:1px solid color-mix(in srgb, var(--chronicle-border) 80%, transparent 20%);background:color-mix(in srgb, var(--chronicle-card-surface) 74%, transparent 26%);min-width:22px;height:20px;color:var(--chronicle-text-faint);font-family:var(--font-mono);font-variant-numeric:tabular-nums;border-radius:999px;justify-content:center;align-items:center;padding:0 7px;font-size:.72rem;font-weight:700;line-height:1;display:inline-flex}.sidebar-scroll.svelte-1h3hqd4>.process-group:where(.svelte-1h3hqd4)>.process-list:where(.svelte-1h3hqd4){min-height:0;margin-inline:calc(-1 * var(--process-row-gutter));overflow-y:auto}.process-list.svelte-1h3hqd4{flex-direction:column;gap:4px;display:flex}.process-row.svelte-1h3hqd4{padding:6px var(--process-row-gutter,var(--space-xs));color:inherit;border-radius:14px;grid-template-columns:12px minmax(0,1fr);column-gap:8px;text-decoration:none;display:grid;box-shadow:inset 0 0 0 1px #0000}.process-row.svelte-1h3hqd4:hover{background:color-mix(in srgb, var(--chronicle-card-surface) 92%, var(--chronicle-accent) 8%);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--chronicle-border) 76%, var(--chronicle-accent) 24%)}.process-row.is-selected.svelte-1h3hqd4{background:color-mix(in srgb, var(--chronicle-card-surface) 92%, var(--chronicle-accent) 8%);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--chronicle-accent) 18%, var(--chronicle-border) 82%)}.row-copy.svelte-1h3hqd4{gap:1px;min-width:0;display:grid}.row-heading.svelte-1h3hqd4{align-items:baseline;gap:8px;min-width:0;display:flex}.row-heading.svelte-1h3hqd4 .row-title:where(.svelte-1h3hqd4){flex:1;min-width:0}.row-age.svelte-1h3hqd4{color:var(--chronicle-text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:.75rem;line-height:1.32}.row-status-dot.svelte-1h3hqd4{background:var(--chronicle-text-muted);border-radius:50%;width:10px;height:10px;margin-top:5px}.row-status-dot.running.svelte-1h3hqd4,.row-status-dot.future-action.svelte-1h3hqd4{background:var(--chronicle-accent)}.row-status-dot.waiting.svelte-1h3hqd4,.row-status-dot.future-once.svelte-1h3hqd4{background:var(--chronicle-attention)}.row-status-dot.error.svelte-1h3hqd4{background:var(--chronicle-danger)}.row-status-dot.completed.svelte-1h3hqd4,.row-status-dot.future-cron.svelte-1h3hqd4{background:var(--chronicle-success)}.row-title.svelte-1h3hqd4{color:var(--chronicle-text);text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:620;line-height:1.32;display:block;overflow:hidden}.row-meta.svelte-1h3hqd4{font-variant-numeric:tabular-nums;color:var(--chronicle-text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;font-weight:400;line-height:1.4;display:block;overflow:hidden}.group-error.svelte-1h3hqd4,.empty-state.svelte-1h3hqd4{padding:2px 0;font-size:.875rem;line-height:1.55}.group-error.svelte-1h3hqd4{color:var(--chronicle-danger-text);margin:0}.empty-state.svelte-1h3hqd4{color:var(--chronicle-text-muted)}.connection-overlay.svelte-1h3hqd4{border:1px solid color-mix(in srgb, var(--chronicle-danger) 46%, var(--chronicle-border) 54%);background:color-mix(in srgb, white 92%, var(--chronicle-danger) 8%);border-radius:16px;padding:14px;position:absolute;bottom:76px;left:18px;right:18px}.overlay-title.svelte-1h3hqd4{letter-spacing:.04em;text-transform:uppercase;color:var(--chronicle-danger-text);margin:0 0 4px;font-size:12px;font-weight:700}.overlay-copy.svelte-1h3hqd4{color:var(--chronicle-text);margin:0;font-size:.875rem;line-height:1.55}@media (width<=960px){.sidebar.svelte-1h3hqd4,.sidebar[data-sidebar-state=collapsed].svelte-1h3hqd4{width:100%;min-width:0;max-width:none;height:100%;padding:max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));border-bottom:0;border-right:0;flex:none;align-items:stretch;overflow:hidden}.sidebar-header.svelte-1h3hqd4{margin-bottom:16px;padding-right:48px}.sidebar-scroll.svelte-1h3hqd4{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:16px;min-height:0;padding-bottom:0;display:flex;overflow-y:auto}.process-group.svelte-1h3hqd4{background:color-mix(in srgb, var(--chronicle-card-surface) 92%, var(--chronicle-panel-muted) 8%);border:1px solid color-mix(in srgb, var(--chronicle-border) 88%, white 12%);border-radius:18px;padding:14px}.process-group.svelte-1h3hqd4,.process-group.is-empty.svelte-1h3hqd4,.process-group.svelte-1h3hqd4:not(.is-empty){flex:none;min-height:0}.sidebar-scroll.svelte-1h3hqd4>.process-group:where(.svelte-1h3hqd4)>.process-list:where(.svelte-1h3hqd4){overflow-y:visible}.connection-overlay.svelte-1h3hqd4{margin-top:16px;position:static}}.mobile-shell-bar.svelte-yp9hl3,.mobile-drawer-backdrop.svelte-yp9hl3,.mobile-drawer-close.svelte-yp9hl3{display:none}.mobile-sidebar-drawer.svelte-yp9hl3{display:contents}.app-shell.svelte-yp9hl3{background:var(--chronicle-bg);align-items:stretch;width:100%;height:100dvh;min-height:100dvh;display:flex;overflow:visible}.browser-ui-extension-indicators.svelte-yp9hl3{z-index:30;pointer-events:none;gap:8px;display:grid;position:fixed;bottom:18px;right:18px}.browser-ui-extension-indicators.svelte-yp9hl3 *{pointer-events:auto}.content-region.svelte-yp9hl3{min-width:0;min-height:0;padding:clamp(var(--space-sm), 1.8vw, var(--space-lg)) clamp(var(--space-md), 2vw, var(--space-xl)) clamp(var(--space-lg), 2.6vw, var(--space-xl));flex:auto;display:flex;overflow:visible}.content-region.svelte-yp9hl3>*{flex:auto;min-width:0;min-height:0}@media (width<=960px){.app-shell.svelte-yp9hl3{flex-direction:column;height:auto;overflow:visible}.mobile-shell-bar.svelte-yp9hl3{z-index:40;min-height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));border-bottom:1px solid color-mix(in srgb, var(--chronicle-border) 88%, white 12%);background:color-mix(in srgb, var(--chronicle-sidebar-surface) 96%, white 4%);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.mobile-brand.svelte-yp9hl3{color:var(--chronicle-text);font-size:var(--type-title-sm);letter-spacing:-.015em;font-weight:750;text-decoration:none}.mobile-menu-button.svelte-yp9hl3,.mobile-drawer-close.svelte-yp9hl3{border:1px solid var(--chronicle-border);border-radius:var(--radius-sm);background:var(--chronicle-card-surface);width:44px;height:44px;color:var(--chronicle-text);cursor:pointer;place-items:center;padding:0;display:inline-grid}.mobile-menu-button.svelte-yp9hl3 svg:where(.svelte-yp9hl3),.mobile-drawer-close.svelte-yp9hl3 svg:where(.svelte-yp9hl3){fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8px;width:21px;height:21px}.mobile-menu-button.svelte-yp9hl3:focus-visible,.mobile-drawer-close.svelte-yp9hl3:focus-visible,.mobile-brand.svelte-yp9hl3:focus-visible{outline:2px solid var(--chronicle-accent);outline-offset:2px}.mobile-drawer-backdrop.svelte-yp9hl3{z-index:50;opacity:0;pointer-events:none;background:#18212b61;border:0;padding:0;transition:opacity .18s ease-out;display:block;position:fixed;inset:0}.mobile-drawer-backdrop.is-open.svelte-yp9hl3{opacity:1;pointer-events:auto}.mobile-sidebar-drawer.svelte-yp9hl3{z-index:60;background:var(--chronicle-sidebar-surface);visibility:hidden;width:min(88vw,360px);max-width:100%;transition:transform .22s cubic-bezier(.22,1,.36,1),visibility 0s linear .22s;display:block;position:fixed;inset:0 auto 0 0;transform:translate(-102%);box-shadow:18px 0 40px #18212b24}.mobile-sidebar-drawer.is-open.svelte-yp9hl3{visibility:visible;transition-delay:0s;transform:translate(0)}.mobile-drawer-close.svelte-yp9hl3{top:max(10px, env(safe-area-inset-top));right:max(10px, env(safe-area-inset-right));z-index:2;position:absolute}.content-region.svelte-yp9hl3{padding:14px;overflow:visible}}@media (width<=960px) and (prefers-reduced-motion:reduce){.mobile-drawer-backdrop.svelte-yp9hl3,.mobile-sidebar-drawer.svelte-yp9hl3{transition:none}}:root{--font-sans:"Public Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;--font-display:"Public Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;--font-mono:"SF Mono", "Fira Code", ui-monospace, monospace;--chronicle-bg:#fff;--chronicle-sidebar-surface:#f7f8fa;--chronicle-panel-surface:#fff;--chronicle-panel-muted:#f2f4f7;--chronicle-card-surface:#fff;--chronicle-card-surface-strong:#f8fafc;--chronicle-border:#d9dee5;--chronicle-border-strong:#aeb7c2;--chronicle-text:#18212b;--chronicle-text-muted:#4c5968;--chronicle-text-faint:#687483;--chronicle-text-on-accent:#fff;--chronicle-accent:#2f61b7;--chronicle-accent-soft:#2f61b71f;--chronicle-link:color-mix(in srgb, var(--chronicle-text) 66%, var(--chronicle-accent) 34%);--chronicle-success:#157a52;--chronicle-success-surface:color-mix(in srgb, white 90%, var(--chronicle-success) 10%);--chronicle-attention:#a76313;--chronicle-danger:#a83a32;--chronicle-danger-surface:color-mix(in srgb, white 88%, var(--chronicle-danger) 12%);--chronicle-danger-surface-soft:color-mix(in srgb, white 92%, var(--chronicle-danger) 8%);--chronicle-danger-border:color-mix(in srgb, var(--chronicle-danger) 38%, var(--chronicle-border) 62%);--chronicle-danger-text:#7d2d27;--chronicle-danger-text-strong:#5f231f;--chronicle-code-surface:color-mix(in srgb, var(--chronicle-panel-muted) 76%, white 24%);--chronicle-code-inline:color-mix(in srgb, var(--chronicle-panel-muted) 70%, var(--chronicle-border) 30%);--chronicle-shadow:0 18px 40px #18212b14;--chronicle-shadow-soft:0 10px 24px #18212b0e;--chronicle-secondary-indent:clamp(24px, 4vw, 48px);--type-label:11px;--type-caption:12px;--type-body-sm:13px;--type-body:14px;--type-body-lg:15px;--type-title-sm:18px;--type-title-md:20px;--type-title-lg:24px;--tracking-label:.08em;--ease-out-quart:cubic-bezier(.25, 1, .5, 1);--ease-out-quint:cubic-bezier(.22, 1, .36, 1);--duration-fast:.16s;--duration-base:.22s;--duration-slow:.32s;--space-2xs:4px;--space-xs:8px;--space-sm:12px;--space-md:16px;--space-lg:24px;--space-xl:32px;--space-2xl:48px;--space-3xl:64px;--space-4xl:96px;--space-1:var(--space-2xs);--space-2:var(--space-xs);--space-3:var(--space-sm);--space-4:var(--space-md);--space-5:var(--space-lg);--space-6:var(--space-xl);--space-7:var(--space-2xl);--radius-sm:10px;--radius-md:14px;--radius-lg:18px;--radius-xl:22px}html,body{min-height:100%}.auth-gate.svelte-1n46o8q{place-content:center;gap:var(--space-md,16px);text-align:center;min-height:100vh;color:var(--chronicle-text,#1f2933);background:var(--chronicle-bg,#f4efe7);display:grid}.auth-button.svelte-1n46o8q{background:var(--chronicle-accent,#3564d7);color:var(--chronicle-text-on-accent,white);border-radius:999px;justify-content:center;align-items:center;padding:10px 16px;font-weight:700;text-decoration:none;display:inline-flex}body{font-family:var(--font-sans);font-kerning:normal;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--chronicle-bg);color:var(--chronicle-text);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;margin:0;font-size:16px;line-height:1.5}*,:before,:after{box-sizing:border-box}button,input,textarea,select{font:inherit}:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--chronicle-accent);outline-offset:3px}:where(button,input,textarea,select):focus-visible{box-shadow:0 0 0 4px color-mix(in srgb, var(--chronicle-accent) 16%, transparent 84%)}a.external-link{color:var(--chronicle-link);text-underline-offset:3px;font-weight:600;text-decoration-line:underline;text-decoration-thickness:1px}a.external-link:hover{text-decoration-thickness:2px}.external-link-icon{margin-inline-start:.3em;font-size:.9em;line-height:1;display:inline-block}.external-link-a11y{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}::selection{background:color-mix(in srgb, var(--chronicle-accent) 18%, white 82%)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[data-pressable=true]{transition:transform var(--duration-fast) var(--ease-out-quart), background var(--duration-fast) var(--ease-out-quart), border-color var(--duration-fast) var(--ease-out-quart), box-shadow var(--duration-fast) var(--ease-out-quart), color var(--duration-fast) var(--ease-out-quart)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
|
package/dist/index.html
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
/>
|
|
18
18
|
<link rel="stylesheet" href="/fonts/fonts.css" />
|
|
19
19
|
<title>Leitwerk</title>
|
|
20
|
-
<script type="module" crossorigin src="/assets/index-
|
|
20
|
+
<script type="module" crossorigin src="/assets/index-Dz0T5gKc.js"></script>
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/index-client-BSAA7n1a.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/http-client-Cvi3zOou.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/external-links-CX92-VRP.js">
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DzKWCM-z.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
|
27
27
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
"preview": "vite preview"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leitwerk-dev/domain": "0.4.
|
|
17
|
-
"@leitwerk-dev/process-sdk": "0.4.
|
|
18
|
-
"@leitwerk-dev/protocol": "0.4.
|
|
19
|
-
"@leitwerk-dev/worker-protocol": "0.4.
|
|
16
|
+
"@leitwerk-dev/domain": "0.4.2",
|
|
17
|
+
"@leitwerk-dev/process-sdk": "0.4.2",
|
|
18
|
+
"@leitwerk-dev/protocol": "0.4.2",
|
|
19
|
+
"@leitwerk-dev/worker-protocol": "0.4.2",
|
|
20
20
|
"beautiful-mermaid": "^1.1.3",
|
|
21
21
|
"dompurify": "^3.4.0",
|
|
22
22
|
"elkjs": "^0.12.0",
|
|
23
23
|
"markdown-it": "^14.1.1",
|
|
24
24
|
"valibot": "^1.3.1",
|
|
25
|
-
"@leitwerk-dev/wiki": "0.4.
|
|
26
|
-
"@leitwerk-dev/workflow-graph": "0.4.
|
|
25
|
+
"@leitwerk-dev/wiki": "0.4.2",
|
|
26
|
+
"@leitwerk-dev/workflow-graph": "0.4.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leitwerk-dev/test-support": "0.4.
|
|
29
|
+
"@leitwerk-dev/test-support": "0.4.2",
|
|
30
30
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
31
31
|
"@types/markdown-it": "^14.1.2",
|
|
32
32
|
"svelte": "^5.55.0",
|
|
@@ -47,6 +47,14 @@ const selectedModelUsable = $derived(
|
|
|
47
47
|
<ChronicleEntryHeader title={recovery.title} kind="system" failed />
|
|
48
48
|
<ChronicleFailureMessage summary={recovery.summary} technicalDetail={recovery.technicalDetail} />
|
|
49
49
|
{#if recovery.guidance}<p class="guidance">{recovery.guidance}</p>{/if}
|
|
50
|
+
{#if recovery.automaticRetry}
|
|
51
|
+
<p class="guidance" data-field="startup-retry-policy">
|
|
52
|
+
{recovery.automaticRetry.reason} Starts: {recovery.automaticRetry.starts}/{recovery.automaticRetry.maxStarts}.
|
|
53
|
+
{#if recovery.automaticRetry.nextRetryAt}
|
|
54
|
+
Next automatic retry: <time datetime={recovery.automaticRetry.nextRetryAt}>{new Date(recovery.automaticRetry.nextRetryAt).toLocaleTimeString()}</time>.
|
|
55
|
+
{/if}
|
|
56
|
+
</p>
|
|
57
|
+
{/if}
|
|
50
58
|
<RecoveryModelControl
|
|
51
59
|
{instanceId}
|
|
52
60
|
{modelProfiles}
|
|
@@ -66,6 +66,36 @@ import SkillSelector from "./SkillSelector.svelte";
|
|
|
66
66
|
|
|
67
67
|
type LauncherFieldInputValue = boolean | string;
|
|
68
68
|
|
|
69
|
+
class LatestRequest {
|
|
70
|
+
loading = $state(false);
|
|
71
|
+
error = $state<string | null>(null);
|
|
72
|
+
private generation = 0;
|
|
73
|
+
private fallback: string;
|
|
74
|
+
|
|
75
|
+
constructor(fallback: string, loading = false) {
|
|
76
|
+
this.fallback = fallback;
|
|
77
|
+
this.loading = loading;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
invalidate() {
|
|
81
|
+
this.generation++;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async run(work: (isCurrent: () => boolean) => Promise<void>, loading = true) {
|
|
85
|
+
const generation = ++this.generation;
|
|
86
|
+
this.loading = loading;
|
|
87
|
+
this.error = null;
|
|
88
|
+
try {
|
|
89
|
+
await work(() => generation === this.generation);
|
|
90
|
+
} catch (error) {
|
|
91
|
+
if (generation === this.generation)
|
|
92
|
+
this.error = error instanceof Error ? error.message : this.fallback;
|
|
93
|
+
} finally {
|
|
94
|
+
if (generation === this.generation) this.loading = false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
69
99
|
interface Props {
|
|
70
100
|
launcher: UiLauncherSummary;
|
|
71
101
|
initialRelaunchDraft?: ProcessRetryConfig | null;
|
|
@@ -103,17 +133,14 @@ let defaultModelProfileId = $state("");
|
|
|
103
133
|
let turnModelProfileIds = $state<Record<string, string>>({});
|
|
104
134
|
let advancedModelConfigOpen = $state(false);
|
|
105
135
|
let turnModelProfileIdsBeforeEditing = $state<Record<string, string> | null>(null);
|
|
106
|
-
|
|
107
|
-
let defaultsError = $state<string | null>(null);
|
|
136
|
+
const defaultsRequest = new LatestRequest("We couldn't load the starter values", true);
|
|
108
137
|
let defaultsWarnings = $state<LauncherValidationError[]>([]);
|
|
109
|
-
|
|
110
|
-
let optionsError = $state<string | null>(null);
|
|
138
|
+
const optionsRequest = new LatestRequest("We couldn't refresh the available options");
|
|
111
139
|
let modelConfigPreview = $state<LauncherModelConfigPreview | null>(null);
|
|
112
140
|
let recommendedDefaultModelPreview = $state<LauncherModelConfigPreview["defaultModel"] | null>(
|
|
113
141
|
null,
|
|
114
142
|
);
|
|
115
|
-
|
|
116
|
-
let modelConfigPreviewError = $state<string | null>(null);
|
|
143
|
+
const modelPreviewRequest = new LatestRequest("We couldn't refresh the model preview");
|
|
117
144
|
let submitBusy = $state(false);
|
|
118
145
|
let activeLaunchRunId = $state<string | null>(null);
|
|
119
146
|
let submitError = $state<string | null>(null);
|
|
@@ -137,9 +164,6 @@ let cronExpression = $state("");
|
|
|
137
164
|
let cronPreviewAt = $state<string | null>(null);
|
|
138
165
|
let cronPreviewError = $state<string | null>(null);
|
|
139
166
|
let cronPreviewBusy = $state(false);
|
|
140
|
-
let defaultsLoadToken = 0;
|
|
141
|
-
let optionsLoadToken = 0;
|
|
142
|
-
let modelConfigPreviewLoadToken = 0;
|
|
143
167
|
$effect(() =>
|
|
144
168
|
onSettingsChanged(() => {
|
|
145
169
|
settingsRevision += 1;
|
|
@@ -212,7 +236,10 @@ const validationKey = $derived(
|
|
|
212
236
|
JSON.stringify({ launcherId: launcher.id, request: validationRequest, settingsRevision }),
|
|
213
237
|
);
|
|
214
238
|
const validationPending = $derived(
|
|
215
|
-
|
|
239
|
+
defaultsRequest.loading ||
|
|
240
|
+
optionsRequest.loading ||
|
|
241
|
+
validationLoading ||
|
|
242
|
+
validatedKey !== validationKey,
|
|
216
243
|
);
|
|
217
244
|
const submitDisabled = $derived(
|
|
218
245
|
submitBusy ||
|
|
@@ -249,7 +276,7 @@ $effect(() => {
|
|
|
249
276
|
const request = validationRequest;
|
|
250
277
|
const launcherId = launcher.id;
|
|
251
278
|
validationRevision;
|
|
252
|
-
if (
|
|
279
|
+
if (defaultsRequest.loading || defaultsRequest.error || optionsRequest.loading) return;
|
|
253
280
|
const controller = new AbortController();
|
|
254
281
|
validationLoading = true;
|
|
255
282
|
validationError = null;
|
|
@@ -332,10 +359,7 @@ function clearDeferredDependentRefresh() {
|
|
|
332
359
|
}
|
|
333
360
|
|
|
334
361
|
function flushDeferredDependentRefresh() {
|
|
335
|
-
if (!deferredDependentRefreshValues)
|
|
336
|
-
clearDeferredDependentRefresh();
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
362
|
+
if (!deferredDependentRefreshValues) return;
|
|
339
363
|
const pendingValues = deferredDependentRefreshValues;
|
|
340
364
|
clearDeferredDependentRefresh();
|
|
341
365
|
refreshDependentLauncherState(pendingValues);
|
|
@@ -554,55 +578,35 @@ async function loadModelConfigPreview(
|
|
|
554
578
|
if (!hasModelConfigFields()) {
|
|
555
579
|
modelConfigPreview = null;
|
|
556
580
|
recommendedDefaultModelPreview = null;
|
|
557
|
-
|
|
558
|
-
|
|
581
|
+
modelPreviewRequest.loading = false;
|
|
582
|
+
modelPreviewRequest.error = null;
|
|
559
583
|
return;
|
|
560
584
|
}
|
|
561
585
|
|
|
562
|
-
|
|
563
|
-
modelConfigPreviewLoading = modelConfigPreview === null;
|
|
564
|
-
modelConfigPreviewError = null;
|
|
565
|
-
try {
|
|
586
|
+
return modelPreviewRequest.run(async (isCurrent) => {
|
|
566
587
|
const nextPreview = await fetchLauncherModelConfigPreview(
|
|
567
588
|
launcher.id,
|
|
568
589
|
buildLaunchInputFromValues(values),
|
|
569
590
|
previewModelConfig,
|
|
570
591
|
);
|
|
571
|
-
if (
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
592
|
+
if (!isCurrent()) return;
|
|
574
593
|
modelConfigPreview = nextPreview;
|
|
575
594
|
if ((previewModelConfig.defaultModelProfileId ?? "").trim() === "") {
|
|
576
595
|
recommendedDefaultModelPreview = nextPreview.defaultModel;
|
|
577
596
|
}
|
|
578
|
-
}
|
|
579
|
-
if (token !== modelConfigPreviewLoadToken) {
|
|
580
|
-
return;
|
|
581
|
-
}
|
|
582
|
-
modelConfigPreviewError =
|
|
583
|
-
error instanceof Error ? error.message : "We couldn't refresh the model preview";
|
|
584
|
-
} finally {
|
|
585
|
-
if (token === modelConfigPreviewLoadToken) {
|
|
586
|
-
modelConfigPreviewLoading = false;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
597
|
+
}, modelConfigPreview === null);
|
|
589
598
|
}
|
|
590
599
|
|
|
591
600
|
async function loadOptions(values: Record<string, LauncherFieldInputValue>) {
|
|
592
601
|
if (!hasSelectableFields()) {
|
|
593
602
|
fieldOptionsById = {};
|
|
594
|
-
|
|
603
|
+
optionsRequest.error = null;
|
|
595
604
|
return;
|
|
596
605
|
}
|
|
597
606
|
|
|
598
|
-
|
|
599
|
-
optionsLoading = true;
|
|
600
|
-
optionsError = null;
|
|
601
|
-
try {
|
|
607
|
+
return optionsRequest.run(async (isCurrent) => {
|
|
602
608
|
const options = await fetchLauncherOptions(launcher.id, buildLaunchInputFromValues(values));
|
|
603
|
-
if (
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
609
|
+
if (!isCurrent()) return;
|
|
606
610
|
fieldOptionsById = options;
|
|
607
611
|
for (const [id, choices] of Object.entries(options)) {
|
|
608
612
|
const known = new Map(
|
|
@@ -621,15 +625,7 @@ async function loadOptions(values: Record<string, LauncherFieldInputValue>) {
|
|
|
621
625
|
fieldInputValues = reconciled.values;
|
|
622
626
|
launcherSelections = reconciled.selections;
|
|
623
627
|
if (changed) void loadModelConfigPreview(fieldInputValues, buildLaunchModelConfig());
|
|
624
|
-
}
|
|
625
|
-
if (token !== optionsLoadToken) {
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
optionsError =
|
|
629
|
-
error instanceof Error ? error.message : "We couldn't refresh the available options";
|
|
630
|
-
} finally {
|
|
631
|
-
if (token === optionsLoadToken) optionsLoading = false;
|
|
632
|
-
}
|
|
628
|
+
});
|
|
633
629
|
}
|
|
634
630
|
|
|
635
631
|
function refreshDependentLauncherState(values: Record<string, LauncherFieldInputValue>) {
|
|
@@ -650,10 +646,8 @@ function scheduleDependentLauncherRefresh(
|
|
|
650
646
|
}
|
|
651
647
|
|
|
652
648
|
async function loadDefaults() {
|
|
653
|
-
const token = ++defaultsLoadToken;
|
|
654
649
|
clearDeferredDependentRefresh();
|
|
655
|
-
|
|
656
|
-
optionsLoading = false;
|
|
650
|
+
optionsRequest.loading = false;
|
|
657
651
|
validatedKey = null;
|
|
658
652
|
validationError = null;
|
|
659
653
|
validationDelay = 0;
|
|
@@ -662,10 +656,9 @@ async function loadDefaults() {
|
|
|
662
656
|
revealAllErrors = false;
|
|
663
657
|
formErrors = [];
|
|
664
658
|
fieldErrors = {};
|
|
665
|
-
defaultsError = null;
|
|
666
659
|
defaultsWarnings = [];
|
|
667
|
-
|
|
668
|
-
|
|
660
|
+
optionsRequest.error = null;
|
|
661
|
+
modelPreviewRequest.error = null;
|
|
669
662
|
clearSubmissionState();
|
|
670
663
|
titleInputValue = "";
|
|
671
664
|
selectedSkillIds = [];
|
|
@@ -675,7 +668,7 @@ async function loadDefaults() {
|
|
|
675
668
|
launcherSelections = {};
|
|
676
669
|
recentFieldValuesById = loadRecentFieldValuesFromStorage();
|
|
677
670
|
modelConfigPreview = null;
|
|
678
|
-
|
|
671
|
+
modelPreviewRequest.loading = false;
|
|
679
672
|
defaultModelProfileId = "";
|
|
680
673
|
turnModelProfileIds = createTurnModelProfileIds({});
|
|
681
674
|
advancedModelConfigOpen = false;
|
|
@@ -688,11 +681,9 @@ async function loadDefaults() {
|
|
|
688
681
|
cronPreviewAt = null;
|
|
689
682
|
cronPreviewError = null;
|
|
690
683
|
|
|
691
|
-
|
|
684
|
+
return defaultsRequest.run(async (isCurrent) => {
|
|
692
685
|
const { defaults, title, modelConfig, warnings } = await fetchLauncherDefaults(launcher.id);
|
|
693
|
-
if (
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
686
|
+
if (!isCurrent()) return;
|
|
696
687
|
const relaunchDraft = initialRelaunchDraft;
|
|
697
688
|
const draftValues = relaunchDraft?.launcherInput ?? initialValues;
|
|
698
689
|
const mergedDefaults = draftValues ? { ...defaults, ...draftValues } : defaults;
|
|
@@ -710,9 +701,7 @@ async function loadDefaults() {
|
|
|
710
701
|
selectedSkillIds = [...(relaunchDraft?.skillIds ?? initialSkillIds ?? [])];
|
|
711
702
|
fieldInputValues = nextValues;
|
|
712
703
|
recentFieldValuesById = await loadRecentFieldValues();
|
|
713
|
-
if (
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
704
|
+
if (!isCurrent()) return;
|
|
716
705
|
defaultModelProfileId = createDefaultModelProfileId(mergedModelConfig);
|
|
717
706
|
turnModelProfileIds = createTurnModelProfileIds(mergedModelConfig);
|
|
718
707
|
advancedModelConfigOpen = shouldAutoOpenAdvancedModelConfig(mergedModelConfig);
|
|
@@ -737,16 +726,7 @@ async function loadDefaults() {
|
|
|
737
726
|
: "";
|
|
738
727
|
void loadModelConfigPreview(nextValues, mergedModelConfig);
|
|
739
728
|
await loadOptions(nextValues);
|
|
740
|
-
}
|
|
741
|
-
if (token !== defaultsLoadToken) {
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
defaultsError = error instanceof Error ? error.message : "We couldn't load the starter values";
|
|
745
|
-
} finally {
|
|
746
|
-
if (token === defaultsLoadToken) {
|
|
747
|
-
loadingDefaults = false;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
729
|
+
});
|
|
750
730
|
}
|
|
751
731
|
|
|
752
732
|
$effect(() => {
|
|
@@ -761,9 +741,9 @@ $effect(() => {
|
|
|
761
741
|
void loadDefaults();
|
|
762
742
|
return () => {
|
|
763
743
|
clearDeferredDependentRefresh();
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
744
|
+
defaultsRequest.invalidate();
|
|
745
|
+
optionsRequest.invalidate();
|
|
746
|
+
modelPreviewRequest.invalidate();
|
|
767
747
|
cronPreviewToken += 1;
|
|
768
748
|
};
|
|
769
749
|
});
|
|
@@ -1123,20 +1103,7 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1123
1103
|
submitBusy = true;
|
|
1124
1104
|
|
|
1125
1105
|
try {
|
|
1126
|
-
const schedule =
|
|
1127
|
-
if (schedule.mode === "once" && !schedule.runAt) {
|
|
1128
|
-
submitError = "Choose a future date and time.";
|
|
1129
|
-
focusLauncherField("schedule-date");
|
|
1130
|
-
return;
|
|
1131
|
-
}
|
|
1132
|
-
if (schedule.mode === "cron" && !cronExpression.trim()) {
|
|
1133
|
-
submitError = "Enter a cron expression.";
|
|
1134
|
-
focusLauncherField("schedule-cron");
|
|
1135
|
-
return;
|
|
1136
|
-
}
|
|
1137
|
-
const title = buildSubmittedTitle();
|
|
1138
|
-
const launcherInput = buildLaunchInput();
|
|
1139
|
-
const modelConfig = buildLaunchModelConfig();
|
|
1106
|
+
const { title, launcherInput, modelConfig, schedule, skillIds } = validationRequest;
|
|
1140
1107
|
const submit = editingFutureLaunch ? updateScheduledLaunch : launchLauncher;
|
|
1141
1108
|
const result = await submit(
|
|
1142
1109
|
editingFutureLaunch?.id ?? launcher.id,
|
|
@@ -1144,7 +1111,7 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1144
1111
|
launcherInput,
|
|
1145
1112
|
modelConfig,
|
|
1146
1113
|
schedule,
|
|
1147
|
-
|
|
1114
|
+
skillIds,
|
|
1148
1115
|
);
|
|
1149
1116
|
switch (result.kind) {
|
|
1150
1117
|
case "launch_started":
|
|
@@ -1188,14 +1155,14 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1188
1155
|
{/if}
|
|
1189
1156
|
{/snippet}
|
|
1190
1157
|
|
|
1191
|
-
<div class="launcher-form" data-launcher-id={launcher.id} aria-busy={submitBusy ||
|
|
1192
|
-
{#if
|
|
1158
|
+
<div class="launcher-form" data-launcher-id={launcher.id} aria-busy={submitBusy || defaultsRequest.loading}>
|
|
1159
|
+
{#if defaultsRequest.loading}
|
|
1193
1160
|
<p class="state-msg">Loading the starter values for this process…</p>
|
|
1194
|
-
{:else if
|
|
1161
|
+
{:else if defaultsRequest.error}
|
|
1195
1162
|
<div class="state-block error" role="status">
|
|
1196
1163
|
<div class="state-copy">
|
|
1197
1164
|
<p class="state-title">We couldn't prepare this form yet.</p>
|
|
1198
|
-
<p class="state-msg error">{
|
|
1165
|
+
<p class="state-msg error">{defaultsRequest.error}</p>
|
|
1199
1166
|
</div>
|
|
1200
1167
|
<button
|
|
1201
1168
|
type="button"
|
|
@@ -1207,12 +1174,12 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1207
1174
|
</button>
|
|
1208
1175
|
</div>
|
|
1209
1176
|
{:else}
|
|
1210
|
-
{#if
|
|
1177
|
+
{#if optionsRequest.error}
|
|
1211
1178
|
<p class="state-msg error refresh-error" role="status">
|
|
1212
1179
|
We couldn't refresh the latest options, so we're showing the last set we loaded.
|
|
1213
1180
|
</p>
|
|
1214
1181
|
{/if}
|
|
1215
|
-
{#if
|
|
1182
|
+
{#if modelPreviewRequest.error}
|
|
1216
1183
|
<p class="state-msg error refresh-error" role="status">
|
|
1217
1184
|
We couldn't refresh the current model preview, so we're showing the last preview we loaded.
|
|
1218
1185
|
</p>
|
|
@@ -1376,7 +1343,7 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1376
1343
|
{/each}
|
|
1377
1344
|
</select>
|
|
1378
1345
|
</div>
|
|
1379
|
-
{#if
|
|
1346
|
+
{#if modelPreviewRequest.loading && modelConfigPreview === null}
|
|
1380
1347
|
<p class="field-description model-config-status-note">Refreshing the current recommendation…</p>
|
|
1381
1348
|
{/if}
|
|
1382
1349
|
</div>
|
|
@@ -1388,7 +1355,7 @@ async function handleSubmit(event: SubmitEvent) {
|
|
|
1388
1355
|
data-summary-mode={modelSummaryView.mode}
|
|
1389
1356
|
data-customization-mode={modelCustomizationState.mode}
|
|
1390
1357
|
data-customization-count={modelCustomizationState.totalCustomizedChoices}
|
|
1391
|
-
data-preview-loading={
|
|
1358
|
+
data-preview-loading={modelPreviewRequest.loading}
|
|
1392
1359
|
data-editing={advancedModelConfigOpen ? "true" : "false"}
|
|
1393
1360
|
data-override-count={modelCustomizationState.turnOverrideCount}
|
|
1394
1361
|
role="status"
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { NEW_TAB_WINDOW_FEATURES } from "../lib/external-links.js";
|
|
13
13
|
import { keyboardShortcutHelpOpen } from "../lib/keyboard-shortcuts-help.js";
|
|
14
14
|
import { setPendingRetryConfig } from "../lib/retry-config.svelte.js";
|
|
15
|
-
import {
|
|
15
|
+
import { buildCreateProcessPath, navigate } from "../lib/router.svelte.js";
|
|
16
16
|
import { resolveApiUrl } from "../lib/runtime-config.js";
|
|
17
17
|
|
|
18
18
|
interface Props {
|
|
@@ -90,33 +90,28 @@ function transferExpiryLabel(expiresAt: string): string {
|
|
|
90
90
|
const idDisambiguator = $derived(idSuffix ? `-${idSuffix}` : "");
|
|
91
91
|
const triggerId = $derived(`process-actions-trigger-${instanceId}${idDisambiguator}`);
|
|
92
92
|
const menuId = $derived(`process-actions-menu-${instanceId}${idDisambiguator}`);
|
|
93
|
-
const confirmationView = $derived(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
? handleAbort
|
|
116
|
-
: confirmation === "delete"
|
|
117
|
-
? handleDelete
|
|
118
|
-
: handleAbortAndRetry,
|
|
119
|
-
});
|
|
93
|
+
const confirmationView = $derived(
|
|
94
|
+
{
|
|
95
|
+
abort: {
|
|
96
|
+
message: `Abort ${actionTarget}? Active work will stop. Its history will remain available. This can’t be undone.`,
|
|
97
|
+
cancelLabel: "Keep process running",
|
|
98
|
+
buttonLabel: busy ? "Aborting…" : "Abort process",
|
|
99
|
+
action: handleAbort,
|
|
100
|
+
},
|
|
101
|
+
delete: {
|
|
102
|
+
message: `Permanently delete ${actionTarget}? ${isFinished ? "" : "Active work will be stopped first. "}History and managed stored artifacts will be permanently removed. This can’t be undone.`,
|
|
103
|
+
cancelLabel: "Keep current process",
|
|
104
|
+
buttonLabel: busy ? "Deleting…" : "Delete process",
|
|
105
|
+
action: handleDelete,
|
|
106
|
+
},
|
|
107
|
+
"abort-and-retry": {
|
|
108
|
+
message: `Abort ${actionTarget}, then prepare a new process with the same setup. Existing history will remain available.`,
|
|
109
|
+
cancelLabel: "Keep current process",
|
|
110
|
+
buttonLabel: busy ? "Preparing new process…" : "Abort and retry",
|
|
111
|
+
action: () => handleRetry(true),
|
|
112
|
+
},
|
|
113
|
+
}[confirmation ?? "abort-and-retry"],
|
|
114
|
+
);
|
|
120
115
|
|
|
121
116
|
function toggleMenu() {
|
|
122
117
|
if (disabled || busy) return;
|
|
@@ -212,10 +207,6 @@ async function runBusy(work: () => Promise<void>, fallbackError: string) {
|
|
|
212
207
|
}
|
|
213
208
|
|
|
214
209
|
async function handleAbort() {
|
|
215
|
-
if (confirmation !== "abort") {
|
|
216
|
-
confirmation = "abort";
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
210
|
await runBusy(async () => {
|
|
220
211
|
await postProcessAbort(instanceId);
|
|
221
212
|
closeMenu();
|
|
@@ -262,10 +253,6 @@ function showActions() {
|
|
|
262
253
|
}
|
|
263
254
|
|
|
264
255
|
async function handleDelete() {
|
|
265
|
-
if (confirmation !== "delete") {
|
|
266
|
-
confirmation = "delete";
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
256
|
await runBusy(async () => {
|
|
270
257
|
await requestProcessDeletion(instanceId);
|
|
271
258
|
closeMenu();
|
|
@@ -273,25 +260,16 @@ async function handleDelete() {
|
|
|
273
260
|
}, "Couldn't delete process");
|
|
274
261
|
}
|
|
275
262
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
confirmation = "abort-and-retry";
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
await runBusy(async () => {
|
|
290
|
-
const config = await fetchProcessRetryConfig(instanceId);
|
|
291
|
-
await postProcessAbort(instanceId);
|
|
292
|
-
setPendingRetryConfig(config);
|
|
293
|
-
navigate(buildHomePath(config.launcherId));
|
|
294
|
-
}, "Couldn't abort and retry");
|
|
263
|
+
function handleRetry(abortCurrent: boolean) {
|
|
264
|
+
return runBusy(
|
|
265
|
+
async () => {
|
|
266
|
+
const config = await fetchProcessRetryConfig(instanceId);
|
|
267
|
+
if (abortCurrent) await postProcessAbort(instanceId);
|
|
268
|
+
setPendingRetryConfig(config);
|
|
269
|
+
navigate(buildCreateProcessPath(config.launcherId));
|
|
270
|
+
},
|
|
271
|
+
abortCurrent ? "Couldn't abort and retry" : "Couldn't load retry config",
|
|
272
|
+
);
|
|
295
273
|
}
|
|
296
274
|
|
|
297
275
|
function handleDownloadSession() {
|
|
@@ -422,14 +400,14 @@ function handleDownloadSession() {
|
|
|
422
400
|
<div class="menu-divider" role="separator"></div>
|
|
423
401
|
{/if}
|
|
424
402
|
{#if !isFinished}
|
|
425
|
-
{@render menuItem("abort", "Abort process",
|
|
403
|
+
{@render menuItem("abort", "Abort process", () => { confirmation = "abort"; })}
|
|
426
404
|
{/if}
|
|
427
|
-
{@render menuItem("retry", busy ? "Loading…" : "Retry as new process", handleRetry)}
|
|
405
|
+
{@render menuItem("retry", busy ? "Loading…" : "Retry as new process", () => handleRetry(false))}
|
|
428
406
|
{#if !isFinished}
|
|
429
|
-
{@render menuItem("abort-and-retry", "Abort and retry as new process",
|
|
407
|
+
{@render menuItem("abort-and-retry", "Abort and retry as new process", () => { confirmation = "abort-and-retry"; })}
|
|
430
408
|
{/if}
|
|
431
409
|
<div class="menu-divider" role="separator"></div>
|
|
432
|
-
{@render menuItem("delete", "Delete process",
|
|
410
|
+
{@render menuItem("delete", "Delete process", () => { confirmation = "delete"; }, true)}
|
|
433
411
|
{/if}
|
|
434
412
|
</div>
|
|
435
413
|
{/if}
|
package/src/lib/api.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
import type {
|
|
16
16
|
AuthMeResponseBody,
|
|
17
17
|
CronPreviewResponseBody,
|
|
18
|
+
DashboardResponseBody,
|
|
18
19
|
FutureExecutionSummary as FullFutureExecutionSummary,
|
|
19
20
|
FutureExecutionDetailResponseBody,
|
|
20
21
|
FutureExecutionOverviewItem,
|
|
@@ -886,3 +887,13 @@ export async function updateProcessModelConfig(
|
|
|
886
887
|
jsonRequestInit(preview ? "POST" : "PATCH", patch),
|
|
887
888
|
);
|
|
888
889
|
}
|
|
890
|
+
|
|
891
|
+
/** Fetch the server-owned installation overview. @internal */
|
|
892
|
+
export function fetchDashboard(signal?: AbortSignal): Promise<DashboardResponseBody> {
|
|
893
|
+
return requestStatusJson(
|
|
894
|
+
"/api/dashboard",
|
|
895
|
+
"Couldn't load the dashboard",
|
|
896
|
+
"Malformed dashboard response",
|
|
897
|
+
{ signal },
|
|
898
|
+
);
|
|
899
|
+
}
|