@crvouga/atlas 0.0.0-stage → 0.2.0
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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +649 -2
- package/dist/bun/src/driver.d.ts +67 -0
- package/dist/bun/src/driver.js +90 -0
- package/dist/bun/src/index.d.ts +2 -0
- package/dist/bun/src/index.js +2 -0
- package/dist/core/src/cli.d.ts +1 -0
- package/dist/core/src/cli.js +177 -0
- package/dist/core/src/config.d.ts +477 -0
- package/dist/core/src/config.js +100 -0
- package/dist/core/src/events/cloudevents.d.ts +56 -0
- package/dist/core/src/events/cloudevents.js +152 -0
- package/dist/core/src/graph.d.ts +113 -0
- package/dist/core/src/graph.js +221 -0
- package/dist/core/src/index.d.ts +17 -0
- package/dist/core/src/index.js +17 -0
- package/dist/core/src/lint.d.ts +53 -0
- package/dist/core/src/lint.js +138 -0
- package/dist/core/src/plan.d.ts +109 -0
- package/dist/core/src/plan.js +324 -0
- package/dist/core/src/privacy.d.ts +8 -0
- package/dist/core/src/privacy.js +42 -0
- package/dist/core/src/report/formats.d.ts +69 -0
- package/dist/core/src/report/formats.js +109 -0
- package/dist/core/src/report/markdown.d.ts +8 -0
- package/dist/core/src/report/markdown.js +140 -0
- package/dist/core/src/run/clients.d.ts +42 -0
- package/dist/core/src/run/clients.js +250 -0
- package/dist/core/src/run/execute.d.ts +854 -0
- package/dist/core/src/run/execute.js +877 -0
- package/dist/core/src/run/frames.d.ts +16 -0
- package/dist/core/src/run/frames.js +52 -0
- package/dist/core/src/run/http.d.ts +41 -0
- package/dist/core/src/run/http.js +71 -0
- package/dist/core/src/run/types.d.ts +248 -0
- package/dist/core/src/run/types.js +39 -0
- package/dist/core/src/signals.d.ts +110 -0
- package/dist/core/src/signals.js +121 -0
- package/dist/core/src/spec/compose.d.ts +28 -0
- package/dist/core/src/spec/compose.js +71 -0
- package/dist/core/src/spec/index.d.ts +5 -0
- package/dist/core/src/spec/index.js +5 -0
- package/dist/core/src/spec/load.d.ts +8 -0
- package/dist/core/src/spec/load.js +46 -0
- package/dist/core/src/spec/parse.d.ts +5 -0
- package/dist/core/src/spec/parse.js +32 -0
- package/dist/core/src/spec/scxml.d.ts +19 -0
- package/dist/core/src/spec/scxml.js +239 -0
- package/dist/core/src/spec/types.d.ts +96 -0
- package/dist/core/src/spec/types.js +25 -0
- package/dist/detox/src/index.d.ts +75 -0
- package/dist/detox/src/index.js +110 -0
- package/dist/playwright/src/driver.d.ts +44 -0
- package/dist/playwright/src/driver.js +82 -0
- package/dist/playwright/src/index.d.ts +3 -0
- package/dist/playwright/src/index.js +3 -0
- package/dist/playwright/src/media.d.ts +68 -0
- package/dist/playwright/src/media.js +283 -0
- package/dist/playwright/src/signals.d.ts +34 -0
- package/dist/playwright/src/signals.js +56 -0
- package/dist/reports/src/browser-navigation.d.ts +2 -0
- package/dist/reports/src/browser-navigation.js +28 -0
- package/dist/reports/src/bundle.d.ts +24 -0
- package/dist/reports/src/bundle.js +114 -0
- package/dist/reports/src/catalog.d.ts +37 -0
- package/dist/reports/src/catalog.js +127 -0
- package/dist/reports/src/clock.d.ts +14 -0
- package/dist/reports/src/clock.js +4 -0
- package/dist/reports/src/completion-order.d.ts +10 -0
- package/dist/reports/src/completion-order.js +76 -0
- package/dist/reports/src/evidence-live.d.ts +40 -0
- package/dist/reports/src/evidence-live.js +118 -0
- package/dist/reports/src/evidence-types.d.ts +90 -0
- package/dist/reports/src/evidence-types.js +15 -0
- package/dist/reports/src/evidence-view.d.ts +68 -0
- package/dist/reports/src/evidence-view.js +113 -0
- package/dist/reports/src/explorer-types.d.ts +56 -0
- package/dist/reports/src/explorer-types.js +0 -0
- package/dist/reports/src/explorer-versions.d.ts +4 -0
- package/dist/reports/src/explorer-versions.js +21 -0
- package/dist/reports/src/export-evidence.d.ts +11 -0
- package/dist/reports/src/export-evidence.js +94 -0
- package/dist/reports/src/fetcher.d.ts +50 -0
- package/dist/reports/src/fetcher.js +205 -0
- package/dist/reports/src/format-date.d.ts +1 -0
- package/dist/reports/src/format-date.js +10 -0
- package/dist/reports/src/format.d.ts +16 -0
- package/dist/reports/src/format.js +71 -0
- package/dist/reports/src/frames.d.ts +46 -0
- package/dist/reports/src/frames.js +245 -0
- package/dist/reports/src/hash.d.ts +17 -0
- package/dist/reports/src/hash.js +43 -0
- package/dist/reports/src/html-frame.d.ts +13 -0
- package/dist/reports/src/html-frame.js +63 -0
- package/dist/reports/src/http.d.ts +3 -0
- package/dist/reports/src/http.js +0 -0
- package/dist/reports/src/junit.d.ts +23 -0
- package/dist/reports/src/junit.js +119 -0
- package/dist/reports/src/keyboard.d.ts +16 -0
- package/dist/reports/src/keyboard.js +135 -0
- package/dist/reports/src/keys.d.ts +53 -0
- package/dist/reports/src/keys.js +122 -0
- package/dist/reports/src/layer-catalog.d.ts +5 -0
- package/dist/reports/src/layer-catalog.js +39 -0
- package/dist/reports/src/layer-merge.d.ts +43 -0
- package/dist/reports/src/layer-merge.js +154 -0
- package/dist/reports/src/layer-source.d.ts +6 -0
- package/dist/reports/src/layer-source.js +32 -0
- package/dist/reports/src/layer-store.d.ts +10 -0
- package/dist/reports/src/layer-store.js +36 -0
- package/dist/reports/src/layer-types.d.ts +32 -0
- package/dist/reports/src/layer-types.js +0 -0
- package/dist/reports/src/layers-route.d.ts +20 -0
- package/dist/reports/src/layers-route.js +259 -0
- package/dist/reports/src/namespace-guard.d.ts +11 -0
- package/dist/reports/src/namespace-guard.js +40 -0
- package/dist/reports/src/navigation.d.ts +8 -0
- package/dist/reports/src/navigation.js +0 -0
- package/dist/reports/src/object-io.d.ts +9 -0
- package/dist/reports/src/object-io.js +41 -0
- package/dist/reports/src/object-store.d.ts +67 -0
- package/dist/reports/src/object-store.js +32 -0
- package/dist/reports/src/performance-part.d.ts +9 -0
- package/dist/reports/src/performance-part.js +42 -0
- package/dist/reports/src/performance.d.ts +13 -0
- package/dist/reports/src/performance.js +45 -0
- package/dist/reports/src/persist.d.ts +10 -0
- package/dist/reports/src/persist.js +38 -0
- package/dist/reports/src/phone.d.ts +5 -0
- package/dist/reports/src/phone.js +18 -0
- package/dist/reports/src/protocol.d.ts +78 -0
- package/dist/reports/src/protocol.js +36 -0
- package/dist/reports/src/publication.d.ts +4 -0
- package/dist/reports/src/publication.js +35 -0
- package/dist/reports/src/publish.d.ts +52 -0
- package/dist/reports/src/publish.js +189 -0
- package/dist/reports/src/read.d.ts +62 -0
- package/dist/reports/src/read.js +214 -0
- package/dist/reports/src/recording-bundle.d.ts +22 -0
- package/dist/reports/src/recording-bundle.js +4 -0
- package/dist/reports/src/recording-keys.d.ts +9 -0
- package/dist/reports/src/recording-keys.js +50 -0
- package/dist/reports/src/remote-report.d.ts +39 -0
- package/dist/reports/src/remote-report.js +304 -0
- package/dist/reports/src/report-loader.d.ts +22 -0
- package/dist/reports/src/report-loader.js +0 -0
- package/dist/reports/src/report-parts.d.ts +10 -0
- package/dist/reports/src/report-parts.js +112 -0
- package/dist/reports/src/report-types.d.ts +194 -0
- package/dist/reports/src/report-types.js +29 -0
- package/dist/reports/src/reports-explorer-route.d.ts +90 -0
- package/dist/reports/src/reports-explorer-route.js +65 -0
- package/dist/reports/src/reports-list-route.d.ts +23 -0
- package/dist/reports/src/reports-list-route.js +55 -0
- package/dist/reports/src/reports-route.d.ts +267 -0
- package/dist/reports/src/reports-route.js +204 -0
- package/dist/reports/src/reports-store.d.ts +11 -0
- package/dist/reports/src/reports-store.js +28 -0
- package/dist/reports/src/resilient-cache.d.ts +3 -0
- package/dist/reports/src/resilient-cache.js +33 -0
- package/dist/reports/src/retention.d.ts +9 -0
- package/dist/reports/src/retention.js +16 -0
- package/dist/reports/src/scenario.d.ts +15 -0
- package/dist/reports/src/scenario.js +35 -0
- package/dist/reports/src/snapshot-bundle.d.ts +18 -0
- package/dist/reports/src/snapshot-bundle.js +94 -0
- package/dist/reports/src/snapshot-surface.d.ts +29 -0
- package/dist/reports/src/snapshot-surface.js +339 -0
- package/dist/reports/src/source-content.d.ts +30 -0
- package/dist/reports/src/source-content.js +63 -0
- package/dist/reports/src/source-entries.d.ts +4 -0
- package/dist/reports/src/source-entries.js +34 -0
- package/dist/reports/src/source-part.d.ts +4 -0
- package/dist/reports/src/source-part.js +66 -0
- package/dist/reports/src/source-reader.d.ts +6 -0
- package/dist/reports/src/source-reader.js +17 -0
- package/dist/reports/src/spec-evidence.d.ts +6 -0
- package/dist/reports/src/spec-evidence.js +20 -0
- package/dist/reports/src/spec-inventory.d.ts +14 -0
- package/dist/reports/src/spec-inventory.js +75 -0
- package/dist/reports/src/status.d.ts +4 -0
- package/dist/reports/src/status.js +8 -0
- package/dist/reports/src/store-prefix.d.ts +21 -0
- package/dist/reports/src/store-prefix.js +53 -0
- package/dist/reports/src/test-catalog-entity.d.ts +3 -0
- package/dist/reports/src/test-catalog-entity.js +34 -0
- package/dist/reports/src/types.d.ts +5 -0
- package/dist/reports/src/types.js +0 -0
- package/dist/reports/src/use-report-nav.d.ts +25 -0
- package/dist/reports/src/use-report-nav.js +181 -0
- package/dist/schema/src/common.d.ts +57 -0
- package/dist/schema/src/common.js +32 -0
- package/dist/schema/src/index.d.ts +5 -0
- package/dist/schema/src/index.js +5 -0
- package/dist/schema/src/manifest.d.ts +457 -0
- package/dist/schema/src/manifest.js +247 -0
- package/dist/schema/src/report-sources.d.ts +68 -0
- package/dist/schema/src/report-sources.js +53 -0
- package/dist/schema/src/runs-index.d.ts +52 -0
- package/dist/schema/src/runs-index.js +24 -0
- package/dist/schema/src/spec.d.ts +245 -0
- package/dist/schema/src/spec.js +133 -0
- package/dist/vitest/src/index.d.ts +22 -0
- package/dist/vitest/src/index.js +33 -0
- package/dist/webdriver/src/driver.d.ts +69 -0
- package/dist/webdriver/src/driver.js +230 -0
- package/dist/webdriver/src/index.d.ts +11 -0
- package/dist/webdriver/src/index.js +10 -0
- package/dist/webdriver/src/protocol.d.ts +60 -0
- package/dist/webdriver/src/protocol.js +146 -0
- package/package.json +181 -4
- package/packages/bun/README.md +69 -0
- package/packages/core/README.md +78 -0
- package/packages/core/bin/atlas.mjs +8 -0
- package/packages/detox/README.md +73 -0
- package/packages/playwright/README.md +77 -0
- package/packages/reports/README.md +47 -0
- package/packages/reports/STORAGE.md +73 -0
- package/packages/schema/README.md +23 -0
- package/packages/schema/schemas/atlas-change.schema.json +34 -0
- package/packages/schema/schemas/atlas.schema.json +32 -0
- package/packages/schema/schemas/cloud-event.schema.json +40 -0
- package/packages/schema/schemas/journeys.schema.json +17 -0
- package/packages/schema/schemas/manifest.schema.json +160 -0
- package/packages/schema/schemas/path-record.schema.json +151 -0
- package/packages/schema/schemas/report-sources.schema.json +95 -0
- package/packages/schema/schemas/run-info.schema.json +176 -0
- package/packages/schema/schemas/run-summary.schema.json +206 -0
- package/packages/schema/schemas/runs-index.schema.json +23 -0
- package/packages/schema/schemas/state-node.schema.json +238 -0
- package/packages/schema/schemas/state-record.schema.json +354 -0
- package/packages/schema/schemas/timeline-entry.schema.json +124 -0
- package/packages/schema/schemas/transition-record.schema.json +125 -0
- package/packages/visualizer/README.md +154 -0
- package/packages/visualizer/bin/atlas-visualizer.mjs +176 -0
- package/packages/visualizer/example/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/example/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/example/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/example/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/example/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +245 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +2003 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +17 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +13 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/failed-01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/failures/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/failures/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/ctrf.json +247 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-02T09-10-00-000Z-fast/manifest.json +1875 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/ctrf.json +244 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/junit.xml +12 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/manifest.json +1977 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/005.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/captions/006.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-04T16-20-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +472 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +16 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +3701 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/006.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/007.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/008.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/009.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/010.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/011.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/012.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/013.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/014.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/015.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/016.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/017.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/018.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/019.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/020.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/021.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/022.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/023.vtt +17 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/024.vtt +13 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/025.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/026.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/027.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/028.vtt +9 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.mp4 +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/04.poster.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/06.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/07.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/08.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/09.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/10.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/11.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/12.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/13.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/14.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-4/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-5/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-6/01.webp +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.png +0 -0
- package/packages/visualizer/fixtures/full/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-7/01.webp +0 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/full/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/ctrf.json +1280 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/junit.xml +26 -0
- package/packages/visualizer/fixtures/large/runs/2026-10-06T14-40-00-000Z-fast/manifest.json +28393 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/identity-check.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/large/specs/accounts/sign-up/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/atlas.yaml +65 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/billing/invoices/refund-handling.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/journeys.yaml +126 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/machine.yaml +831 -0
- package/packages/visualizer/fixtures/large/specs/catalog/browsing/product-comparison.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/journeys.yaml +120 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/machine.yaml +724 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/open-questions.md +16 -0
- package/packages/visualizer/fixtures/large/specs/orders/checkout/payment.scxml +288 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/delivery-scheduling.machine.yaml +397 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/journeys.yaml +132 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/known-issues.md +13 -0
- package/packages/visualizer/fixtures/large/specs/shipping/deliveries/machine.yaml +830 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/escalation.machine.yaml +395 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/journeys.yaml +123 -0
- package/packages/visualizer/fixtures/large/specs/support/tickets/machine.yaml +720 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T10-00-00-000Z-showcase/manifest.json +68 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T11-00-00-000Z-showcase/manifest.json +1281 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/ctrf.json +50 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/junit.xml +6 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T12-00-00-000Z-showcase/manifest.json +1232 -0
- package/packages/visualizer/fixtures/malformed/runs/2026-10-06T13-00-00-000Z-showcase/manifest.json +1244 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/journeys.yaml +134 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/loyalty.scxml +4 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/machine.yaml +156 -0
- package/packages/visualizer/fixtures/malformed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/chart.mmd +67 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +149 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1718 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +17 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/005.vtt +9 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.mp4 +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/03.poster.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/05.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-3/01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/00-start-01.webp +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/partial/runs/2026-10-06T15-05-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/partial/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/ctrf.json +79 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/junit.xml +7 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/manifest.json +1504 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/001.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/002.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/003.vtt +9 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/captions/004.vtt +17 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/01.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.mp4 +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/clips/journey-1/02.poster.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/02.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/03.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-1/04.webp +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.png +0 -0
- package/packages/visualizer/fixtures/removed/runs/2026-10-06T14-40-00-000Z-showcase/media/paths/journey-2/01.webp +0 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/removed/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/fixtures/spec-only/runs/.gitkeep +0 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/checkout.scxml +82 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/journeys.yaml +129 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/known-issues.md +14 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/machine.yaml +158 -0
- package/packages/visualizer/fixtures/spec-only/specs/coffee/ordering/open-questions.md +25 -0
- package/packages/visualizer/index.html +13 -0
- package/packages/visualizer/scripts/make-fixtures.ts +1490 -0
- package/packages/visualizer/scripts/publish-data.ts +22 -0
- package/packages/visualizer/src/app/AppShell.tsx +56 -0
- package/packages/visualizer/src/app/atlas-context.tsx +23 -0
- package/packages/visualizer/src/app/gazetteer.module.css +97 -0
- package/packages/visualizer/src/app/gazetteer.tsx +105 -0
- package/packages/visualizer/src/app/report-sources.tsx +122 -0
- package/packages/visualizer/src/app/router.tsx +69 -0
- package/packages/visualizer/src/app/search-query.tsx +14 -0
- package/packages/visualizer/src/components/DataIssues.module.css +136 -0
- package/packages/visualizer/src/components/DataIssues.tsx +70 -0
- package/packages/visualizer/src/components/Header.module.css +189 -0
- package/packages/visualizer/src/components/Header.tsx +127 -0
- package/packages/visualizer/src/components/Legend.module.css +84 -0
- package/packages/visualizer/src/components/Legend.tsx +50 -0
- package/packages/visualizer/src/components/Screen.module.css +312 -0
- package/packages/visualizer/src/components/Screen.tsx +141 -0
- package/packages/visualizer/src/components/Status.module.css +116 -0
- package/packages/visualizer/src/components/Status.tsx +60 -0
- package/packages/visualizer/src/components/icons.tsx +156 -0
- package/packages/visualizer/src/components/labels.tsx +22 -0
- package/packages/visualizer/src/data/adapters/adapter.ts +112 -0
- package/packages/visualizer/src/data/adapters/context.tsx +11 -0
- package/packages/visualizer/src/data/adapters/index.ts +29 -0
- package/packages/visualizer/src/data/adapters/report-backend.test.ts +96 -0
- package/packages/visualizer/src/data/adapters/report-backend.ts +42 -0
- package/packages/visualizer/src/data/fixtures.test.ts +407 -0
- package/packages/visualizer/src/data/model/build.ts +418 -0
- package/packages/visualizer/src/data/model/event-kind.test.ts +59 -0
- package/packages/visualizer/src/data/model/event-kind.ts +54 -0
- package/packages/visualizer/src/data/model/index.ts +3 -0
- package/packages/visualizer/src/data/model/journeys.test.ts +159 -0
- package/packages/visualizer/src/data/model/journeys.ts +29 -0
- package/packages/visualizer/src/data/model/simulation.test.ts +115 -0
- package/packages/visualizer/src/data/model/simulation.ts +187 -0
- package/packages/visualizer/src/data/model/status.test.ts +34 -0
- package/packages/visualizer/src/data/model/status.ts +43 -0
- package/packages/visualizer/src/data/model/types.ts +280 -0
- package/packages/visualizer/src/data/parse/issues.test.ts +82 -0
- package/packages/visualizer/src/data/parse/issues.ts +114 -0
- package/packages/visualizer/src/data/parse/manifest.ts +173 -0
- package/packages/visualizer/src/data/parse/markdown.test.ts +119 -0
- package/packages/visualizer/src/data/parse/markdown.ts +133 -0
- package/packages/visualizer/src/data/parse/spec.test.ts +106 -0
- package/packages/visualizer/src/data/parse/spec.ts +557 -0
- package/packages/visualizer/src/data/parse/structured.ts +44 -0
- package/packages/visualizer/src/data/queries.ts +369 -0
- package/packages/visualizer/src/data/testing/load-fixture.ts +63 -0
- package/packages/visualizer/src/evidence/api.ts +41 -0
- package/packages/visualizer/src/evidence/check-detail.tsx +257 -0
- package/packages/visualizer/src/evidence/decision-table.tsx +68 -0
- package/packages/visualizer/src/evidence/document-page.tsx +40 -0
- package/packages/visualizer/src/evidence/evidence-context.tsx +159 -0
- package/packages/visualizer/src/evidence/evidence.module.css +877 -0
- package/packages/visualizer/src/evidence/feature-page.tsx +88 -0
- package/packages/visualizer/src/evidence/format.ts +56 -0
- package/packages/visualizer/src/evidence/gherkin.ts +98 -0
- package/packages/visualizer/src/evidence/marks.tsx +118 -0
- package/packages/visualizer/src/evidence/model-page.tsx +60 -0
- package/packages/visualizer/src/evidence/model-trace.tsx +57 -0
- package/packages/visualizer/src/evidence/overview.tsx +134 -0
- package/packages/visualizer/src/evidence/quint.ts +45 -0
- package/packages/visualizer/src/evidence/recording-page.tsx +69 -0
- package/packages/visualizer/src/evidence/recording.module.css +464 -0
- package/packages/visualizer/src/evidence/recording.tsx +197 -0
- package/packages/visualizer/src/evidence/snapshot.tsx +108 -0
- package/packages/visualizer/src/evidence/sources-panel.tsx +134 -0
- package/packages/visualizer/src/evidence/sources.module.css +168 -0
- package/packages/visualizer/src/evidence/spec-header.tsx +64 -0
- package/packages/visualizer/src/evidence/spec-index.tsx +82 -0
- package/packages/visualizer/src/evidence/spec-page.tsx +92 -0
- package/packages/visualizer/src/evidence/spec-snapshot.tsx +26 -0
- package/packages/visualizer/src/layout/graph.test.ts +113 -0
- package/packages/visualizer/src/layout/graph.ts +324 -0
- package/packages/visualizer/src/layout/layout.ts +237 -0
- package/packages/visualizer/src/layout/use-chart-layout.ts +18 -0
- package/packages/visualizer/src/main.tsx +31 -0
- package/packages/visualizer/src/map/ChartMap.tsx +252 -0
- package/packages/visualizer/src/map/EventEdge.tsx +138 -0
- package/packages/visualizer/src/map/map.module.css +546 -0
- package/packages/visualizer/src/map/nodes.tsx +145 -0
- package/packages/visualizer/src/map/path.ts +24 -0
- package/packages/visualizer/src/reachable.test.ts +54 -0
- package/packages/visualizer/src/spec-kind.test.ts +27 -0
- package/packages/visualizer/src/spec-kind.ts +56 -0
- package/packages/visualizer/src/state/ui-store.ts +44 -0
- package/packages/visualizer/src/styles/global.css +105 -0
- package/packages/visualizer/src/styles/tokens.css +80 -0
- package/packages/visualizer/src/views/ChartPage.tsx +52 -0
- package/packages/visualizer/src/views/ProductPage.tsx +35 -0
- package/packages/visualizer/src/views/SidePanel.tsx +339 -0
- package/packages/visualizer/src/views/views.module.css +546 -0
- package/packages/visualizer/vite/atlas-dev-plugin.ts +169 -0
- package/packages/visualizer/vite/atlas-files.test.ts +119 -0
- package/packages/visualizer/vite/atlas-files.ts +199 -0
- package/packages/visualizer/vite/publish.test.ts +52 -0
- package/packages/visualizer/vite/publish.ts +99 -0
- package/packages/visualizer/vite/reports-dev-plugin.ts +82 -0
- package/packages/visualizer/vite.config.ts +13 -0
- package/packages/vitest/README.md +58 -0
- package/packages/webdriver/README.md +77 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { addSummaries, NO_EVIDENCE, type SpecSummary } from '@crvouga/atlas/reports/evidence-view';
|
|
2
|
+
import { Link, useSearch } from '@tanstack/react-router';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
import { useSearchQuery } from '../app/search-query';
|
|
6
|
+
import { folderOf, outlinePath, specFile, type SpecKind } from '../spec-kind';
|
|
7
|
+
import { useUiStore, type ResultFilter } from '../state/ui-store';
|
|
8
|
+
import { useEvidence } from './evidence-context';
|
|
9
|
+
import styles from './evidence.module.css';
|
|
10
|
+
import { StatusMark, Tally } from './marks';
|
|
11
|
+
|
|
12
|
+
const FILTERS: readonly { readonly id: ResultFilter; readonly label: string; readonly keeps: (summary: SpecSummary) => boolean }[] = [
|
|
13
|
+
{ id: 'all', label: 'All', keeps: () => true },
|
|
14
|
+
{ id: 'results', label: 'Results', keeps: (summary) => summary.status !== 'none' },
|
|
15
|
+
{ id: 'failed', label: 'Failing', keeps: (summary) => summary.counts.failed > 0 },
|
|
16
|
+
{ id: 'none', label: 'None', keeps: (summary) => summary.status === 'none' }
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
function hit(query: string, text: string) {
|
|
20
|
+
const needle = query.trim().toLowerCase();
|
|
21
|
+
return needle.length === 0 || text.toLowerCase().includes(needle);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Every spec of one kind, grouped by folder, each with what the combined report holds for it. */
|
|
25
|
+
export function SpecIndex({ kind }: { kind: SpecKind }) {
|
|
26
|
+
const evidence = useEvidence();
|
|
27
|
+
const { query } = useSearchQuery();
|
|
28
|
+
const search = useSearch({ strict: false });
|
|
29
|
+
const filter = useUiStore((s) => s.resultFilter);
|
|
30
|
+
const setFilter = useUiStore((s) => s.setResultFilter);
|
|
31
|
+
const open = typeof search.spec === 'string' ? specFile(search.spec) : '';
|
|
32
|
+
const rows = useMemo(
|
|
33
|
+
() => evidence.files.filter(kind.accepts).map((file) => ({ file, title: evidence.titleOf(file), summary: evidence.view.specs.get(outlinePath(file))?.summary ?? NO_EVIDENCE })),
|
|
34
|
+
// `titleOf` reads the outline the view was built from.
|
|
35
|
+
[evidence.files, evidence.view, kind]
|
|
36
|
+
);
|
|
37
|
+
const searched = rows.filter((row) => hit(query, `${row.title} ${row.file}`));
|
|
38
|
+
const keeps = FILTERS.find((entry) => entry.id === filter)!.keeps;
|
|
39
|
+
const visible = searched.filter((row) => keeps(row.summary));
|
|
40
|
+
const groups = useMemo(() => {
|
|
41
|
+
const byFolder = new Map<string, typeof visible>();
|
|
42
|
+
for (const row of visible) byFolder.set(folderOf(row.file), [...(byFolder.get(folderOf(row.file)) ?? []), row]);
|
|
43
|
+
return [...byFolder];
|
|
44
|
+
}, [visible]);
|
|
45
|
+
return (
|
|
46
|
+
<nav className={styles.index} aria-label={`${kind.label} ${kind.many}`}>
|
|
47
|
+
<div className={styles.filters} role="group" aria-label="Show">
|
|
48
|
+
{FILTERS.map((entry) => (
|
|
49
|
+
<button key={entry.id} type="button" aria-pressed={filter === entry.id} onClick={() => setFilter(entry.id)}>
|
|
50
|
+
{entry.label} <span>{searched.filter((row) => entry.keeps(row.summary)).length}</span>
|
|
51
|
+
</button>
|
|
52
|
+
))}
|
|
53
|
+
</div>
|
|
54
|
+
{evidence.filesPending && <p className={styles.indexNote}>Loading…</p>}
|
|
55
|
+
{evidence.filesError && <p className={styles.indexNote}>The file list could not be loaded.</p>}
|
|
56
|
+
{!evidence.filesPending && !evidence.filesError && visible.length === 0 && (
|
|
57
|
+
<p className={styles.indexNote}>
|
|
58
|
+
{rows.length === 0 ? `No ${kind.many} in this spec set.` : query.trim() ? 'Nothing matches.' : filter === 'failed' ? `No failing ${kind.many}.` : filter === 'results' ? `No ${kind.many} with results yet.` : `Every ${kind.one} has results.`}
|
|
59
|
+
</p>
|
|
60
|
+
)}
|
|
61
|
+
{groups.map(([folder, entries]) => (
|
|
62
|
+
<section key={folder || kind.id}>
|
|
63
|
+
<h3>
|
|
64
|
+
<span>{folder || kind.label}</span>
|
|
65
|
+
<Tally summary={addSummaries(entries.map((row) => row.summary))} />
|
|
66
|
+
</h3>
|
|
67
|
+
<ul>
|
|
68
|
+
{entries.map((row) => (
|
|
69
|
+
<li key={row.file}>
|
|
70
|
+
<Link className={styles.indexRow} to="/specs/$kind" params={{ kind: kind.id }} search={{ spec: row.file }} title={row.file} aria-current={open === row.file ? 'page' : undefined} data-result={row.summary.status}>
|
|
71
|
+
<StatusMark status={row.summary.status} size={14} />
|
|
72
|
+
<span className={styles.indexName}>{row.title}</span>
|
|
73
|
+
{row.summary.status !== 'none' && <Tally summary={row.summary} />}
|
|
74
|
+
</Link>
|
|
75
|
+
</li>
|
|
76
|
+
))}
|
|
77
|
+
</ul>
|
|
78
|
+
</section>
|
|
79
|
+
))}
|
|
80
|
+
</nav>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { useNavigate, useParams, useSearch } from '@tanstack/react-router';
|
|
3
|
+
|
|
4
|
+
import { keys, specKey, useAdapter } from '../data/queries';
|
|
5
|
+
import { outlinePath, specFile, specKind } from '../spec-kind';
|
|
6
|
+
import type { SelectCheck } from './check-detail';
|
|
7
|
+
import { DocumentPage } from './document-page';
|
|
8
|
+
import { useEvidence } from './evidence-context';
|
|
9
|
+
import styles from './evidence.module.css';
|
|
10
|
+
import { FeaturePage } from './feature-page';
|
|
11
|
+
import { ModelPage } from './model-page';
|
|
12
|
+
import { Overview } from './overview';
|
|
13
|
+
import { RecordingPage } from './recording-page';
|
|
14
|
+
|
|
15
|
+
/** One spec tab: its overview, one of its documents, or a recording opened from that document. */
|
|
16
|
+
export function SpecPage() {
|
|
17
|
+
const params = useParams({ from: '/specs/$kind' });
|
|
18
|
+
const search = useSearch({ from: '/specs/$kind' });
|
|
19
|
+
const navigate = useNavigate({ from: '/specs/$kind' });
|
|
20
|
+
const adapter = useAdapter();
|
|
21
|
+
const evidence = useEvidence();
|
|
22
|
+
const kind = specKind(params.kind);
|
|
23
|
+
const file = search.spec ? specFile(search.spec) : '';
|
|
24
|
+
const readable = kind !== null && file.length > 0 && kind.accepts(file);
|
|
25
|
+
const text = useQuery({ queryKey: keys.specFile(specKey(adapter), file), queryFn: () => adapter.specFile(file), enabled: readable, retry: false });
|
|
26
|
+
|
|
27
|
+
if (!kind) {
|
|
28
|
+
return (
|
|
29
|
+
<article className={styles.page}>
|
|
30
|
+
<h1 className={styles.title}>No such kind of spec</h1>
|
|
31
|
+
<p className={styles.aside}>Pick a tab above.</p>
|
|
32
|
+
</article>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
if (!file) return <Overview kind={kind} />;
|
|
36
|
+
if (!readable) {
|
|
37
|
+
return (
|
|
38
|
+
<article className={styles.page}>
|
|
39
|
+
<h1 className={styles.title}>{kind.label}</h1>
|
|
40
|
+
<p className={styles.aside}>This file is not a {kind.one}.</p>
|
|
41
|
+
</article>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const entry = evidence.view.specs.get(outlinePath(file));
|
|
46
|
+
const select: SelectCheck = (patch) => {
|
|
47
|
+
const value = <T,>(next: T | null | undefined, current: T | undefined) => (next === undefined ? current : (next ?? undefined));
|
|
48
|
+
void navigate({
|
|
49
|
+
search: (prev) => ({
|
|
50
|
+
...prev,
|
|
51
|
+
check: value(patch.check, prev.check),
|
|
52
|
+
layer: value(patch.layer, prev.layer),
|
|
53
|
+
view: value(patch.view, prev.view),
|
|
54
|
+
// Opening or leaving a recording starts from its usual moment.
|
|
55
|
+
moment: patch.view === undefined ? prev.moment : undefined
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
if (search.view === 'recording' && search.check) {
|
|
61
|
+
const slot = entry?.slots.find((candidate) => candidate.id === search.check);
|
|
62
|
+
// The way back already names the spec; the heading is the check itself.
|
|
63
|
+
const spec = `${evidence.titleOf(file)}: `;
|
|
64
|
+
const label = slot ? (slot.title.startsWith(spec) ? slot.title.slice(spec.length) : slot.title) : 'Recorded test';
|
|
65
|
+
return (
|
|
66
|
+
<RecordingPage
|
|
67
|
+
slot={slot}
|
|
68
|
+
layerId={search.layer}
|
|
69
|
+
label={label}
|
|
70
|
+
back={evidence.titleOf(file)}
|
|
71
|
+
moment={search.moment ?? null}
|
|
72
|
+
onMoment={(moment, replace) => void navigate({ search: (prev) => ({ ...prev, moment }), replace })}
|
|
73
|
+
onClose={() => select({ view: null })}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
if (text.isPending) return <article className={styles.page}><p className={styles.aside} role="status">Loading the {kind.one}…</p></article>;
|
|
78
|
+
if (text.isError) {
|
|
79
|
+
return (
|
|
80
|
+
<article className={styles.page}>
|
|
81
|
+
<p className={styles.notice} role="alert">
|
|
82
|
+
The {kind.one} could not be read.{' '}
|
|
83
|
+
<button type="button" className={styles.link} onClick={() => void text.refetch()}>Try again</button>
|
|
84
|
+
</p>
|
|
85
|
+
</article>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
const page = { file, text: text.data, kind, entry, selection: { check: search.check, layer: search.layer }, select };
|
|
89
|
+
if (kind.id === 'gherkin') return <FeaturePage {...page} />;
|
|
90
|
+
if (kind.id === 'quint') return <ModelPage {...page} />;
|
|
91
|
+
return <DocumentPage {...page} />;
|
|
92
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styles from './evidence.module.css';
|
|
2
|
+
|
|
3
|
+
/** A fixed-size visual summary made from the spec itself, available before any run exists. */
|
|
4
|
+
export function SpecSnapshot({ title, text, kind }: { title: string; text: string; kind: string }) {
|
|
5
|
+
const lines = text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).slice(0, 4);
|
|
6
|
+
return (
|
|
7
|
+
<figure className={styles.specSnapshot}>
|
|
8
|
+
<figcaption>Spec snapshot <span>Generated from {kind} source</span></figcaption>
|
|
9
|
+
<svg className={styles.specSnapshotImage} viewBox="0 0 960 260" role="img" aria-label={`Visual summary of ${title}`}>
|
|
10
|
+
<rect width="960" height="260" rx="18" />
|
|
11
|
+
<text className={styles.snapshotTitle} x="32" y="52">{title}</text>
|
|
12
|
+
{lines.map((line, index) => {
|
|
13
|
+
const y = 90 + index * 40;
|
|
14
|
+
return (
|
|
15
|
+
<g key={`${index}-${line}`}>
|
|
16
|
+
<circle cx="42" cy={y - 5} r="5" />
|
|
17
|
+
<rect className={styles.snapshotLine} x="60" y={y - 15} width="868" height="28" rx="7" />
|
|
18
|
+
<text className={styles.snapshotText} x="76" y={y + 4}>{line.slice(0, 112)}{line.length > 112 ? '…' : ''}</text>
|
|
19
|
+
</g>
|
|
20
|
+
);
|
|
21
|
+
})}
|
|
22
|
+
{lines.length === 0 && <text className={styles.snapshotText} x="32" y="112">No readable source lines</text>}
|
|
23
|
+
</svg>
|
|
24
|
+
</figure>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { describe, expect, it } from 'bun:test';
|
|
2
|
+
|
|
3
|
+
import { buildAtlasView } from '../data/model';
|
|
4
|
+
import { parseSpec } from '../data/parse/spec';
|
|
5
|
+
import { loadFixture } from '../data/testing/load-fixture';
|
|
6
|
+
import { MAP_PLACE_CAP, chartGraph, mapScope } from './graph';
|
|
7
|
+
|
|
8
|
+
function viewFrom(yaml: string) {
|
|
9
|
+
const spec = parseSpec({ ref: null, files: [{ path: 'wide.machine.yaml', text: yaml }] });
|
|
10
|
+
return buildAtlasView({ spec, specIssues: [], runs: [], run: null, runIssues: [], resolveMedia: () => '' });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function places(count: number, id: string) {
|
|
14
|
+
const states = Array.from({ length: count }, (_, i) => ` P${i}: {}`).join('\n');
|
|
15
|
+
return `id: ${id}\ninitial: Root\nstates:\n Root:\n initial: P0\n states:\n${states}\n`;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function wideMachine() {
|
|
19
|
+
const big = Array.from({ length: 30 }, (_, i) => (i === 0 ? ` B0:\n on:\n Goes:\n target: '#B1'` : ` B${i}: {}`)).join('\n');
|
|
20
|
+
return `id: Wide
|
|
21
|
+
initial: Root
|
|
22
|
+
states:
|
|
23
|
+
Root:
|
|
24
|
+
initial: Big
|
|
25
|
+
states:
|
|
26
|
+
Big:
|
|
27
|
+
initial: B0
|
|
28
|
+
states:
|
|
29
|
+
${big}
|
|
30
|
+
Small:
|
|
31
|
+
initial: S0
|
|
32
|
+
states:
|
|
33
|
+
S0:
|
|
34
|
+
on:
|
|
35
|
+
Leaves:
|
|
36
|
+
target: '#B0'
|
|
37
|
+
Leaves again:
|
|
38
|
+
target: '#B1'
|
|
39
|
+
S1: {}
|
|
40
|
+
Alone:
|
|
41
|
+
on:
|
|
42
|
+
Waves:
|
|
43
|
+
target: '#S0'
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
describe('chart map scope', () => {
|
|
48
|
+
const view = viewFrom(wideMachine());
|
|
49
|
+
|
|
50
|
+
it('draws one layer of a large chart instead of every nested screen', () => {
|
|
51
|
+
const graph = chartGraph(view, 'Wide');
|
|
52
|
+
expect(graph?.mode).toBe('level');
|
|
53
|
+
expect(graph?.focus).toBe('Root');
|
|
54
|
+
expect(graph?.scoped).toBe(true);
|
|
55
|
+
expect(graph?.nodes.map((node) => [node.id, node.kind, node.places])).toEqual([
|
|
56
|
+
['Big', 'summary', 30],
|
|
57
|
+
['Small', 'summary', 2],
|
|
58
|
+
['Alone', 'screen', undefined]
|
|
59
|
+
]);
|
|
60
|
+
expect(graph?.nodes.some((node) => node.id === 'B0')).toBe(false);
|
|
61
|
+
const bundle = graph?.edges.find((edge) => edge.bundle);
|
|
62
|
+
expect(bundle).toMatchObject({ source: 'Small', target: 'Big', bundle: { label: '2 events', count: 2, group: 'Big', screen: null } });
|
|
63
|
+
expect(graph?.edges.find((edge) => edge.transitionId)?.source).toBe('Alone');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('opens a large section as its own layer and a small section in full', () => {
|
|
67
|
+
const big = chartGraph(view, 'Wide', 'Big');
|
|
68
|
+
expect(big?.mode).toBe('level');
|
|
69
|
+
expect(big?.nodes).toHaveLength(30);
|
|
70
|
+
expect(big?.nodes.every((node) => node.kind === 'screen')).toBe(true);
|
|
71
|
+
expect(big?.nodes.map((node) => node.id)).toContain('B0');
|
|
72
|
+
expect(big?.edges.map((edge) => edge.transitionId).filter(Boolean)).toEqual([expect.stringContaining('Goes')]);
|
|
73
|
+
|
|
74
|
+
const small = chartGraph(view, 'Wide', 'Small');
|
|
75
|
+
expect(small?.mode).toBe('subtree');
|
|
76
|
+
expect(small?.nodes.map((node) => node.id)).toEqual(expect.arrayContaining(['Small', 'S0', 'S1', 'B0', 'B1']));
|
|
77
|
+
expect(small?.nodes.map((node) => node.id)).not.toContain('B29');
|
|
78
|
+
expect(small?.nodes.find((node) => node.id === 'B0')?.kind).toBe('context');
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('sends a place to the section that can draw it', () => {
|
|
82
|
+
expect(mapScope(view, 'Wide', 'S0')).toBe('Small');
|
|
83
|
+
expect(mapScope(view, 'Wide', 'B0')).toBe('Big');
|
|
84
|
+
expect(mapScope(view, 'Wide', 'Small')).toBe('Small');
|
|
85
|
+
expect(mapScope(view, 'Wide', 'Big')).toBe('Big');
|
|
86
|
+
expect(chartGraph(view, 'Wide', 'missing')?.focus).toBe('Root');
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('keeps a chart at the place cap fully expanded', () => {
|
|
90
|
+
const capped = viewFrom(places(MAP_PLACE_CAP, 'Cap'));
|
|
91
|
+
const graph = chartGraph(capped, 'Cap');
|
|
92
|
+
expect(graph?.mode).toBe('full');
|
|
93
|
+
expect(graph?.scoped).toBe(false);
|
|
94
|
+
expect(graph?.nodes.map((node) => node.id)).toContain('Root');
|
|
95
|
+
expect(graph?.nodes.map((node) => node.id)).toContain(`P${MAP_PLACE_CAP - 1}`);
|
|
96
|
+
expect(graph?.nodes.some((node) => node.kind === 'summary')).toBe(false);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
describe('coffee chart map', () => {
|
|
101
|
+
const { view } = loadFixture('spec-only');
|
|
102
|
+
|
|
103
|
+
it('still draws every state of a small chart', () => {
|
|
104
|
+
const graph = chartGraph(view, 'Coffee order');
|
|
105
|
+
const names = [...view.states.values()].filter((state) => state.chartId === 'Coffee order').map((state) => state.name);
|
|
106
|
+
expect(graph?.mode).toBe('full');
|
|
107
|
+
expect(graph?.scoped).toBe(false);
|
|
108
|
+
expect(graph?.nodes.some((node) => node.kind === 'summary')).toBe(false);
|
|
109
|
+
for (const name of names) expect(graph?.nodes.map((node) => node.id)).toContain(name);
|
|
110
|
+
expect(graph?.edges.every((edge) => edge.bundle === null)).toBe(true);
|
|
111
|
+
expect(mapScope(view, 'Coffee order', 'Browsing the menu')).toBeNull();
|
|
112
|
+
});
|
|
113
|
+
});
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { worstOf, type AtlasView, type ChartView, type ItemStatus, type StateView, type TransitionView } from '../data/model';
|
|
2
|
+
|
|
3
|
+
export const SIZES = {
|
|
4
|
+
screen: { width: 156, height: 372 },
|
|
5
|
+
context: { width: 132, height: 132 },
|
|
6
|
+
chartLink: { width: 280, height: 200 },
|
|
7
|
+
summary: { width: 220, height: 96 },
|
|
8
|
+
chip: { height: 28, minWidth: 64, maxWidth: 240, perChar: 6.3, padding: 46 },
|
|
9
|
+
groupPadding: { top: 48, left: 24, bottom: 24, right: 24 }
|
|
10
|
+
} as const;
|
|
11
|
+
|
|
12
|
+
/** A section with more places than this is drawn as one layer of boxes, not every nested screen. */
|
|
13
|
+
export const MAP_PLACE_CAP = 24;
|
|
14
|
+
|
|
15
|
+
export type LayoutNodeKind = 'screen' | 'group' | 'region' | 'parallel' | 'chart-link' | 'context' | 'summary';
|
|
16
|
+
|
|
17
|
+
export type LayoutNode = {
|
|
18
|
+
id: string;
|
|
19
|
+
parent: string | null;
|
|
20
|
+
kind: LayoutNodeKind;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
/** Atomic screens inside a collapsed box. */
|
|
24
|
+
places?: number;
|
|
25
|
+
/** Rolled-up status of those screens. A failure anywhere shows on the box. */
|
|
26
|
+
status?: ItemStatus;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type LayoutBundle = {
|
|
30
|
+
label: string;
|
|
31
|
+
status: ItemStatus;
|
|
32
|
+
count: number;
|
|
33
|
+
group: string | null;
|
|
34
|
+
screen: string | null;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type LayoutEdge = {
|
|
38
|
+
id: string;
|
|
39
|
+
transitionId: string | null;
|
|
40
|
+
source: string;
|
|
41
|
+
target: string;
|
|
42
|
+
labelWidth: number;
|
|
43
|
+
bundle: LayoutBundle | null;
|
|
44
|
+
/** Transitions folded into a bundle, so a journey can still dim the chip. */
|
|
45
|
+
memberIds?: string[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type LayoutInput = {
|
|
49
|
+
chartId: string;
|
|
50
|
+
key: string;
|
|
51
|
+
nodes: LayoutNode[];
|
|
52
|
+
edges: LayoutEdge[];
|
|
53
|
+
/** A committed layout file describes the whole chart, so a scoped map ignores it. */
|
|
54
|
+
scoped: boolean;
|
|
55
|
+
focus: string | null;
|
|
56
|
+
mode: 'full' | 'subtree' | 'level';
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type MapFrame = {
|
|
60
|
+
mode: 'full' | 'subtree' | 'level';
|
|
61
|
+
focus: string | null;
|
|
62
|
+
scoped: boolean;
|
|
63
|
+
/** Parent of the focused section. The wider map draws that parent. */
|
|
64
|
+
wider: string | null;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export function chipWidth(text: string) {
|
|
68
|
+
const { minWidth, maxWidth, perChar, padding } = SIZES.chip;
|
|
69
|
+
return Math.round(Math.min(maxWidth, Math.max(minWidth, padding + text.length * perChar)));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function isPlace(state: StateView) {
|
|
73
|
+
return state.kind === 'screen' || state.kind === 'final' || state.kind === 'chart-link';
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function placeCount(view: AtlasView, name: string, memo: Map<string, number>): number {
|
|
77
|
+
const hit = memo.get(name);
|
|
78
|
+
if (hit !== undefined) return hit;
|
|
79
|
+
const state = view.states.get(name);
|
|
80
|
+
if (!state || state.kind === 'chart-link') {
|
|
81
|
+
memo.set(name, 0);
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
if (state.kind === 'screen' || state.kind === 'final') {
|
|
85
|
+
memo.set(name, 1);
|
|
86
|
+
return 1;
|
|
87
|
+
}
|
|
88
|
+
let count = 0;
|
|
89
|
+
for (const child of state.children) count += placeCount(view, child, memo);
|
|
90
|
+
memo.set(name, count);
|
|
91
|
+
return count;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function chartPlaces(view: AtlasView, chart: ChartView, memo: Map<string, number>) {
|
|
95
|
+
return chart.rootStates.reduce((count, name) => count + placeCount(view, name, memo), 0);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function autoFocus(view: AtlasView, chart: ChartView, memo: Map<string, number>) {
|
|
99
|
+
if (chart.rootStates.length !== 1) return null;
|
|
100
|
+
const name = chart.rootStates[0]!;
|
|
101
|
+
const state = view.states.get(name);
|
|
102
|
+
if (!state || isPlace(state) || placeCount(view, name, memo) <= MAP_PLACE_CAP) return null;
|
|
103
|
+
return name;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Which section the map draws. A small chart is always the whole chart. */
|
|
107
|
+
export function mapFrame(view: AtlasView, chartId: string, requested: string | null): MapFrame {
|
|
108
|
+
const chart = view.charts.get(chartId);
|
|
109
|
+
const whole: MapFrame = { mode: 'full', focus: null, scoped: false, wider: null };
|
|
110
|
+
if (!chart) return whole;
|
|
111
|
+
const memo = new Map<string, number>();
|
|
112
|
+
if (chartPlaces(view, chart, memo) <= MAP_PLACE_CAP) return whole;
|
|
113
|
+
const auto = autoFocus(view, chart, memo);
|
|
114
|
+
let focus = requested;
|
|
115
|
+
const requestedState = focus ? view.states.get(focus) : undefined;
|
|
116
|
+
if (!requestedState || requestedState.chartId !== chartId) focus = auto;
|
|
117
|
+
else if (isPlace(requestedState)) {
|
|
118
|
+
const parent = requestedState.parent ? view.states.get(requestedState.parent) : undefined;
|
|
119
|
+
focus = parent && parent.chartId === chartId ? parent.name : auto;
|
|
120
|
+
}
|
|
121
|
+
if (!focus) return { mode: 'level', focus: null, scoped: true, wider: null };
|
|
122
|
+
const state = view.states.get(focus);
|
|
123
|
+
if (!state) return { mode: 'level', focus: null, scoped: true, wider: null };
|
|
124
|
+
const wider = state.parent && view.states.get(state.parent)?.chartId === chartId ? state.parent : null;
|
|
125
|
+
if (placeCount(view, focus, memo) <= MAP_PLACE_CAP) return { mode: 'subtree', focus, scoped: true, wider };
|
|
126
|
+
return { mode: 'level', focus, scoped: true, wider };
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The section a place belongs on. Null when the whole chart is small enough to draw.
|
|
131
|
+
* A place inside a small section opens that section. A place inside a large section
|
|
132
|
+
* opens the section, one layer at a time.
|
|
133
|
+
*/
|
|
134
|
+
export function mapScope(view: AtlasView, chartId: string, stateName: string): string | null {
|
|
135
|
+
const chart = view.charts.get(chartId);
|
|
136
|
+
const state = view.states.get(stateName);
|
|
137
|
+
if (!chart || !state || state.chartId !== chartId) return null;
|
|
138
|
+
const memo = new Map<string, number>();
|
|
139
|
+
if (chartPlaces(view, chart, memo) <= MAP_PLACE_CAP) return null;
|
|
140
|
+
if (!isPlace(state)) return state.name;
|
|
141
|
+
let node = state;
|
|
142
|
+
while (node.parent) {
|
|
143
|
+
const parent = view.states.get(node.parent);
|
|
144
|
+
if (!parent || parent.chartId !== chartId) break;
|
|
145
|
+
if (placeCount(view, parent.name, memo) > MAP_PLACE_CAP) break;
|
|
146
|
+
node = parent;
|
|
147
|
+
}
|
|
148
|
+
if (node !== state) return node.name;
|
|
149
|
+
return state.parent;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function nodeKind(state: StateView): LayoutNodeKind {
|
|
153
|
+
switch (state.kind) {
|
|
154
|
+
case 'chart-link':
|
|
155
|
+
return 'chart-link';
|
|
156
|
+
case 'group':
|
|
157
|
+
return 'group';
|
|
158
|
+
case 'region':
|
|
159
|
+
return 'region';
|
|
160
|
+
case 'parallel':
|
|
161
|
+
return 'parallel';
|
|
162
|
+
default:
|
|
163
|
+
return 'screen';
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function rollup(view: AtlasView, name: string): ItemStatus {
|
|
168
|
+
const statuses: ItemStatus[] = [];
|
|
169
|
+
const walk = (id: string) => {
|
|
170
|
+
const state = view.states.get(id);
|
|
171
|
+
if (!state) return;
|
|
172
|
+
if (state.kind === 'screen' || state.kind === 'final') statuses.push(state.status);
|
|
173
|
+
else for (const child of state.children) walk(child);
|
|
174
|
+
};
|
|
175
|
+
walk(name);
|
|
176
|
+
return worstOf(statuses, view.states.get(name)?.status ?? 'spec-only');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function expandGraph(view: AtlasView, chart: ChartView, focus: string | null, key: string, scoped: boolean, mode: 'full' | 'subtree'): LayoutInput {
|
|
180
|
+
const nodes: LayoutNode[] = [];
|
|
181
|
+
const visible = new Set<string>();
|
|
182
|
+
const add = (state: StateView, parent: string | null) => {
|
|
183
|
+
const kind = nodeKind(state);
|
|
184
|
+
const size = kind === 'chart-link' ? SIZES.chartLink : SIZES.screen;
|
|
185
|
+
nodes.push({ id: state.name, parent, kind, width: size.width, height: size.height });
|
|
186
|
+
visible.add(state.name);
|
|
187
|
+
if (kind === 'chart-link') return;
|
|
188
|
+
for (const child of state.children) {
|
|
189
|
+
const next = view.states.get(child);
|
|
190
|
+
if (next) add(next, state.name);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const roots = focus ? [focus] : chart.rootStates;
|
|
194
|
+
for (const name of roots) {
|
|
195
|
+
const state = view.states.get(name);
|
|
196
|
+
if (state) add(state, null);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const contextNode = (name: string) => {
|
|
200
|
+
if (visible.has(name) || !view.states.has(name)) return;
|
|
201
|
+
nodes.push({ id: name, parent: null, kind: 'context', width: SIZES.context.width, height: SIZES.context.height });
|
|
202
|
+
visible.add(name);
|
|
203
|
+
};
|
|
204
|
+
const edges: LayoutEdge[] = [];
|
|
205
|
+
const edge = (transitionId: string, source: string, target: string, event: string) => {
|
|
206
|
+
edges.push({ id: transitionId, transitionId, source, target, labelWidth: chipWidth(event), bundle: null });
|
|
207
|
+
};
|
|
208
|
+
for (const tid of chart.transitions) {
|
|
209
|
+
const transition = view.transitions.get(tid);
|
|
210
|
+
if (!transition?.target || !visible.has(transition.source)) continue;
|
|
211
|
+
if (!visible.has(transition.target)) contextNode(transition.target);
|
|
212
|
+
if (visible.has(transition.target)) edge(transition.id, transition.source, transition.target, transition.event);
|
|
213
|
+
}
|
|
214
|
+
if (chart.parent && chart.initial && visible.has(chart.initial)) {
|
|
215
|
+
for (const transition of view.transitions.values()) {
|
|
216
|
+
if (transition.target !== chart.parent.state || transition.chartId === chart.id) continue;
|
|
217
|
+
contextNode(transition.source);
|
|
218
|
+
edge(transition.id, transition.source, chart.initial, transition.event);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return { chartId: chart.id, key, nodes, edges, scoped, focus, mode };
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function lift(view: AtlasView, name: string, visible: Set<string>, focus: string | null) {
|
|
225
|
+
let current: string | null = name;
|
|
226
|
+
while (current) {
|
|
227
|
+
if (visible.has(current)) return current;
|
|
228
|
+
if (focus && current === focus) return null;
|
|
229
|
+
current = view.states.get(current)?.parent ?? null;
|
|
230
|
+
}
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function levelKind(state: StateView): LayoutNodeKind {
|
|
235
|
+
if (state.kind === 'chart-link') return 'chart-link';
|
|
236
|
+
if (state.kind === 'screen' || state.kind === 'final') return 'screen';
|
|
237
|
+
return 'summary';
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function levelSize(kind: LayoutNodeKind) {
|
|
241
|
+
if (kind === 'chart-link') return SIZES.chartLink;
|
|
242
|
+
if (kind === 'summary') return SIZES.summary;
|
|
243
|
+
return SIZES.screen;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** One layer: direct children are boxes, and events between the same pair share one chip. */
|
|
247
|
+
function levelGraph(view: AtlasView, chart: ChartView, focus: string | null, key: string): LayoutInput {
|
|
248
|
+
const memo = new Map<string, number>();
|
|
249
|
+
const childNames = focus ? (view.states.get(focus)?.children ?? []) : chart.rootStates;
|
|
250
|
+
const nodes: LayoutNode[] = [];
|
|
251
|
+
const visible = new Set<string>();
|
|
252
|
+
for (const name of childNames) {
|
|
253
|
+
const state = view.states.get(name);
|
|
254
|
+
if (!state) continue;
|
|
255
|
+
const kind = levelKind(state);
|
|
256
|
+
const size = levelSize(kind);
|
|
257
|
+
nodes.push({
|
|
258
|
+
id: name,
|
|
259
|
+
parent: null,
|
|
260
|
+
kind,
|
|
261
|
+
width: size.width,
|
|
262
|
+
height: size.height,
|
|
263
|
+
...(kind === 'summary' ? { places: placeCount(view, name, memo), status: rollup(view, name) } : {})
|
|
264
|
+
});
|
|
265
|
+
visible.add(name);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const groups = new Map<string, { source: string; target: string; transitions: TransitionView[] }>();
|
|
269
|
+
for (const tid of chart.transitions) {
|
|
270
|
+
const transition = view.transitions.get(tid);
|
|
271
|
+
if (!transition?.target || transition.carriedBy) continue;
|
|
272
|
+
const source = lift(view, transition.source, visible, focus);
|
|
273
|
+
const target = lift(view, transition.target, visible, focus);
|
|
274
|
+
if (!source || !target || source === target) continue;
|
|
275
|
+
const id = `${source}>${target}`;
|
|
276
|
+
const bucket = groups.get(id) ?? { source, target, transitions: [] };
|
|
277
|
+
bucket.transitions.push(transition);
|
|
278
|
+
groups.set(id, bucket);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const edges: LayoutEdge[] = [];
|
|
282
|
+
for (const bucket of groups.values()) {
|
|
283
|
+
const only = bucket.transitions[0];
|
|
284
|
+
if (bucket.transitions.length === 1 && only) {
|
|
285
|
+
edges.push({ id: only.id, transitionId: only.id, source: bucket.source, target: bucket.target, labelWidth: chipWidth(only.event), bundle: null });
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
const label = `${bucket.transitions.length} events`;
|
|
289
|
+
const targetState = view.states.get(bucket.target);
|
|
290
|
+
const opensGroup = Boolean(targetState && !isPlace(targetState));
|
|
291
|
+
edges.push({
|
|
292
|
+
id: `bundle:${bucket.source}>${bucket.target}`,
|
|
293
|
+
transitionId: null,
|
|
294
|
+
source: bucket.source,
|
|
295
|
+
target: bucket.target,
|
|
296
|
+
labelWidth: chipWidth(label),
|
|
297
|
+
memberIds: bucket.transitions.map((transition) => transition.id),
|
|
298
|
+
bundle: {
|
|
299
|
+
label,
|
|
300
|
+
status: worstOf(
|
|
301
|
+
bucket.transitions.map((transition) => transition.status),
|
|
302
|
+
'spec-only'
|
|
303
|
+
),
|
|
304
|
+
count: bucket.transitions.length,
|
|
305
|
+
group: opensGroup ? bucket.target : null,
|
|
306
|
+
screen: opensGroup ? null : bucket.target
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
return { chartId: chart.id, key, nodes, edges, scoped: true, focus, mode: 'level' };
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* What one chart's map shows. A small chart expands every screen. A large chart shows one
|
|
315
|
+
* section at a time: its direct children as boxes, or the whole section when that section is small.
|
|
316
|
+
*/
|
|
317
|
+
export function chartGraph(view: AtlasView, chartId: string, requested: string | null = null): LayoutInput | null {
|
|
318
|
+
const chart = view.charts.get(chartId);
|
|
319
|
+
if (!chart) return null;
|
|
320
|
+
const frame = mapFrame(view, chartId, requested);
|
|
321
|
+
const key = `${chart.structureKey}\n${frame.mode}\n${frame.focus ?? ''}`;
|
|
322
|
+
if (frame.mode === 'level') return levelGraph(view, chart, frame.focus, key);
|
|
323
|
+
return expandGraph(view, chart, frame.mode === 'subtree' ? frame.focus : null, key, frame.scoped, frame.mode);
|
|
324
|
+
}
|