@ocelescope/exploration 0.8.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/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @ocelescope/exploration
2
+
3
+ A dashboard of analytical questions about the active OCEL. Each card runs one
4
+ DuckDB query through `OcelChart` and draws the answer; there is no exploration
5
+ backend, so an analysis is only ever one place in the code.
6
+
7
+ ## Layout
8
+
9
+ | File | Contents |
10
+ | --- | --- |
11
+ | `analyses.ts` | Every analysis: its question, parameters, SQL and chart |
12
+ | `Dashboard.tsx` | The searchable analysis catalog and responsive card grid |
13
+ | `Card.tsx` | One card: information, configuration, chart and export frame |
14
+ | `Controls.tsx` | The parameter inputs, and the log facts they offer |
15
+ | `store.ts` | The cards a reader has added, kept per OCEL in the browser |
16
+
17
+ To add an analysis, add an entry to `analyses.ts`.
18
+
19
+ A reader first chooses the question from the catalog and is taken directly to
20
+ its configuration. Required log names start empty; optional multi-selections
21
+ mean “all” when empty. Settings that are not names from the log (a result limit,
22
+ a time unit) carry a useful built-in value. Every card explains both what it
23
+ shows and how its data was determined in the information popover.
24
+
25
+ Queries run against the filtered OCEL - the one the rest of the app shows - over
26
+ its stored tables (`events`, `objects`, `e2o`, `object_changes`). Numeric
27
+ attributes are binned by the shared `histogram` helper (Freedman-Diaconis, with
28
+ far outliers counted in a `<` and a `>` bar); everything else is counted by
29
+ value, with a long tail folded into one bar.
30
+
31
+ The page is Mantine, like every other page in the app; the charts inside it are
32
+ r4pm viewers. Colours come from the shared resolver, so an activity keeps the
33
+ colour the graph viewers give it, each card sits in a `ViewerExportFrame` of its
34
+ own, and the attribute timeline uses the shared multi-axis `LineChart`.