@crvouga/atlas 0.10.2 → 0.11.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +7 -0
  3. package/dist/server/src/settings-page.d.ts +4 -4
  4. package/dist/server/src/settings-page.js +17 -78
  5. package/docs/reference/server.md +4 -4
  6. package/docs/ui.md +142 -0
  7. package/docs/workspaces.md +130 -0
  8. package/llms-full.txt +278 -0
  9. package/llms.txt +2 -0
  10. package/package.json +17 -10
  11. package/packages/visualizer/src/admin/SettingsPage.tsx +456 -0
  12. package/packages/visualizer/src/admin/main.tsx +11 -0
  13. package/packages/visualizer/src/app/AppShell.tsx +62 -38
  14. package/packages/visualizer/src/app/gazetteer.tsx +90 -83
  15. package/packages/visualizer/src/app/router.tsx +33 -15
  16. package/packages/visualizer/src/components/ActivityIndicator.tsx +4 -5
  17. package/packages/visualizer/src/components/DataIssues.tsx +36 -54
  18. package/packages/visualizer/src/components/Header.tsx +197 -125
  19. package/packages/visualizer/src/components/Legend.tsx +13 -41
  20. package/packages/visualizer/src/components/ProjectPicker.tsx +61 -26
  21. package/packages/visualizer/src/components/Screen.tsx +80 -71
  22. package/packages/visualizer/src/components/SpecLogo.tsx +15 -0
  23. package/packages/visualizer/src/components/Status.tsx +20 -34
  24. package/packages/visualizer/src/components/labels.tsx +8 -3
  25. package/packages/visualizer/src/components/spec-logos/APACHE-2.0.txt +206 -0
  26. package/packages/visualizer/src/components/spec-logos/CAMUNDA-MIT.txt +21 -0
  27. package/packages/visualizer/src/components/spec-logos/FILE-ICONS-ISC.txt +13 -0
  28. package/packages/visualizer/src/components/spec-logos/README.md +23 -0
  29. package/packages/visualizer/src/components/spec-logos/SIMPLE-ICONS-CC0.txt +30 -0
  30. package/packages/visualizer/src/components/spec-logos/alloy.svg +1 -0
  31. package/packages/visualizer/src/components/spec-logos/dmn.svg +3 -0
  32. package/packages/visualizer/src/components/spec-logos/gherkin.svg +1 -0
  33. package/packages/visualizer/src/components/spec-logos/openslo.svg +63 -0
  34. package/packages/visualizer/src/components/spec-logos/quint.svg +1 -0
  35. package/packages/visualizer/src/evidence/artifacts.tsx +263 -110
  36. package/packages/visualizer/src/evidence/chart-source.tsx +18 -0
  37. package/packages/visualizer/src/evidence/check-detail.tsx +283 -139
  38. package/packages/visualizer/src/evidence/decision-table.tsx +35 -26
  39. package/packages/visualizer/src/evidence/document-page.tsx +51 -29
  40. package/packages/visualizer/src/evidence/feature-page.tsx +121 -53
  41. package/packages/visualizer/src/evidence/marks.tsx +112 -79
  42. package/packages/visualizer/src/evidence/model-page.tsx +77 -46
  43. package/packages/visualizer/src/evidence/model-trace.tsx +55 -35
  44. package/packages/visualizer/src/evidence/overview.tsx +137 -69
  45. package/packages/visualizer/src/evidence/recording-page.tsx +70 -31
  46. package/packages/visualizer/src/evidence/recording.tsx +135 -68
  47. package/packages/visualizer/src/evidence/snapshot.tsx +99 -43
  48. package/packages/visualizer/src/evidence/source-text.tsx +33 -0
  49. package/packages/visualizer/src/evidence/sources-panel.tsx +138 -144
  50. package/packages/visualizer/src/evidence/spec-header.tsx +52 -36
  51. package/packages/visualizer/src/evidence/spec-index.tsx +61 -32
  52. package/packages/visualizer/src/evidence/spec-page.tsx +56 -25
  53. package/packages/visualizer/src/evidence/test-filter.tsx +38 -14
  54. package/packages/visualizer/src/explorer/Explorer.tsx +688 -261
  55. package/packages/visualizer/src/explorer/ExplorerIndex.tsx +136 -68
  56. package/packages/visualizer/src/explorer/RunsView.tsx +307 -94
  57. package/packages/visualizer/src/explorer/TestDetail.tsx +393 -118
  58. package/packages/visualizer/src/explorer/parts.tsx +35 -13
  59. package/packages/visualizer/src/find/Finder.tsx +106 -90
  60. package/packages/visualizer/src/find/open.ts +17 -20
  61. package/packages/visualizer/src/live/test-progress.tsx +60 -22
  62. package/packages/visualizer/src/looks/Stage.tsx +223 -110
  63. package/packages/visualizer/src/main.tsx +9 -11
  64. package/packages/visualizer/src/map/ChartMap.tsx +125 -69
  65. package/packages/visualizer/src/map/EventEdge.tsx +59 -37
  66. package/packages/visualizer/src/map/map.module.css +12 -546
  67. package/packages/visualizer/src/map/nodes.tsx +124 -70
  68. package/packages/visualizer/src/reachable.test.ts +3 -2
  69. package/packages/visualizer/src/spec-kind.ts +2 -2
  70. package/packages/visualizer/src/ui/grammars/ALLOY-MIT.txt +21 -0
  71. package/packages/visualizer/src/ui/grammars/QUINT-APACHE-2.0.txt +206 -0
  72. package/packages/visualizer/src/ui/grammars/README.md +14 -0
  73. package/packages/visualizer/src/ui/grammars/alloy.json +71 -0
  74. package/packages/visualizer/src/ui/grammars/quint.json +152 -0
  75. package/packages/visualizer/src/ui/highlight.ts +50 -0
  76. package/packages/visualizer/src/ui/theme.tsx +109 -0
  77. package/packages/visualizer/src/views/ChartPage.tsx +46 -26
  78. package/packages/visualizer/src/views/ChartTests.tsx +59 -22
  79. package/packages/visualizer/src/views/ProductPage.tsx +16 -15
  80. package/packages/visualizer/src/views/SidePanel.tsx +241 -131
  81. package/packages/visualizer/src/app/gazetteer.module.css +0 -107
  82. package/packages/visualizer/src/components/ActivityIndicator.module.css +0 -4
  83. package/packages/visualizer/src/components/DataIssues.module.css +0 -136
  84. package/packages/visualizer/src/components/Header.module.css +0 -114
  85. package/packages/visualizer/src/components/Legend.module.css +0 -84
  86. package/packages/visualizer/src/components/Screen.module.css +0 -312
  87. package/packages/visualizer/src/components/Status.module.css +0 -116
  88. package/packages/visualizer/src/components/icons.tsx +0 -156
  89. package/packages/visualizer/src/evidence/artifacts.module.css +0 -213
  90. package/packages/visualizer/src/evidence/evidence.module.css +0 -907
  91. package/packages/visualizer/src/evidence/recording.module.css +0 -460
  92. package/packages/visualizer/src/evidence/sources.module.css +0 -168
  93. package/packages/visualizer/src/evidence/spec-snapshot.tsx +0 -26
  94. package/packages/visualizer/src/explorer/explorer.module.css +0 -1238
  95. package/packages/visualizer/src/find/Finder.module.css +0 -168
  96. package/packages/visualizer/src/looks/stage.module.css +0 -300
  97. package/packages/visualizer/src/styles/global.css +0 -105
  98. package/packages/visualizer/src/styles/tokens.css +0 -80
  99. package/packages/visualizer/src/views/views.module.css +0 -546
package/llms-full.txt CHANGED
@@ -3524,6 +3524,284 @@ document shows the combined result of its checks per environment, with the layer
3524
3524
  the client at your stores with `reportsHost` ([integrating Atlas](integrating.md#6-browse-it)).
3525
3525
  </doc>
3526
3526
 
3527
+ <doc path="docs/workspaces.md">
3528
+ # Atlas in agent IDEs
3529
+
3530
+ This guide is for developing **this repository** in Superset, super.engineering or Orca. A consumer
3531
+ project should install Atlas from npm and follow [integrating](integrating.md) instead.
3532
+
3533
+ ## Start from any terminal
3534
+
3535
+ Install the Bun version named by `packageManager` in [package.json](../package.json), then run these
3536
+ commands from the repository root. Setup requires no tokens, copied `.env`, Docker or external services.
3537
+
3538
+ ```sh
3539
+ bun run workspace:setup
3540
+ bun run workspace:run
3541
+ ```
3542
+
3543
+ Open the `Atlas server ready:` URL printed in the Run terminal. It serves the real API and hot-reloading
3544
+ viewer together; `/admin` opens settings. A fresh node starts empty. Publish real results to the printed
3545
+ `ATLAS_STORE` address using the existing [report commands](reference/reports.md).
3546
+
3547
+ For UI work with populated specs, statecharts, failures and recordings, run the separate examples target:
3548
+
3549
+ ```sh
3550
+ bun run workspace:preview
3551
+ ```
3552
+
3553
+ This viewer uses `examples/todo/specs` and the existing example-evidence adapter. It does not seed or
3554
+ alter the real server's data. It has no server administration interface. Existing example run files are
3555
+ shown when present; setup does not run browsers, model checkers or generate recordings. To create fresh
3556
+ example recordings, use the existing `example:run` command and [statechart guide](statecharts.md).
3557
+
3558
+ ## Shared commands
3559
+
3560
+ | Command | Behavior |
3561
+ | --- | --- |
3562
+ | `bun run workspace:setup` | Check the pinned Bun and install with `--frozen-lockfile`; safe to repeat. |
3563
+ | `bun run workspace:run` | Run the real node and viewer; repeat the frozen install before starting. |
3564
+ | `bun run workspace:preview` | Run the populated examples viewer; repeat the same setup first. |
3565
+ | `bun run workspace:status` | Print live URLs, mode and readiness as JSON; omit private control credentials. |
3566
+ | `bun run workspace:stop` | Stop both targets owned by this checkout; retain all reports. |
3567
+ | `bun run workspace:stop server` | Stop only the API/viewer target. `preview` selects only examples. |
3568
+ | `bun run workspace:check` | Run documentation, types, tests, package/client builds and consumer smoke. |
3569
+
3570
+ `run` and `preview` stay in the foreground so the IDE owns their lifetime and displays their output.
3571
+ Ctrl+C or an IDE Stop closes the owned server and its child process. Teardown uses a random private
3572
+ control capability stored in `.atlas-workspace/`; it never kills a PID from a file or uses `pkill`.
3573
+ If the owned development child does not finish after five seconds, only that child is terminated.
3574
+ Stopping an unrelated IDE, agent, checkout or application is outside these scripts' scope.
3575
+
3576
+ ## Workspace isolation and ports
3577
+
3578
+ The API/viewer tries port 5180, and examples try 5181. If that default is busy, the OS supplies a free
3579
+ port. Read `workspace:status` instead of assuming a URL. An explicit `--port`, `ATLAS_PORT`, or `PORT`
3580
+ (in that priority order) is strict: conflicts fail and never connect publishers to a different node.
3581
+ `--port 0` requests a free port explicitly.
3582
+
3583
+ ```sh
3584
+ bun run workspace:run --port 5280
3585
+ bun run workspace:status
3586
+ ```
3587
+
3588
+ Everything binds to `127.0.0.1`. For remote workspaces, use the IDE's port forwarding. Reports and server
3589
+ settings stay in this checkout's `.atlas-data/`; live runtime leases stay in `.atlas-workspace/`.
3590
+ Keep both directories private to each worktree. Do not share `node_modules`, `.atlas-data/`,
3591
+ `.atlas-workspace/` or caches across checkouts with different dependencies. Frozen installs use Bun's
3592
+ download cache without linking one worktree's dependency tree to another.
3593
+
3594
+ Two simultaneous starts cannot claim the same target's runtime lease. A hard kill may leave metadata:
3595
+ run `workspace:stop` before restarting. It removes a stale lease only when its owner PID is gone; if the
3596
+ PID is still alive but the control endpoint cannot authenticate, investigate that owner rather than
3597
+ assuming it is safe to stop. No reports or settings are deleted by teardown.
3598
+
3599
+ ## Superset
3600
+
3601
+ [`.superset/config.json`](https://github.com/crvouga/atlas/blob/main/.superset/config.json) wires workspace creation to setup, the Run button
3602
+ to the real node/viewer, and teardown to stop. Superset discovers listening ports; the conventional
3603
+ ports are labelled in [ports.json](https://github.com/crvouga/atlas/blob/main/.superset/ports.json). Automatically chosen ports still appear
3604
+ in its port panel. Use the examples command in a second terminal when needed. Personal lifecycle
3605
+ overrides belong in ignored `.superset/config.local.json`.
3606
+
3607
+ Superset's Run command resolves from the main repository's configuration. Commit the configuration
3608
+ and scripts together before expecting another workspace's Run button to discover them. See the
3609
+ [official lifecycle guide](https://docs.superset.sh/setup-teardown-scripts) and
3610
+ [port management](https://docs.superset.sh/ports).
3611
+
3612
+ ## super.engineering
3613
+
3614
+ [`.super.engineering/config.json`](https://github.com/crvouga/atlas/blob/main/.super.engineering/config.json) defines **Atlas** (default),
3615
+ **Viewer examples** and **Checks** in the Run controls. Each server target's Stop command affects only
3616
+ that target; deletion stops both. Shared commands expose **Atlas URLs**, **Check Atlas** and a
3617
+ **Review Atlas UI** prompt. The prompt uses the current agent's configured provider and does not
3618
+ launch a team or change model settings.
3619
+
3620
+ Use the documented CLI to inspect or invoke the same definitions:
3621
+
3622
+ ```sh
3623
+ sc project scripts check --json
3624
+ sc project scripts run Atlas --json
3625
+ sc project scripts status --json
3626
+ sc project scripts stop Atlas --json
3627
+ ```
3628
+
3629
+ Edit shared script configuration with `sc project scripts set ... --scope repo`, and shared commands
3630
+ with `sc commands ... --scope shared`. Preserve other entries and unknown configuration keys. See
3631
+ [project config and scripts](https://super.engineering/docs/project-config-and-scripts/).
3632
+
3633
+ ## Orca
3634
+
3635
+ [`orca.yaml`](https://github.com/crvouga/atlas/blob/main/orca.yaml) uses the supported `scripts.setup` and `scripts.archive` hooks. Agents
3636
+ wait for setup. The first default tab is reserved for the agent; the second starts Atlas. Tab commands
3637
+ may start alongside setup, so Run repeats the frozen install before importing application dependencies.
3638
+ Orca's normal shared-script trust and setup-policy settings still apply. No `scripts.run` key is
3639
+ invented: Orca starts the app through the terminal template.
3640
+
3641
+ Keep **Shared + Local** or **Shared only** enabled for repository hooks, and approve the shared config
3642
+ in Orca when it offers its trust prompt. These are user-owned controls. For existing workspaces,
3643
+ run the shared Bun commands in a terminal; default tabs are created for new workspaces. See the
3644
+ [official `orca.yaml` reference](https://www.onorca.dev/docs/model/orca-yaml).
3645
+
3646
+ ## Agent workflow
3647
+
3648
+ Read `AGENTS.md`, then use `workspace:status` to discover this checkout's live app. Run the server for
3649
+ API, settings, upload and streaming changes; use examples for populated UI review. Read [UI conventions](ui.md)
3650
+ before changing screens. Keep report/schema/permission contracts intact, and report what the browser and
3651
+ checks actually verified. Do not launch other agents, change IDE permissions or install global IDE tooling
3652
+ as a side effect of setup. `workspace:check` is an on-demand verification target, never a creation hook.
3653
+
3654
+ The lifecycle regression suite (`bun test scripts/workspace.test.ts`) checks fresh directories with spaces,
3655
+ repeatable setup, strict ports, separate stores, authenticated ownership and independent shutdown.
3656
+ Real IDE boot verification additionally needs that IDE installed and available; a passing configuration
3657
+ test alone does not prove the IDE started a new workspace.
3658
+ </doc>
3659
+
3660
+ <doc path="docs/ui.md">
3661
+ # Viewer UI conventions
3662
+
3663
+ Read this before changing the Atlas viewer or settings UI. React and Mantine are the design system.
3664
+ Use the installed version in `package.json` (currently 9.7.3) and its [official documentation](https://mantine.dev/).
3665
+ Look up unfamiliar interactions before writing them; component props and compound components usually solve them.
3666
+
3667
+ ## One setup
3668
+
3669
+ - `packages/visualizer/src/ui/theme.tsx` owns the only theme and `AtlasThemeProvider`.
3670
+ - Both `src/main.tsx` (reports) and `src/admin/main.tsx` (settings) use that provider and Mantine's styles.
3671
+ - Keep Atlas's blue navigation, neutral surfaces, system typography, and light color scheme. Outcome colors
3672
+ come from `statusColor`: green passed, red failed, orange flaky, blue running, gray unknown/unrun.
3673
+ Always accompany color with text or a named status mark. Unknown evidence must never look passed.
3674
+ - The theme darkens the existing Mantine outcome scales and muted text to meet small-text contrast requirements. Use the default sizes, radii, font sizes, shadows and variants. Defaults belong in the theme, not in features.
3675
+ The spacing vocabulary is Mantine's `xs`, `sm`, `md`, `lg`, `xl`.
3676
+
3677
+ ## Compose directly
3678
+
3679
+ Use `AppShell` for persistent navigation, `Container size="xl"` for report pages (`md` for settings),
3680
+ `Stack` for vertical flow, `Group` for horizontal flow, and `SimpleGrid` for responsive metrics/forms.
3681
+ Page headers contain a `Title order={1}`, descriptive `Text c="dimmed"`, then the page's controls.
3682
+ Use `Title order={2}` for sections and `order={3}` for subsections; do not choose heading sizes per page.
3683
+
3684
+ Use Mantine components directly. Do not add wrappers for ordinary buttons, inputs, cards, menus, or dialogs.
3685
+ Shared product compositions include `SpecHeader`, `ResultRow`, `StatusMark`, `Origin`, `Stage`, and `TestDetail`:
3686
+ they preserve evidence semantics, provenance, URL selection, or playback behavior.
3687
+
3688
+ - Primary action: `Button variant="filled"`. Secondary: default `Button` (light). Quiet: `variant="subtle"`.
3689
+ Destructive action: `color="red"`. Icon-only action: `ActionIcon` with an `aria-label`, usually a `Tooltip`.
3690
+ - Inputs: Mantine inputs with a visible `label`, `description` when needed, and `error` for validation.
3691
+ Use `NativeSelect` for small native option lists; keep form values controlled. Settings validation and
3692
+ authorization stay on the server; its optional JSON editor also validates with the shared schema.
3693
+ - Use `Menu` for navigation menus, `Popover` for view options, `Drawer` for sources/test details,
3694
+ `Modal` for modal content, and `Spotlight` for search. Let Mantine own dismissal, focus and keyboard behavior.
3695
+ When an action opens a drawer from a popover, close and disable the parent popover during the drawer's lifetime;
3696
+ return focus to its persistent trigger. Do not fix overlapping focus traps by raising z-index values.
3697
+ - Use `Tabs` for view modes and `Accordion` for disclosure. URL-backed selections stay in the existing router.
3698
+ - Render typed router links with Mantine's `renderRoot={props => <Link {...props} ... />}`.
3699
+ This keeps route/search type inference and native navigation semantics.
3700
+ - Use `Table` in `Table.ScrollContainer` for wide evidence, with column headers. Long lists must retain
3701
+ `Bounded`/show-more controls. Do not fetch unopened results' recordings eagerly.
3702
+ - Loading: named `Loader`/`Skeleton` or explicit text with `role="status"`. Error: `Alert color="red"` and
3703
+ a retry when possible. Empty: descriptive `Text` and a relevant action. Use built-in loading/disabled states.
3704
+ - Spec overview links use a centered `Group`: status, flexible title/folder, then outcome and time. Keep gaps
3705
+ explicit with theme spacing; stack metadata on narrow screens instead of crowding the title.
3706
+
3707
+ ## Executable spec source
3708
+
3709
+ `SourceText` is the common source reader for Gherkin, Quint, DMN/XML, Alloy, OpenSLO/YAML and statechart
3710
+ XML/JSON/YAML. Show it expanded near the top of document pages; preserve indentation, comments and the
3711
+ complete file. Do not replace source with a trimmed snapshot. Mantine `CodeHighlightTabs` supplies file
3712
+ labels, line numbers, horizontal scrolling and copying. The full file is expanded by default. Native
3713
+ collapse/expand controls can limit long files to 70vh; the Recorded results action jumps to the existing
3714
+ results section and moves keyboard focus there. Keep scenario selection,
3715
+ filters, traces, decision tables and model declaration links working alongside the source.
3716
+
3717
+ `ui/highlight.ts` owns the one lazy Shiki adapter. It imports only the supported grammars and caches the
3718
+ engine. The shared source composition installs that adapter when source is displayed; the Mantine theme
3719
+ and component defaults still live only in `ui/theme.tsx`. Quint/Alloy grammar sources and licenses live in
3720
+ [`ui/grammars/README.md`](../packages/visualizer/src/ui/grammars/README.md). Unknown formats remain plain
3721
+ text, and parse failures must leave the source visible. Syntax highlighting never means a spec passed.
3722
+
3723
+ ## Icons and notation marks
3724
+
3725
+ Use named imports from `@tabler/icons-react` for all UI glyphs. The icon package supplies SVG paths;
3726
+ Mantine still supplies every control and interaction. Use size 16 for compact inline glyphs and size 20
3727
+ for standalone actions, with `aria-hidden="true"` when the adjacent text or control names the action.
3728
+ Do not draw SVG icons, use Unicode glyphs as buttons, or add another icon library. Mantine's built-in
3729
+ icons are fine. Keep textual keyboard shortcuts and path separators as text.
3730
+
3731
+ `SpecLogo` maps every `SpecKind` to a bundled SVG mark, used in navigation and page headers. Keep the
3732
+ visible notation label; marks are decorative. Sources, licenses and the DMN notation-mark choice are in
3733
+ [`spec-logos/README.md`](../packages/visualizer/src/components/spec-logos/README.md). Add a sourced SVG
3734
+ and update this mapping when adding a format. Brand artwork preserves upstream colors independently of
3735
+ Atlas's theme. SVG data plots and statechart arrow markers are geometry, not handcrafted UI icons.
3736
+
3737
+ ## Accessibility and responsive behavior
3738
+
3739
+ The shell collapses its index below Mantine's `md` breakpoint; its named Burger toggles mobile navigation.
3740
+ Navigation closes after choosing a destination. Use responsive props and the theme's breakpoints; no custom
3741
+ media-query system. Let controls wrap, use one form column on mobile, and keep dialogs inside the viewport.
3742
+ Wide tables scroll inside their container. Native video/audio controls remain available.
3743
+
3744
+ Preserve labels, status announcements, keyboard shortcuts, selected states, meaningful headings and focus
3745
+ restoration. Mantine respects reduced motion through the central theme. Avoid nested interactive controls.
3746
+ Never rely on color alone, remove focus outlines, or hide an important action only to make a layout fit.
3747
+
3748
+ ## Styling policy and exceptions
3749
+
3750
+ Default custom CSS: zero. First try Mantine defaults, central defaults, variants, props, layout components,
3751
+ and theme tokens. Do not add Tailwind, Radix, another design system, CSS modules, custom token scales,
3752
+ inline styles, or `styles` objects for ordinary UI. Document a concrete functional limitation here before
3753
+ adding an exception; `scripts/ui-architecture.test.ts` checks these boundaries in the normal test suite.
3754
+
3755
+ The central List Styles API adjustment makes item labels fill the available width, including Mantine's column wrappers;
3756
+ List has no full-width label prop. This keeps all report rows usable without feature styles.
3757
+
3758
+ The narrowly scoped exceptions are:
3759
+
3760
+ 1. **Interactive statechart graph:** React Flow and ELK provide graph layout, pan/zoom, edges and minimap,
3761
+ which Mantine does not supply. Graph nodes and controls use Mantine. `src/map/map.module.css` only covers
3762
+ SVG strokes, graph handles, edge-label geometry and graph selection/dimming. The two edge-label transforms
3763
+ and node dimensions are computed by the layout engine, not visual design tokens.
3764
+ 2. **Captured evidence:** native video/audio and sandboxed iframes render recorded bytes. HTML snapshots use
3765
+ the existing isolated shadow tree and intrinsic phone coordinates; their captured styles never style Atlas.
3766
+ Recorded click markers and intrinsic image/video dimensions are evidence coordinates, not UI spacing.
3767
+ 3. **Public compatibility APIs:** `solid-js` and `@tanstack/solid-query` remain dependencies of existing
3768
+ report-library entry points. They render no Atlas screen. Do not import them into the viewer or add Solid UI.
3769
+ 4. **Syntax rendering:** Shiki is the syntax engine behind Mantine's official code-highlight adapter,
3770
+ not a second component system. Its token styles and escaped HTML are generated by the highlighter.
3771
+ The supported Shiki line transformer supplies the existing Quint `line-N` navigation anchors.
3772
+ No feature CSS, handcrafted code controls or custom syntax color theme is introduced.
3773
+ 5. **Consumer test fixture:** `examples/todo/app` is the app Atlas tests and records, not an Atlas screen.
3774
+ Its intentionally separate implementation and selectors are test inputs; the overhaul does not restyle it.
3775
+
3776
+ ## Inventory and migration boundary
3777
+
3778
+ | Area | Screens/interactions | Mantine composition |
3779
+ | --- | --- | --- |
3780
+ | Shared shell | Project switching, spec navigation, run selection, connection status, diagnostics, mobile index | AppShell, Burger, NavLink, Menu, Popover, NativeSelect, Drawer |
3781
+ | Project home | Tests/runs tabs, metrics, search, status/environment/domain filters, grouping, sorting, show more | Container, Tabs, SimpleGrid, Paper, TextInput, Button, Accordion |
3782
+ | Test detail | Current outcomes, statistics, duration graph, history, artifacts, recording | Drawer, Table, Badge, Alert, Stage |
3783
+ | Specs | All six existing kinds, overview/index, Gherkin rules/scenarios/examples, Quint declarations/traces, DMN tables, source text | SpecHeader, Accordion, Table, CodeHighlightTabs, ResultRow |
3784
+ | Statecharts | Graph, screen/event/journey details, developer metadata, chart test results | Mantine cards/navigation and product compositions; graph exception above |
3785
+ | Evidence | Steps, retries, annotations, facts, unknown extensions, safe downloads and previews | List, Badge, Accordion, Code, Image, native media |
3786
+ | Recordings | Pictures/video/timeline, actor selection, moments, failure jumps, timing, model-state differences | Tabs, Slider, Button, ScrollArea, Table, Progress |
3787
+ | Search/help | Ranked and semantic search, shortcut help, recording shortcuts | Spotlight, Modal, Kbd |
3788
+ | Administration | Token access, storage backends/write destination, live timeouts, report rules, limits, raw JSON, conflicts | Same provider/theme, Fieldset, Mantine inputs, Accordion, Alert |
3789
+
3790
+ The hash routes (`/`, `/chart/$chartId`, `/specs/$kind`), query contracts, project scoping, streaming,
3791
+ report APIs and data adapters remain the migration boundary. `/admin` still serves an independent document:
3792
+ it lazily bundles the shared React settings entry once, so API-only servers do not need a prebuilt viewer.
3793
+
3794
+ ## Checks
3795
+
3796
+ Run `bunx tsc --noEmit -p packages/visualizer`,
3797
+ `bun test --cwd packages/visualizer --preload ./tests/preload.ts tests`,
3798
+ `bun test scripts/ui-architecture.test.ts`, `bun run client:build`, then `bun run docs` and `bun run docs:check`.
3799
+ Before pushing, run the full repository checks from `AGENTS.md`, including package build and consumer smoke
3800
+ when dependencies change. DOM tests use the same `AtlasThemeProvider` with Mantine's supported `env="test"`.
3801
+ Use semantic/product selectors, not Mantine's private class names. Inspect real desktop and narrow layouts,
3802
+ menus, dialogs, complex evidence and settings in the browser; do not describe a DOM test as a visual audit.
3803
+ </doc>
3804
+
3527
3805
  <doc path="docs/dogfooding.md">
3528
3806
  # Dogfooding Atlas from another project
3529
3807
 
package/llms.txt CHANGED
@@ -26,6 +26,8 @@ Given only the repository link, start at docs/agents.md: install `@crvouga/atlas
26
26
 
27
27
  ## Working with this project
28
28
 
29
+ - [Atlas in agent IDEs](https://raw.githubusercontent.com/crvouga/atlas/main/docs/workspaces.md): This guide is for developing this repository in Superset, super.engineering or Orca.
30
+ - [Viewer UI conventions](https://raw.githubusercontent.com/crvouga/atlas/main/docs/ui.md): Read this before changing the Atlas viewer or settings UI.
29
31
  - [Dogfooding Atlas from another project](https://raw.githubusercontent.com/crvouga/atlas/main/docs/dogfooding.md): Atlas is developed by using it in real projects.
30
32
  - [Reporting issues](https://raw.githubusercontent.com/crvouga/atlas/main/docs/reporting-issues.md): How people and coding agents in a project that uses Atlas report a bug or a missing feature.
31
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/atlas",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "Atlas: specs of any kind, reported as layered evidence. Publish checks from any runner (JUnit, CTRF, a script), combine them across nodes, branches, environments and backends, gate CI on the result, and run statecharts against the real app.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -153,7 +153,9 @@
153
153
  "docs/reporting-issues.md",
154
154
  "CHANGELOG.md",
155
155
  "docs/runners.md",
156
- "packages/runners/compat"
156
+ "packages/runners/compat",
157
+ "docs/ui.md",
158
+ "docs/workspaces.md"
157
159
  ],
158
160
  "scripts": {
159
161
  "build": "bun scripts/build-package.ts",
@@ -182,29 +184,34 @@
182
184
  "health": "bun scripts/health/cli.ts",
183
185
  "prepare": "husky",
184
186
  "example:publish": "bun examples/todo/publish.ts",
185
- "atlas": "bun scripts/atlas.mjs"
187
+ "atlas": "bun scripts/atlas.mjs",
188
+ "workspace:setup": "bun scripts/workspace.ts setup",
189
+ "workspace:run": "bun scripts/workspace.ts run",
190
+ "workspace:preview": "bun scripts/workspace.ts preview",
191
+ "workspace:status": "bun scripts/workspace.ts status",
192
+ "workspace:stop": "bun scripts/workspace.ts stop",
193
+ "workspace:check": "bun run docs:check && bun run type-check && bun run test && bun run build && bun run client:build --out .atlas-workspace/site && bun run release:smoke"
186
194
  },
187
195
  "dependencies": {
188
196
  "@cucumber/gherkin": "^42.0.1",
189
197
  "@cucumber/messages": "^34.2.1",
190
- "@radix-ui/react-collapsible": "^1.1.21",
191
- "@radix-ui/react-dialog": "^1.2.0",
192
- "@radix-ui/react-dropdown-menu": "^2.1.25",
193
- "@radix-ui/react-popover": "^1.2.0",
194
- "@radix-ui/react-tabs": "^1.1.22",
195
- "@radix-ui/react-tooltip": "^1.3.0",
198
+ "@mantine/code-highlight": "9.7.3",
199
+ "@mantine/core": "9.7.3",
200
+ "@mantine/hooks": "9.7.3",
201
+ "@mantine/spotlight": "9.7.3",
202
+ "@tabler/icons-react": "3.49.0",
196
203
  "@tanstack/query-persist-client-core": "^5.104.0",
197
204
  "@tanstack/react-query": "^5.101.4",
198
205
  "@tanstack/react-router": "^1.170.41",
199
206
  "@tanstack/solid-query": "^5.104.0",
200
207
  "@vitejs/plugin-react": "5.2.0",
201
208
  "@xyflow/react": "^12.11.5",
202
- "cmdk": "^1.1.1",
203
209
  "elkjs": "0.12.0",
204
210
  "fast-xml-parser": "5.11.0",
205
211
  "hono": "^4.13.9",
206
212
  "react": "^19.3.0",
207
213
  "react-dom": "^19.3.0",
214
+ "shiki": "4.5.0",
208
215
  "solid-js": "^1.9.15",
209
216
  "tsx": "4.23.13",
210
217
  "vite": "7.3.7",