@lightdash/cli 2.263.1 → 2.264.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.
|
@@ -123,6 +123,7 @@ const insights = useInsights(orders);
|
|
|
123
123
|
// insights.anomalies the anomalies that refer to this query
|
|
124
124
|
// insights.matches(row) the anomalies whose dimension values match this row
|
|
125
125
|
// insights.canInvestigate false when no agent is available
|
|
126
|
+
// insights.canContinue false when the org keeps viewers at the explanation
|
|
126
127
|
// insights.investigate(id) start an investigation of one anomaly
|
|
127
128
|
// insights.continueInAskAi(id) open the investigation's thread in Ask AI
|
|
128
129
|
```
|
|
@@ -239,7 +240,7 @@ const anomaly = insights.matches(row)[0];
|
|
|
239
240
|
Then render the investigation state wherever the anomaly is shown (a card under the chart, a side sheet):
|
|
240
241
|
|
|
241
242
|
- `running` — a spinner and "Investigating…". It can take a minute.
|
|
242
|
-
- `ready` — render `explanation` as Markdown (it contains a summary, a "Possible drivers" list with the evidence for each, an "Evidence" list, and a "Confidence: …" line). If `partial` is true, say the query budget ran out.
|
|
243
|
+
- `ready` — render `explanation` as Markdown (it contains a summary, a "Possible drivers" list with the evidence for each, an "Evidence" list, and a "Confidence: …" line). If `partial` is true, say the query budget ran out. When `insights.canContinue` is true, offer a **Continue in Ask AI** button that calls `insights.continueInAskAi(anomaly.id)`; Lightdash opens the thread. When it is false the organisation keeps viewers at the explanation: render no button.
|
|
243
244
|
- `error` — show `error` and offer Investigate again.
|
|
244
245
|
|
|
245
246
|
Never open a dialog for the investigation yourself; the app renders state, Lightdash owns the run.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.264.0",
|
|
4
4
|
"description": "Lightdash CLI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@actions/core": "1.11.1",
|
|
23
23
|
"@aws-sdk/credential-providers": "3.995.0",
|
|
24
24
|
"@casl/ability": "6.8.0",
|
|
25
|
-
"@lightdash/common": "2.
|
|
26
|
-
"@lightdash/warehouses": "2.
|
|
25
|
+
"@lightdash/common": "2.264.0",
|
|
26
|
+
"@lightdash/warehouses": "2.264.0",
|
|
27
27
|
"@sidvind/better-ajv-errors": "7.0.0",
|
|
28
28
|
"@types/columnify": "1.5.1",
|
|
29
29
|
"ajv": "8.18.0",
|