|
1 | 1 | <script lang="ts"> |
2 | | - import { createEventDispatcher, onMount } from 'svelte'; |
| 2 | + import { createEventDispatcher, onMount, onDestroy } from 'svelte'; |
3 | 3 | import { fade } from 'svelte/transition'; |
4 | 4 | import { Button } from '$lib/components/ui/button'; |
5 | 5 | import { codeToHtml } from 'shiki'; |
|
46 | 46 | reliabilityFeatures: [ |
47 | 47 | { |
48 | 48 | setting: 'maxAttempts: 2', |
49 | | - explanation: 'Automatically retries failed steps up to 3 times before giving up' |
| 49 | + explanation: 'Automatically retries failed steps up to 2 times before giving up' |
| 50 | + }, |
| 51 | + { |
| 52 | + setting: 'baseDelay: 1', |
| 53 | + explanation: 'Initial retry delay of 1 second, doubling with each retry (1s, 2s, 4s...)' |
50 | 54 | } |
51 | 55 | ], |
52 | 56 | inputType: `{ |
|
169 | 173 | }; |
170 | 174 |
|
171 | 175 | mediaQuery.addEventListener('change', updateMobile); |
| 176 | +
|
| 177 | + onDestroy(() => { |
| 178 | + mediaQuery.removeEventListener('change', updateMobile); |
| 179 | + }); |
172 | 180 | } |
173 | 181 |
|
174 | 182 | // Replace long strings with placeholders for mobile display |
|
596 | 604 | </div> |
597 | 605 | </details> |
598 | 606 |
|
599 | | - <!-- Reliability Features --> |
600 | | - <div> |
601 | | - <div class="font-semibold text-muted-foreground mb-1.5 text-sm"> |
602 | | - Reliability Configuration |
603 | | - </div> |
604 | | - <div class="space-y-2"> |
| 607 | + <!-- Reliability Configuration (collapsible) --> |
| 608 | + <details class="concept-explainer bg-background/50 border border-border rounded-lg"> |
| 609 | + <summary |
| 610 | + class="font-semibold text-sm text-foreground cursor-pointer hover:bg-background/80 flex items-center gap-2 p-3 rounded-lg transition-colors" |
| 611 | + > |
| 612 | + <span class="concept-caret">▸</span> |
| 613 | + <span class="flex-1">Reliability configuration</span> |
| 614 | + </summary> |
| 615 | + <div class="text-xs text-muted-foreground leading-relaxed px-3 pb-3 space-y-2"> |
605 | 616 | {#each flowInfo.reliabilityFeatures as feature (feature.setting)} |
606 | | - <div class="bg-secondary/50 rounded p-2.5"> |
607 | | - <code class="text-xs font-mono text-primary">{feature.setting}</code> |
608 | | - <p class="text-xs text-muted-foreground mt-1">{feature.explanation}</p> |
| 617 | + <div> |
| 618 | + <code class="bg-muted px-1 rounded font-mono text-primary">{feature.setting}</code> |
| 619 | + - {feature.explanation} |
609 | 620 | </div> |
610 | 621 | {/each} |
611 | 622 | </div> |
612 | | - </div> |
| 623 | + </details> |
613 | 624 |
|
614 | 625 | <!-- Steps --> |
615 | 626 | <div> |
|
0 commit comments