@crvouga/atlas 1.9.0 → 1.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 (46) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/reports/src/review-collection-store.d.ts +47 -0
  3. package/dist/reports/src/review-collection-store.js +214 -0
  4. package/dist/reports/src/review-collection.d.ts +88 -0
  5. package/dist/reports/src/review-collection.js +144 -0
  6. package/dist/reports/src/test-catalog.d.ts +2 -0
  7. package/dist/reports/src/test-catalog.js +1 -1
  8. package/dist/schema/src/api.d.ts +574 -0
  9. package/dist/schema/src/api.js +152 -1
  10. package/dist/server/src/app.js +4 -1
  11. package/dist/server/src/openapi.js +46 -1
  12. package/dist/server/src/review-collections.d.ts +39 -0
  13. package/dist/server/src/review-collections.js +179 -0
  14. package/docs/extending.md +1 -1
  15. package/docs/reference/http-api.md +122 -0
  16. package/docs/reference/reports.md +294 -0
  17. package/docs/reference/schema.md +131 -0
  18. package/docs/reference/server.md +44 -0
  19. package/docs/rich-evidence.md +38 -0
  20. package/docs/server.md +41 -0
  21. package/docs/ui.md +67 -1
  22. package/llms-full.txt +269 -2
  23. package/package.json +1 -1
  24. package/packages/schema/schemas/review-collection.schema.json +398 -0
  25. package/packages/schema/schemas/review-manifest.schema.json +475 -0
  26. package/packages/server/openapi.json +6729 -4084
  27. package/packages/visualizer/src/app/router.tsx +6 -1
  28. package/packages/visualizer/src/evidence/applicability-view.tsx +233 -0
  29. package/packages/visualizer/src/evidence/applicability.test.ts +131 -0
  30. package/packages/visualizer/src/evidence/applicability.ts +241 -0
  31. package/packages/visualizer/src/evidence/artifact-tags.tsx +3 -2
  32. package/packages/visualizer/src/evidence/behavior-panel.tsx +11 -1
  33. package/packages/visualizer/src/evidence/feature-page.tsx +25 -4
  34. package/packages/visualizer/src/explorer/ArtifactsView.tsx +26 -2
  35. package/packages/visualizer/src/explorer/Explorer.tsx +7 -2
  36. package/packages/visualizer/src/explorer/RecordingTextSearch.tsx +355 -0
  37. package/packages/visualizer/src/explorer/RunsView.tsx +11 -1
  38. package/packages/visualizer/src/explorer/collection-model.test.ts +31 -0
  39. package/packages/visualizer/src/explorer/collection-model.ts +45 -0
  40. package/packages/visualizer/src/explorer/collections.tsx +513 -0
  41. package/packages/visualizer/src/explorer/playlist-entries.test.ts +51 -0
  42. package/packages/visualizer/src/explorer/playlist-entries.ts +163 -0
  43. package/packages/visualizer/src/explorer/playlist.tsx +500 -0
  44. package/packages/visualizer/src/explorer/recording-text.test.ts +149 -0
  45. package/packages/visualizer/src/explorer/recording-text.ts +490 -0
  46. package/packages/visualizer/src/explorer/search.ts +10 -2
@@ -63,7 +63,10 @@ export const ExplorerSearchFields = {
63
63
  inRun: text,
64
64
  group: z.enum(TEST_GROUPS).optional().catch(undefined),
65
65
  sort: z.enum(EXPLORER_SORTS).optional().catch(undefined),
66
- tab: z.enum(['runs', 'artifacts']).optional().catch(undefined),
66
+ tab: z.enum(['runs', 'artifacts', 'collections']).optional().catch(undefined),
67
+ /** The review collection opened in the Collections tab (its stable id), and the revision of it (default: the newest). */
68
+ collection: text,
69
+ rev: z.coerce.number().int().positive().optional().catch(undefined),
67
70
  /** The run opened in the Runs tab. */
68
71
  openRun: text,
69
72
  /** Pins the open test's detail to one exact layer (a run's record of it), instead of the latest combined evidence. With `openRun` and `artifact` it names the layer the file is in. */
@@ -84,6 +87,8 @@ export const ExplorerSearchFields = {
84
87
  relRevision: z.enum(['any']).optional().catch(undefined),
85
88
  /** The reliability's independent executions (its denominator) are open. */
86
89
  relOpen: z.preprocess((value) => (value === 'true' ? true : value), z.literal(true)).optional().catch(undefined),
90
+ /** Words to find inside the recordings of the Artifacts tab (what was said or shown, from the text producers supplied). Not a filter of the list. */
91
+ inside: text,
87
92
  /** Only the runs, and the results of an opened run, that have a playable video recording. */
88
93
  video: z.preprocess((value) => (value === 'true' ? true : value), z.literal(true)).optional().catch(undefined)
89
94
  };
@@ -110,7 +115,9 @@ export type ExplorerSearch = {
110
115
  readonly inRun?: string;
111
116
  readonly group?: TestGroup;
112
117
  readonly sort?: ExplorerSort;
113
- readonly tab?: 'runs' | 'artifacts';
118
+ readonly tab?: 'runs' | 'artifacts' | 'collections';
119
+ readonly collection?: string;
120
+ readonly rev?: number;
114
121
  readonly openRun?: string;
115
122
  readonly layer?: string;
116
123
  readonly source?: string;
@@ -123,6 +130,7 @@ export type ExplorerSearch = {
123
130
  readonly relUntil?: string;
124
131
  readonly relRevision?: 'any';
125
132
  readonly relOpen?: true;
133
+ readonly inside?: string;
126
134
  readonly video?: true;
127
135
  };
128
136