@malloy-publisher/sdk 0.9.10 → 0.9.11
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/dist/RenderedResult-BlNoIiSi.cjs.js +153 -0
- package/dist/{RenderedResult-Dp1Qdajz.es.js → RenderedResult-Cmx8sX8d.es.js} +102 -102
- package/dist/ServerProvider-BOgiW8MX.cjs.js +1 -0
- package/dist/{ServerProvider-CQy4jVYK.es.js → ServerProvider-azXLkk1q.es.js} +619 -586
- package/dist/builder/index.cjs.js +78 -130
- package/dist/builder/index.es.js +7493 -6769
- package/dist/builder-entry.d.ts +3 -0
- package/dist/client/api.d.ts +26 -22
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/AppDialog.d.ts +9 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +14 -15
- package/dist/components/Dashboard/DashboardTile.d.ts +8 -1
- package/dist/components/Dashboard/DashboardView.d.ts +22 -34
- package/dist/components/Dashboard/TileCard.d.ts +10 -3
- package/dist/components/Dashboard/useStuck.d.ts +15 -7
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +6 -0
- package/dist/components/Package/PackageProblems.d.ts +14 -0
- package/dist/components/RemoveBadge.d.ts +40 -0
- package/dist/components/Report/Report.d.ts +13 -4
- package/dist/components/Report/ReportPage.d.ts +60 -0
- package/dist/components/Report/layoutRules.d.ts +32 -0
- package/dist/components/Report/reportQuery.d.ts +30 -0
- package/dist/components/Report/telemetry.d.ts +0 -2
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +22 -3
- package/dist/components/ReportBuilder/BuilderBar.d.ts +17 -0
- package/dist/components/ReportBuilder/BuilderDialogs.d.ts +7 -6
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +10 -4
- package/dist/components/ReportBuilder/BuilderHeader.d.ts +4 -7
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +88 -0
- package/dist/components/ReportBuilder/DrillDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/EditorSurface.d.ts +7 -9
- package/dist/components/ReportBuilder/FilterDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/FilterStrip.d.ts +30 -8
- package/dist/components/ReportBuilder/InlineMarkdown.d.ts +4 -4
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +49 -12
- package/dist/components/ReportBuilder/ReportEditor.d.ts +53 -3
- package/dist/components/ReportBuilder/TextTileBody.d.ts +2 -5
- package/dist/components/ReportBuilder/TileFrame.d.ts +10 -4
- package/dist/components/ReportBuilder/TileMenu.d.ts +12 -9
- package/dist/components/ReportBuilder/ViewPicker.d.ts +53 -0
- package/dist/components/ReportBuilder/addTileToDocument.d.ts +24 -3
- package/dist/components/ReportBuilder/builderControls.d.ts +60 -0
- package/dist/components/ReportBuilder/catalog.d.ts +2 -4
- package/dist/components/ReportBuilder/inlineEdit.d.ts +9 -10
- package/dist/components/ReportBuilder/localGiven.d.ts +12 -0
- package/dist/components/ReportBuilder/preview.d.ts +17 -2
- package/dist/components/ReportBuilder/readDocument.d.ts +0 -2
- package/dist/components/ReportBuilder/readForEditor.d.ts +2 -7
- package/dist/components/ReportBuilder/reportTag.d.ts +11 -1
- package/dist/components/ReportBuilder/sortable.d.ts +4 -3
- package/dist/components/ReportBuilder/testing/inline.d.ts +5 -1
- package/dist/components/ReportBuilder/useBuilderSelection.d.ts +0 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +21 -12
- package/dist/components/ReportBuilder/useDocumentEditor.d.ts +2 -6
- package/dist/components/ReportBuilder/useExitGuard.d.ts +3 -0
- package/dist/components/ReportBuilder/useFilterForm.d.ts +3 -1
- package/dist/components/ReportBuilder/useOpenedDocument.d.ts +0 -4
- package/dist/components/ReportBuilder/useReportDraft.d.ts +66 -0
- package/dist/components/ReportBuilder/useReportEditor.d.ts +0 -9
- package/dist/components/ReportBuilder/useTileEditing.d.ts +6 -3
- package/dist/components/ReportBuilder/viewAnnotations.d.ts +9 -0
- package/dist/components/ReportBuilder/widthLabel.d.ts +6 -0
- package/dist/components/ServerProvider.d.ts +9 -0
- package/dist/components/controlTokens.d.ts +45 -0
- package/dist/components/drill/markDrillableCells.d.ts +1 -1
- package/dist/components/given/FilterButton.d.ts +35 -0
- package/dist/components/given/GivensPanel.d.ts +2 -1
- package/dist/components/given/filterEditing.d.ts +54 -0
- package/dist/components/given/filterSummary.d.ts +9 -0
- package/dist/components/given/paramCodec.d.ts +11 -0
- package/dist/components/given/required.d.ts +25 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/legacy/index.d.ts +1 -1
- package/dist/components/{Report/CellReport.d.ts → legacy/malloynb/CellRunnerView.d.ts} +9 -17
- package/dist/components/legacy/{MalloynbCells.d.ts → malloynb/MalloynbCells.d.ts} +3 -3
- package/dist/components/legacy/{Notebook.d.ts → malloynb/Notebook.d.ts} +1 -1
- package/dist/components/{Notebook → legacy/malloynb}/NotebookCell.d.ts +3 -3
- package/dist/components/legacy/malloynb/cellKind.d.ts +5 -0
- package/dist/components/{Notebook → legacy/malloynb}/types.d.ts +1 -1
- package/dist/components/styles.d.ts +0 -2
- package/dist/hooks/useQueryResult.d.ts +7 -0
- package/dist/index.cjs.js +16 -19
- package/dist/index.es.js +8324 -7769
- package/dist/theme/ThemeContext.d.ts +8 -1
- package/dist/theme/classes.d.ts +49 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/ui.d.ts +75 -0
- package/dist/{useCompiledDocument-BMPDvdFx.es.js → useCompiledDocument-7j5cBjQd.es.js} +8669 -7851
- package/dist/useCompiledDocument-B21sVbb4.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +9 -0
- package/src/components/AppDialog.tsx +23 -0
- package/src/components/Dashboard/DashboardGrid.tsx +39 -17
- package/src/components/Dashboard/DashboardTile.tsx +19 -2
- package/src/components/Dashboard/DashboardView.spec.tsx +216 -15
- package/src/components/Dashboard/DashboardView.tsx +137 -155
- package/src/components/Dashboard/RowsDialog.tsx +1 -2
- package/src/components/Dashboard/TileCard.tsx +28 -10
- package/src/components/Dashboard/defaultTileSpan.spec.ts +24 -0
- package/src/components/Dashboard/useStuck.ts +28 -17
- package/src/components/DocumentCreate/useDocumentChoices.ts +19 -2
- package/src/components/Package/NewDocumentDialog.spec.tsx +76 -59
- package/src/components/Package/NewDocumentDialog.tsx +383 -119
- package/src/components/Package/Package.artifacts.spec.tsx +1 -1
- package/src/components/Package/Package.create.spec.tsx +7 -6
- package/src/components/Package/Package.tsx +10 -7
- package/src/components/Package/PackageProblems.spec.tsx +41 -0
- package/src/components/Package/PackageProblems.tsx +95 -0
- package/src/components/Prose.tsx +12 -7
- package/src/components/RemoveBadge.tsx +94 -0
- package/src/components/RenderedResult/RenderedResult.tsx +5 -9
- package/src/components/RenderedResult/ResultPanel.tsx +59 -3
- package/src/components/Report/Report.spec.tsx +50 -32
- package/src/components/Report/Report.telemetry.spec.tsx +0 -45
- package/src/components/Report/Report.tsx +45 -77
- package/src/components/Report/ReportPage.tsx +168 -0
- package/src/components/Report/layoutRules.spec.ts +35 -0
- package/src/components/Report/layoutRules.ts +55 -0
- package/src/components/Report/reportQuery.ts +53 -0
- package/src/components/Report/telemetry.ts +0 -2
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +76 -41
- package/src/components/ReportBuilder/AddTileDialog.tsx +368 -133
- package/src/components/ReportBuilder/BuilderBar.tsx +599 -0
- package/src/components/ReportBuilder/BuilderDialogs.tsx +28 -39
- package/src/components/ReportBuilder/BuilderGrid.tsx +31 -29
- package/src/components/ReportBuilder/BuilderHeader.tsx +63 -75
- package/src/components/ReportBuilder/BuilderToolbar.tsx +95 -9
- package/src/components/ReportBuilder/DrillDialog.tsx +240 -128
- package/src/components/ReportBuilder/EditorSurface.tsx +345 -69
- package/src/components/ReportBuilder/FilterDialog.tsx +516 -166
- package/src/components/ReportBuilder/FilterStrip.tsx +130 -151
- package/src/components/ReportBuilder/InlineMarkdown.tsx +71 -45
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +35 -40
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +491 -0
- package/src/components/ReportBuilder/ReportBuilder.exit.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +13 -15
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +27 -118
- package/src/components/ReportBuilder/ReportBuilder.openDraft.spec.tsx +12 -5
- package/src/components/ReportBuilder/ReportBuilder.sources.spec.tsx +2 -10
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +37 -31
- package/src/components/ReportBuilder/ReportBuilder.textTiles.spec.tsx +22 -15
- package/src/components/ReportBuilder/ReportBuilder.tsx +292 -117
- package/src/components/ReportBuilder/ReportEditor.emptyStart.spec.tsx +2 -1
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +312 -0
- package/src/components/ReportBuilder/ReportEditor.notebook.spec.tsx +26 -75
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +6 -2
- package/src/components/ReportBuilder/ReportEditor.resourceUri.spec.tsx +3 -2
- package/src/components/ReportBuilder/ReportEditor.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportEditor.textSource.spec.tsx +93 -13
- package/src/components/ReportBuilder/ReportEditor.tsx +104 -14
- package/src/components/ReportBuilder/TextTileBody.tsx +6 -7
- package/src/components/ReportBuilder/TileFrame.tsx +212 -75
- package/src/components/ReportBuilder/TileMenu.tsx +241 -140
- package/src/components/ReportBuilder/ViewPicker.tsx +349 -0
- package/src/components/ReportBuilder/addTile.compile.spec.ts +1 -1
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +102 -3
- package/src/components/ReportBuilder/addTileToDocument.ts +122 -25
- package/src/components/ReportBuilder/builderControls.ts +164 -0
- package/src/components/ReportBuilder/builderReport.ts +1 -2
- package/src/components/ReportBuilder/catalog.ts +10 -26
- package/src/components/ReportBuilder/inlineEdit.tsx +22 -54
- package/src/components/ReportBuilder/localGiven.ts +56 -0
- package/src/components/ReportBuilder/preview.spec.ts +125 -5
- package/src/components/ReportBuilder/preview.ts +60 -44
- package/src/components/ReportBuilder/readDocument.spec.ts +16 -22
- package/src/components/ReportBuilder/readDocument.ts +14 -11
- package/src/components/ReportBuilder/readForEditor.spec.ts +12 -41
- package/src/components/ReportBuilder/readForEditor.ts +4 -26
- package/src/components/ReportBuilder/reportTag.ts +28 -7
- package/src/components/ReportBuilder/sortable.tsx +15 -7
- package/src/components/ReportBuilder/spliceDocument.imports.spec.ts +1 -1
- package/src/components/ReportBuilder/tagParse.spec.ts +0 -40
- package/src/components/ReportBuilder/testing/inline.ts +25 -5
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +13 -8
- package/src/components/ReportBuilder/textTiles.spec.ts +7 -6
- package/src/components/ReportBuilder/useBuilderSelection.ts +35 -0
- package/src/components/ReportBuilder/useBuilderSession.spec.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +21 -13
- package/src/components/ReportBuilder/useDocumentEditor.spec.ts +0 -58
- package/src/components/ReportBuilder/useDocumentEditor.ts +3 -16
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +26 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +7 -2
- package/src/components/ReportBuilder/useExitGuard.ts +16 -0
- package/src/components/ReportBuilder/useFilterForm.spec.tsx +17 -0
- package/src/components/ReportBuilder/useFilterForm.ts +5 -1
- package/src/components/ReportBuilder/useOpenedDocument.ts +0 -2
- package/src/components/ReportBuilder/useReportDraft.spec.ts +149 -0
- package/src/components/ReportBuilder/useReportDraft.ts +292 -0
- package/src/components/ReportBuilder/useReportEditor.ts +3 -12
- package/src/components/ReportBuilder/useSaveChannel.ts +0 -1
- package/src/components/ReportBuilder/useTileEditing.ts +43 -12
- package/src/components/ReportBuilder/viewAnnotations.ts +29 -0
- package/src/components/ReportBuilder/widthLabel.spec.ts +25 -0
- package/src/components/ReportBuilder/widthLabel.ts +26 -0
- package/src/components/ServerProvider.tsx +11 -0
- package/src/components/controlTokens.ts +47 -0
- package/src/components/drill/markDrillableCells.ts +2 -1
- package/src/components/given/FilterButton.spec.tsx +143 -0
- package/src/components/given/FilterButton.tsx +478 -0
- package/src/components/given/GivenInput.spec.tsx +47 -0
- package/src/components/given/GivenInput.tsx +20 -2
- package/src/components/given/GivensPanel.spec.tsx +11 -3
- package/src/components/given/GivensPanel.tsx +45 -44
- package/src/components/given/filterEditing.ts +60 -0
- package/src/components/given/filterSummary.spec.ts +108 -0
- package/src/components/given/filterSummary.ts +109 -0
- package/src/components/given/paramCodec.ts +1 -1
- package/src/components/given/required.spec.ts +60 -0
- package/src/components/given/required.ts +78 -0
- package/src/components/index.ts +9 -0
- package/src/components/legacy/Dashboard.spec.tsx +3 -1
- package/src/components/legacy/index.ts +1 -1
- package/src/components/{Report/CellReport.spec.tsx → legacy/malloynb/CellRunnerView.spec.tsx} +53 -57
- package/src/components/{Report/CellReport.tsx → legacy/malloynb/CellRunnerView.tsx} +122 -136
- package/src/components/legacy/{MalloynbCells.tsx → malloynb/MalloynbCells.tsx} +6 -6
- package/src/components/legacy/{Notebook.layout.spec.tsx → malloynb/Notebook.layout.spec.tsx} +16 -7
- package/src/components/legacy/malloynb/Notebook.served.spec.tsx +84 -0
- package/src/components/legacy/{Notebook.spec.tsx → malloynb/Notebook.spec.tsx} +5 -3
- package/src/components/legacy/{Notebook.tsx → malloynb/Notebook.tsx} +9 -7
- package/src/components/{Notebook → legacy/malloynb}/NotebookCell.tsx +70 -150
- package/src/components/legacy/malloynb/cellKind.spec.ts +33 -0
- package/src/components/legacy/malloynb/cellKind.ts +24 -0
- package/src/components/{Notebook → legacy/malloynb}/types.ts +1 -1
- package/src/components/styles.ts +0 -18
- package/src/hooks/useGivensState.ts +7 -3
- package/src/hooks/useQueryResult.placeholder.spec.ts +44 -0
- package/src/hooks/useQueryResult.ts +26 -1
- package/src/theme/ThemeContext.tsx +21 -1
- package/src/theme/classes.ts +52 -0
- package/src/theme/index.ts +8 -0
- package/src/theme/resolveTheme.ts +3 -0
- package/src/theme/types.ts +7 -0
- package/src/theme/ui.spec.tsx +91 -0
- package/src/theme/ui.ts +115 -0
- package/dist/RenderedResult-BcgYjkZ0.cjs.js +0 -153
- package/dist/ServerProvider-B0dUY8be.cjs.js +0 -1
- package/dist/components/Notebook/cellKind.d.ts +0 -20
- package/dist/components/Report/LinearReport.d.ts +0 -18
- package/dist/components/ReportBuilder/SourceViewPicker.d.ts +0 -9
- package/dist/components/ReportBuilder/legacyNotebook.d.ts +0 -73
- package/dist/components/ReportBuilder/useConversionConfirm.d.ts +0 -20
- package/dist/useCompiledDocument-UY28ITET.cjs.js +0 -141
- package/src/components/Notebook/cellKind.spec.ts +0 -199
- package/src/components/Notebook/cellKind.ts +0 -74
- package/src/components/Report/LinearReport.tsx +0 -71
- package/src/components/ReportBuilder/SourceViewPicker.tsx +0 -122
- package/src/components/ReportBuilder/legacyNotebook.chart.spec.ts +0 -77
- package/src/components/ReportBuilder/legacyNotebook.convert.spec.ts +0 -626
- package/src/components/ReportBuilder/legacyNotebook.read.spec.ts +0 -338
- package/src/components/ReportBuilder/legacyNotebook.ts +0 -1122
- package/src/components/ReportBuilder/useConversionConfirm.ts +0 -55
- package/src/components/legacy/Notebook.served.spec.tsx +0 -183
- /package/dist/components/{Notebook → legacy/malloynb}/runPlan.d.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.spec.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.ts +0 -0
|
@@ -3,13 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
Alert,
|
|
6
|
+
Box,
|
|
6
7
|
Button,
|
|
7
|
-
|
|
8
|
+
ButtonBase,
|
|
8
9
|
Stack,
|
|
9
10
|
TextField,
|
|
10
11
|
Tooltip,
|
|
12
|
+
Typography,
|
|
11
13
|
} from "@mui/material";
|
|
12
|
-
import { useEffect, useMemo, useState } from "react";
|
|
14
|
+
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
|
|
15
|
+
import type { GivenValue } from "../../hooks/givenValue";
|
|
16
|
+
import { reportClasses } from "../../theme/classes";
|
|
17
|
+
import { usePublisherTheme } from "../../theme/ThemeContext";
|
|
18
|
+
import { edgeColor } from "../controlTokens";
|
|
19
|
+
import { DashboardTile } from "../Dashboard/DashboardTile";
|
|
20
|
+
import {
|
|
21
|
+
readableName,
|
|
22
|
+
ViewPicker,
|
|
23
|
+
type PickerGroup,
|
|
24
|
+
} from "../ReportBuilder/ViewPicker";
|
|
13
25
|
import {
|
|
14
26
|
createDocument,
|
|
15
27
|
reportPathForTitle,
|
|
@@ -26,11 +38,6 @@ import { AppDialog } from "../AppDialog";
|
|
|
26
38
|
import { layoutOfKind, type DocumentKind } from "../legacy/kindAdapter";
|
|
27
39
|
import type { ReportLayout } from "./documentLocation";
|
|
28
40
|
|
|
29
|
-
const LAYOUT_LABEL: Record<ReportLayout, string> = {
|
|
30
|
-
linear: "Linear: read top to bottom",
|
|
31
|
-
grid: "Grid: tiles side by side",
|
|
32
|
-
};
|
|
33
|
-
|
|
34
41
|
export interface NewDocumentDialogProps {
|
|
35
42
|
open: boolean;
|
|
36
43
|
/** Which layout the dialog opens on. Default linear. */
|
|
@@ -97,6 +104,8 @@ export function NewDocumentDialog({
|
|
|
97
104
|
const [modelPath, setModelPath] = useState("");
|
|
98
105
|
/** The chosen view, as `source::view` — one value, so the pair is always valid. */
|
|
99
106
|
const [tile, setTile] = useState("");
|
|
107
|
+
const [query, setQuery] = useState("");
|
|
108
|
+
const searchRef = useRef<HTMLInputElement>(null);
|
|
100
109
|
const [title, setTitle] = useState("");
|
|
101
110
|
const [touchedTitle, setTouchedTitle] = useState(false);
|
|
102
111
|
const [attempted, setAttempted] = useState(false);
|
|
@@ -120,7 +129,70 @@ export function NewDocumentDialog({
|
|
|
120
129
|
() => choices.get(modelPath) ?? [],
|
|
121
130
|
[choices, modelPath],
|
|
122
131
|
);
|
|
132
|
+
// Every model's views in one list, grouped by source; a key names the
|
|
133
|
+
// model too, so picking a view picks its model.
|
|
134
|
+
// What each picker key names, so a key is looked up, never split: a model
|
|
135
|
+
// path or a name could hold the separator.
|
|
136
|
+
const picks = useMemo(
|
|
137
|
+
() =>
|
|
138
|
+
new Map(
|
|
139
|
+
[...choices.entries()].flatMap(([model, pairs]) =>
|
|
140
|
+
pairs.map(
|
|
141
|
+
(pair) =>
|
|
142
|
+
[
|
|
143
|
+
pickKey(model, pair.source, pair.view),
|
|
144
|
+
{ model, source: pair.source, view: pair.view },
|
|
145
|
+
] as const,
|
|
146
|
+
),
|
|
147
|
+
),
|
|
148
|
+
),
|
|
149
|
+
[choices],
|
|
150
|
+
);
|
|
151
|
+
const groups = useMemo<PickerGroup[]>(() => {
|
|
152
|
+
const several = choices.size > 1;
|
|
153
|
+
return [...choices.entries()].flatMap(([model, pairs]) => {
|
|
154
|
+
const bySource = new Map<string, typeof pairs>();
|
|
155
|
+
for (const pair of pairs)
|
|
156
|
+
bySource.set(pair.source, [
|
|
157
|
+
...(bySource.get(pair.source) ?? []),
|
|
158
|
+
pair,
|
|
159
|
+
]);
|
|
160
|
+
return [...bySource.entries()].map(([source, views]) => ({
|
|
161
|
+
key: `${model}::${source}`,
|
|
162
|
+
label: source,
|
|
163
|
+
ariaLabel: `${source} in ${model}`,
|
|
164
|
+
...(several || views[0]?.sourceDescription
|
|
165
|
+
? {
|
|
166
|
+
detail: [
|
|
167
|
+
several ? model : undefined,
|
|
168
|
+
views[0]?.sourceDescription,
|
|
169
|
+
]
|
|
170
|
+
.filter(Boolean)
|
|
171
|
+
.join(" · "),
|
|
172
|
+
}
|
|
173
|
+
: {}),
|
|
174
|
+
entries: views.map((pair) => ({
|
|
175
|
+
key: pickKey(model, pair.source, pair.view),
|
|
176
|
+
name: pair.view,
|
|
177
|
+
title: pair.description ?? readableName(pair.view),
|
|
178
|
+
...(pair.chart ? { chart: pair.chart } : {}),
|
|
179
|
+
})),
|
|
180
|
+
}));
|
|
181
|
+
});
|
|
182
|
+
}, [choices]);
|
|
183
|
+
const pickView = (key: string) => {
|
|
184
|
+
const pick = picks.get(key);
|
|
185
|
+
if (!pick) return;
|
|
186
|
+
setModelPath(pick.model);
|
|
187
|
+
setTile(`${pick.source}::${pick.view}`);
|
|
188
|
+
};
|
|
123
189
|
const chosen = tiles.find((t) => `${t.source}::${t.view}` === tile);
|
|
190
|
+
const pickedKey = chosen
|
|
191
|
+
? pickKey(modelPath, chosen.source, chosen.view)
|
|
192
|
+
: undefined;
|
|
193
|
+
// The preview follows the pick once it settles: arrowing through the list
|
|
194
|
+
// ran a query for every view passed on the way.
|
|
195
|
+
const previewed = useSettled(chosen, 250);
|
|
124
196
|
|
|
125
197
|
useEffect(() => {
|
|
126
198
|
if (open) setLayout(initialLayout);
|
|
@@ -142,7 +214,7 @@ export function NewDocumentDialog({
|
|
|
142
214
|
|
|
143
215
|
useEffect(() => {
|
|
144
216
|
if (!open || touchedTitle || chosen === undefined) return;
|
|
145
|
-
setTitle(chosen.view
|
|
217
|
+
setTitle(readableName(chosen.view));
|
|
146
218
|
}, [open, touchedTitle, chosen]);
|
|
147
219
|
|
|
148
220
|
useEffect(() => {
|
|
@@ -150,6 +222,7 @@ export function NewDocumentDialog({
|
|
|
150
222
|
// Reset on close, so the next open starts from the package again.
|
|
151
223
|
setModelPath("");
|
|
152
224
|
setTile("");
|
|
225
|
+
setQuery("");
|
|
153
226
|
setTitle("");
|
|
154
227
|
setTouchedTitle(false);
|
|
155
228
|
setLocation(undefined);
|
|
@@ -202,6 +275,9 @@ export function NewDocumentDialog({
|
|
|
202
275
|
titleProblem !== undefined && (attempted || title.trim() !== "");
|
|
203
276
|
|
|
204
277
|
const loading = modelsLoading || isLoading;
|
|
278
|
+
const { theme } = usePublisherTheme();
|
|
279
|
+
const ui = theme.ui;
|
|
280
|
+
const edge = edgeColor(theme.cardBorder);
|
|
205
281
|
const unread = choices.size === 0 && (modelsFailed || failed.length > 0);
|
|
206
282
|
// Create is off only when nothing typed could make it succeed; the title is checked on press.
|
|
207
283
|
const blocked = loading
|
|
@@ -215,7 +291,6 @@ export function NewDocumentDialog({
|
|
|
215
291
|
: undefined;
|
|
216
292
|
const label = "report";
|
|
217
293
|
const createLabel = busy ? `Creating ${label}…` : `Create ${label}`;
|
|
218
|
-
const first = "First query";
|
|
219
294
|
const picked = tile !== "" && chosen === undefined && tiles.length > 0;
|
|
220
295
|
|
|
221
296
|
const create = async () => {
|
|
@@ -260,11 +335,14 @@ export function NewDocumentDialog({
|
|
|
260
335
|
|
|
261
336
|
return (
|
|
262
337
|
<AppDialog
|
|
338
|
+
className={`${reportClasses.dialog} ${reportClasses.newReportDialog}`}
|
|
339
|
+
maxWidth="md"
|
|
340
|
+
initialFocus={searchRef}
|
|
263
341
|
open={open}
|
|
264
342
|
// A write in flight is not abandoned by Escape or a backdrop click.
|
|
265
343
|
onClose={busy ? () => {} : onClose}
|
|
266
344
|
title={`New ${label}`}
|
|
267
|
-
description="A report is a Malloy file in the package that lays out text and queries
|
|
345
|
+
description="A report is a Malloy file in the package that lays out text and queries. Pick the view its first query shows; the rest is the builder."
|
|
268
346
|
actions={
|
|
269
347
|
<>
|
|
270
348
|
<Button onClick={onClose} disabled={busy}>
|
|
@@ -290,7 +368,7 @@ export function NewDocumentDialog({
|
|
|
290
368
|
</>
|
|
291
369
|
}
|
|
292
370
|
>
|
|
293
|
-
<Stack sx={{ gap:
|
|
371
|
+
<Stack sx={{ gap: 1.5 }}>
|
|
294
372
|
{modelsFailed ? (
|
|
295
373
|
<Alert
|
|
296
374
|
severity="error"
|
|
@@ -330,117 +408,303 @@ export function NewDocumentDialog({
|
|
|
330
408
|
</Alert>
|
|
331
409
|
)
|
|
332
410
|
)}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
{(["linear", "grid"] as const).map((l) => (
|
|
347
|
-
<MenuItem key={l} value={l}>
|
|
348
|
-
{LAYOUT_LABEL[l]}
|
|
349
|
-
</MenuItem>
|
|
350
|
-
))}
|
|
351
|
-
</TextField>
|
|
352
|
-
)}
|
|
353
|
-
<TextField
|
|
354
|
-
select
|
|
355
|
-
size="small"
|
|
356
|
-
label="Model"
|
|
357
|
-
value={choices.has(modelPath) ? modelPath : ""}
|
|
358
|
-
disabled={choices.size === 0 || busy}
|
|
359
|
-
onChange={(event) => {
|
|
360
|
-
setModelPath(event.target.value);
|
|
361
|
-
setTile("");
|
|
411
|
+
<Box
|
|
412
|
+
sx={{
|
|
413
|
+
// Edge to edge inside the window: two panes, as Add a tile.
|
|
414
|
+
mx: -3,
|
|
415
|
+
mb: -1,
|
|
416
|
+
borderTop: `1px solid ${edge}`,
|
|
417
|
+
borderBottom: `1px solid ${edge}`,
|
|
418
|
+
display: "grid",
|
|
419
|
+
gridTemplateColumns: {
|
|
420
|
+
xs: "1fr",
|
|
421
|
+
md: "320px minmax(0, 1fr)",
|
|
422
|
+
},
|
|
423
|
+
height: { md: 500 },
|
|
362
424
|
}}
|
|
363
|
-
inputProps={{ "aria-label": "Model" }}
|
|
364
|
-
helperText={
|
|
365
|
-
loading
|
|
366
|
-
? "Reading the package's models…"
|
|
367
|
-
: choices.size === 1
|
|
368
|
-
? "The only model with a view to start from."
|
|
369
|
-
: "Models with a view to start from."
|
|
370
|
-
}
|
|
371
425
|
>
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
426
|
+
<Box
|
|
427
|
+
sx={{
|
|
428
|
+
display: "flex",
|
|
429
|
+
flexDirection: "column",
|
|
430
|
+
minHeight: 0,
|
|
431
|
+
borderRight: { md: `1px solid ${edge}` },
|
|
432
|
+
maxHeight: { xs: 280, md: "none" },
|
|
433
|
+
}}
|
|
434
|
+
>
|
|
435
|
+
<ViewPicker
|
|
436
|
+
groups={groups}
|
|
437
|
+
query={query}
|
|
438
|
+
onQuery={setQuery}
|
|
439
|
+
picked={pickedKey}
|
|
440
|
+
onPick={pickView}
|
|
441
|
+
onTake={(key) => {
|
|
442
|
+
pickView(key);
|
|
443
|
+
}}
|
|
444
|
+
searchRef={searchRef}
|
|
445
|
+
disabled={busy}
|
|
446
|
+
empty={
|
|
447
|
+
<Typography
|
|
448
|
+
variant="body2"
|
|
449
|
+
sx={{ color: "text.secondary", p: 2 }}
|
|
450
|
+
>
|
|
451
|
+
{loading
|
|
452
|
+
? "Reading the package's models…"
|
|
453
|
+
: "No view to start from."}
|
|
454
|
+
</Typography>
|
|
455
|
+
}
|
|
456
|
+
/>
|
|
457
|
+
</Box>
|
|
458
|
+
<Box
|
|
459
|
+
sx={(mui) => ({
|
|
460
|
+
p: 2.5,
|
|
461
|
+
display: "flex",
|
|
462
|
+
flexDirection: "column",
|
|
463
|
+
gap: 2,
|
|
464
|
+
minHeight: 0,
|
|
465
|
+
overflowY: "auto",
|
|
466
|
+
bgcolor: `color-mix(in srgb, ${mui.palette.text.primary} 3%, ${mui.palette.background.paper})`,
|
|
467
|
+
})}
|
|
468
|
+
>
|
|
469
|
+
{canChangeLayout && (
|
|
470
|
+
<Box>
|
|
471
|
+
<PaneLabel>Layout</PaneLabel>
|
|
472
|
+
<Box
|
|
473
|
+
role="radiogroup"
|
|
474
|
+
aria-label="Layout"
|
|
475
|
+
sx={{
|
|
476
|
+
display: "grid",
|
|
477
|
+
gridTemplateColumns: "1fr 1fr",
|
|
478
|
+
gap: 1,
|
|
479
|
+
}}
|
|
480
|
+
>
|
|
481
|
+
{(["linear", "grid"] as const).map((l) => (
|
|
482
|
+
<LayoutCard
|
|
483
|
+
key={l}
|
|
484
|
+
layout={l}
|
|
485
|
+
checked={layout === l}
|
|
486
|
+
disabled={busy}
|
|
487
|
+
onPick={() => setLayout(l)}
|
|
488
|
+
/>
|
|
489
|
+
))}
|
|
490
|
+
</Box>
|
|
491
|
+
<Typography
|
|
492
|
+
variant="caption"
|
|
493
|
+
component="p"
|
|
494
|
+
sx={{ color: "text.secondary", mt: 0.75 }}
|
|
495
|
+
>
|
|
496
|
+
Switch it any time in the builder.
|
|
497
|
+
</Typography>
|
|
498
|
+
</Box>
|
|
499
|
+
)}
|
|
500
|
+
<Box>
|
|
501
|
+
<PaneLabel>First query</PaneLabel>
|
|
502
|
+
<Box
|
|
503
|
+
role="region"
|
|
504
|
+
aria-label="Preview"
|
|
505
|
+
sx={(mui) => ({
|
|
506
|
+
height: 200,
|
|
507
|
+
display: "flex",
|
|
508
|
+
position: "relative",
|
|
509
|
+
overflow: "hidden",
|
|
510
|
+
borderRadius: ui.radius.tile,
|
|
511
|
+
border: `1px solid ${edge}`,
|
|
512
|
+
bgcolor: mui.palette.background.paper,
|
|
513
|
+
"&::after": {
|
|
514
|
+
content: '""',
|
|
515
|
+
position: "absolute",
|
|
516
|
+
left: 0,
|
|
517
|
+
right: 0,
|
|
518
|
+
bottom: 0,
|
|
519
|
+
height: 40,
|
|
520
|
+
pointerEvents: "none",
|
|
521
|
+
background: `linear-gradient(to bottom, transparent, ${mui.palette.background.paper})`,
|
|
522
|
+
},
|
|
523
|
+
})}
|
|
524
|
+
>
|
|
525
|
+
{chosen && previewed ? (
|
|
526
|
+
<Box sx={{ flex: 1, minWidth: 0, px: 2, pt: 1.5 }}>
|
|
527
|
+
<DashboardTile
|
|
528
|
+
environmentName={environmentName}
|
|
529
|
+
packageName={packageName}
|
|
530
|
+
{...(versionId !== undefined
|
|
531
|
+
? { versionId }
|
|
532
|
+
: {})}
|
|
533
|
+
modelPath={modelPath}
|
|
534
|
+
tile={`${previewed.source} -> ${previewed.view}`}
|
|
535
|
+
label={
|
|
536
|
+
title.trim() || readableName(previewed.view)
|
|
537
|
+
}
|
|
538
|
+
borderless
|
|
539
|
+
givens={NO_GIVENS}
|
|
540
|
+
declaredTypes={NO_TYPES}
|
|
541
|
+
height={180}
|
|
542
|
+
/>
|
|
543
|
+
</Box>
|
|
544
|
+
) : (
|
|
545
|
+
<Typography
|
|
546
|
+
variant="body2"
|
|
547
|
+
sx={{ color: "text.secondary", m: "auto" }}
|
|
548
|
+
>
|
|
549
|
+
{picked
|
|
550
|
+
? "The view you picked is no longer in this model; pick another."
|
|
551
|
+
: "Pick a view to start from."}
|
|
552
|
+
</Typography>
|
|
553
|
+
)}
|
|
554
|
+
</Box>
|
|
555
|
+
<Typography
|
|
556
|
+
variant="caption"
|
|
557
|
+
component="p"
|
|
558
|
+
sx={{ color: "text.secondary", mt: 0.75 }}
|
|
559
|
+
>
|
|
560
|
+
More are added in the builder.
|
|
561
|
+
</Typography>
|
|
562
|
+
</Box>
|
|
563
|
+
<TextField
|
|
564
|
+
size="small"
|
|
565
|
+
label="Title"
|
|
566
|
+
value={title}
|
|
567
|
+
disabled={busy}
|
|
568
|
+
onChange={(event) => {
|
|
569
|
+
setTouchedTitle(true);
|
|
570
|
+
setTitle(event.target.value);
|
|
571
|
+
}}
|
|
572
|
+
InputLabelProps={{ shrink: true }}
|
|
573
|
+
inputProps={{ "aria-label": "Report title" }}
|
|
574
|
+
error={showTitleProblem}
|
|
575
|
+
helperText={
|
|
576
|
+
showTitleProblem
|
|
577
|
+
? titleProblem
|
|
578
|
+
: target.route === "package"
|
|
579
|
+
? "Names the file too, unless you type a location."
|
|
580
|
+
: (savedAs ??
|
|
581
|
+
`Saved as a new ${label} in the host's store, and opened in the builder.`)
|
|
582
|
+
}
|
|
583
|
+
/>
|
|
584
|
+
<TextField
|
|
585
|
+
size="small"
|
|
586
|
+
label="Location"
|
|
587
|
+
value={location ?? suggested ?? ""}
|
|
588
|
+
placeholder="report.malloy"
|
|
589
|
+
disabled={busy}
|
|
590
|
+
onChange={(event) => setLocation(event.target.value)}
|
|
591
|
+
InputLabelProps={{ shrink: true }}
|
|
592
|
+
inputProps={{ "aria-label": "Location" }}
|
|
593
|
+
error={locationProblem !== undefined}
|
|
594
|
+
helperText={
|
|
595
|
+
locationProblem ??
|
|
596
|
+
(path
|
|
597
|
+
? `Written as ${path} in the package, and opened in the builder.`
|
|
598
|
+
: "A path in the package; the package root by default.")
|
|
599
|
+
}
|
|
600
|
+
/>
|
|
601
|
+
{failure && <Alert severity="error">{failure}</Alert>}
|
|
602
|
+
</Box>
|
|
603
|
+
</Box>
|
|
443
604
|
</Stack>
|
|
444
605
|
</AppDialog>
|
|
445
606
|
);
|
|
446
607
|
}
|
|
608
|
+
|
|
609
|
+
/** `value` once it has held still for `ms`; undefined until then. */
|
|
610
|
+
function useSettled<T>(value: T, ms: number): T | undefined {
|
|
611
|
+
const [settled, setSettled] = useState<T | undefined>(undefined);
|
|
612
|
+
useEffect(() => {
|
|
613
|
+
const timer = window.setTimeout(() => setSettled(value), ms);
|
|
614
|
+
return () => window.clearTimeout(timer);
|
|
615
|
+
}, [value, ms]);
|
|
616
|
+
return settled;
|
|
617
|
+
}
|
|
618
|
+
/** A picker key: the model, the source and the view, so the pick names all three. */
|
|
619
|
+
const pickKey = (model: string, source: string, view: string) =>
|
|
620
|
+
`${model}::${source}::${view}`;
|
|
621
|
+
|
|
622
|
+
/** A preview runs with no filter values: the model's own defaults. */
|
|
623
|
+
const NO_GIVENS = new Map<string, GivenValue>();
|
|
624
|
+
const NO_TYPES = new Map<string, string | undefined>();
|
|
625
|
+
|
|
626
|
+
/** A small heading over a part of the window. */
|
|
627
|
+
function PaneLabel({ children }: { children: ReactNode }) {
|
|
628
|
+
const ui = usePublisherTheme().theme.ui;
|
|
629
|
+
return (
|
|
630
|
+
<Typography
|
|
631
|
+
component="div"
|
|
632
|
+
sx={{ ...ui.type.label, color: "text.secondary", mb: 0.75 }}
|
|
633
|
+
>
|
|
634
|
+
{children}
|
|
635
|
+
</Typography>
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/** A layout as a card: its picture and its name, as the filter kinds are. */
|
|
640
|
+
function LayoutCard({
|
|
641
|
+
layout,
|
|
642
|
+
checked,
|
|
643
|
+
disabled,
|
|
644
|
+
onPick,
|
|
645
|
+
}: {
|
|
646
|
+
layout: ReportLayout;
|
|
647
|
+
checked: boolean;
|
|
648
|
+
disabled: boolean;
|
|
649
|
+
onPick: () => void;
|
|
650
|
+
}) {
|
|
651
|
+
const { theme } = usePublisherTheme();
|
|
652
|
+
const ui = theme.ui;
|
|
653
|
+
const edge = edgeColor(theme.cardBorder);
|
|
654
|
+
const ink = checked ? theme.accent : "currentColor";
|
|
655
|
+
return (
|
|
656
|
+
<ButtonBase
|
|
657
|
+
role="radio"
|
|
658
|
+
aria-checked={checked}
|
|
659
|
+
aria-label={layout === "linear" ? "Linear" : "Grid"}
|
|
660
|
+
disabled={disabled}
|
|
661
|
+
onClick={onPick}
|
|
662
|
+
sx={(mui) => ({
|
|
663
|
+
justifyContent: "flex-start",
|
|
664
|
+
gap: 1.25,
|
|
665
|
+
px: 1.25,
|
|
666
|
+
py: 1,
|
|
667
|
+
borderRadius: ui.radius.tile,
|
|
668
|
+
border: `1px solid ${checked ? theme.accent : edge}`,
|
|
669
|
+
boxShadow: checked ? `0 0 0 1px ${theme.accent}` : "none",
|
|
670
|
+
bgcolor: checked
|
|
671
|
+
? `color-mix(in srgb, ${theme.accent} 6%, ${mui.palette.background.paper})`
|
|
672
|
+
: mui.palette.background.paper,
|
|
673
|
+
color: mui.palette.text.secondary,
|
|
674
|
+
textAlign: "left",
|
|
675
|
+
})}
|
|
676
|
+
>
|
|
677
|
+
<svg width="34" height="26" viewBox="0 0 34 26" aria-hidden>
|
|
678
|
+
{layout === "linear" ? (
|
|
679
|
+
<g fill="none" stroke={ink} strokeWidth="1.5">
|
|
680
|
+
<rect x="3" y="2" width="28" height="7" rx="1.5" />
|
|
681
|
+
<rect x="3" y="12" width="28" height="5" rx="1.5" />
|
|
682
|
+
<path d="M5 21.5h20" strokeLinecap="round" />
|
|
683
|
+
</g>
|
|
684
|
+
) : (
|
|
685
|
+
<g fill="none" stroke={ink} strokeWidth="1.5">
|
|
686
|
+
<rect x="2" y="2" width="14" height="10" rx="1.5" />
|
|
687
|
+
<rect x="18" y="2" width="14" height="10" rx="1.5" />
|
|
688
|
+
<rect x="2" y="14" width="30" height="10" rx="1.5" />
|
|
689
|
+
</g>
|
|
690
|
+
)}
|
|
691
|
+
</svg>
|
|
692
|
+
<Box>
|
|
693
|
+
<Box
|
|
694
|
+
sx={{
|
|
695
|
+
...ui.type.control,
|
|
696
|
+
fontWeight: checked ? ui.type.label.fontWeight : 500,
|
|
697
|
+
color: checked ? theme.accent : "text.primary",
|
|
698
|
+
}}
|
|
699
|
+
>
|
|
700
|
+
{layout === "linear" ? "Linear" : "Grid"}
|
|
701
|
+
</Box>
|
|
702
|
+
<Box sx={{ ...ui.type.caption, color: "text.secondary" }}>
|
|
703
|
+
{layout === "linear"
|
|
704
|
+
? "Read top to bottom"
|
|
705
|
+
: "Tiles side by side"}
|
|
706
|
+
</Box>
|
|
707
|
+
</Box>
|
|
708
|
+
</ButtonBase>
|
|
709
|
+
);
|
|
710
|
+
}
|
|
@@ -66,7 +66,7 @@ const rows = async () => {
|
|
|
66
66
|
const section = screen.getByRole("region", { name: "Reports" });
|
|
67
67
|
return Array.from(section.querySelectorAll('[role="button"]'))
|
|
68
68
|
.map((row) => row.textContent ?? "")
|
|
69
|
-
.filter((text) => text !== "
|
|
69
|
+
.filter((text) => text !== "Report");
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
beforeEach(() => {
|
|
@@ -141,7 +141,7 @@ function mount(
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
const settled = () => screen.findByText("old");
|
|
144
|
-
const NEW = { name: "
|
|
144
|
+
const NEW = { name: "Add report" } as const;
|
|
145
145
|
|
|
146
146
|
beforeEach(() => {
|
|
147
147
|
clearCache();
|
|
@@ -254,12 +254,11 @@ const openNew = async (layout: "linear" | "grid" = "linear") => {
|
|
|
254
254
|
await waitFor(() =>
|
|
255
255
|
expect(screen.getByLabelText("Report title")).toHaveProperty(
|
|
256
256
|
"value",
|
|
257
|
-
"
|
|
257
|
+
"By category",
|
|
258
258
|
),
|
|
259
259
|
);
|
|
260
260
|
if (layout === "grid") {
|
|
261
|
-
fireEvent.
|
|
262
|
-
fireEvent.click(screen.getByRole("option", { name: /^Grid/ }));
|
|
261
|
+
fireEvent.click(screen.getByRole("radio", { name: "Grid" }));
|
|
263
262
|
}
|
|
264
263
|
};
|
|
265
264
|
|
|
@@ -284,8 +283,10 @@ describe("creating", () => {
|
|
|
284
283
|
expect(screen.getByLabelText("Report title")).toBeDefined(),
|
|
285
284
|
);
|
|
286
285
|
expect(
|
|
287
|
-
screen
|
|
288
|
-
|
|
286
|
+
screen
|
|
287
|
+
.getByRole("radio", { name: "Linear" })
|
|
288
|
+
.getAttribute("aria-checked"),
|
|
289
|
+
).toBe("true");
|
|
289
290
|
});
|
|
290
291
|
|
|
291
292
|
it("writes a linear report at the package root, refreshes the listings, and opens its editor", async () => {
|