@datagrok/curves 1.13.2 → 1.13.4
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/.turbo/turbo-build.log +5 -7
- package/CHANGELOG.md +13 -1
- package/README.md +2 -2
- package/bdd/bdd.config.json +1 -0
- package/bdd/bindings/curves.ts +34 -0
- package/bdd/features/MISSING.md +18 -0
- package/bdd/features/data/curve-json-columns.feature +66 -0
- package/bdd/features/data/pzfx-files.feature +25 -0
- package/bdd/features/grid/curve-cells.feature +55 -0
- package/bdd/features/grid/curve-options.feature +52 -0
- package/bdd/features/grid/statistic-columns.feature +47 -0
- package/bdd/features/guides/INDEX.md +8 -0
- package/bdd/features/guides/curves-legend-cells.feature +37 -0
- package/bdd/features/guides/curves-legend.feature +42 -0
- package/bdd/features/viewers/curves-in-trellis.feature +90 -0
- package/bdd/features/viewers/multi-curve-viewer.feature +92 -0
- package/bdd/generated/data/curve-json-columns.test.ts +75 -0
- package/bdd/generated/data/pzfx-files.test.ts +50 -0
- package/bdd/generated/grid/curve-cells.test.ts +67 -0
- package/bdd/generated/grid/curve-options.test.ts +66 -0
- package/bdd/generated/grid/statistic-columns.test.ts +64 -0
- package/bdd/generated/guides/curves-legend-cells.test.ts +47 -0
- package/bdd/generated/guides/curves-legend.test.ts +48 -0
- package/bdd/generated/viewers/curves-in-trellis.test.ts +98 -0
- package/bdd/generated/viewers/multi-curve-viewer.test.ts +103 -0
- package/bdd/package.json +1 -0
- package/bdd/tsconfig.json +13 -0
- package/dist/package-test.js +16 -16
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +10 -3
- package/src/fit/fit-grid-cell-handler.ts +29 -4
- package/src/fit/fit-interaction.ts +15 -9
- package/src/fit/fit-legend.ts +35 -9
- package/src/fit/fit-renderer.ts +24 -9
- package/src/fit/multi-curve-viewer.ts +82 -19
- package/src/package.g.ts +1 -0
- package/src/package.ts +1 -1
- package/src/tests/calculated-columns-tests.ts +3 -3
- package/src/tests/curve-data.ts +5 -1
- package/src/tests/curves-cell-renderer-tests.ts +10 -10
- package/src/tests/detector-tests.ts +26 -0
- package/src/tests/legend-tests.ts +24 -1
- package/src/tests/multi-curve-viewer-tests.ts +90 -17
- package/src/tests/panel-renderer-tests.ts +75 -30
- package/src/tests/project-tests.ts +30 -12
- package/test-console-output-1.log +193 -169
- package/test-record-1.mp4 +0 -0
- package/webpack.config.js +3 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @datagrok/curves@1.13.
|
|
2
|
+
> @datagrok/curves@1.13.4 build /home/runner/work/public/public/packages/Curves
|
|
3
3
|
> grok build
|
|
4
4
|
|
|
5
5
|
Curves warnings
|
|
6
|
+
[33mUnknown header tag: each axis at its own scale In the file: src/fit/multi-curve-viewer.ts.[0m
|
|
6
7
|
[33mUnknown header tag: the round trip this work exists for In the file: src/tests/panel-renderer-tests.ts.[0m
|
|
7
|
-
[33mLatest package version (1.13.2) is not in CHANGELOG
|
|
8
|
-
[0m
|
|
9
|
-
[33mChangelog guideline: https://datagrok.ai/help/develop/dev-process/changelog-policy#changelog-guideline[0m
|
|
10
8
|
WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
|
|
11
9
|
│ Assets:
|
|
12
|
-
│ package-test.js (
|
|
10
|
+
│ package-test.js (350.910 KiB)
|
|
13
11
|
|
|
14
12
|
WARNING in ⚠ entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244.141 KiB). This can impact web performance.
|
|
15
13
|
│ Entrypoints:
|
|
16
|
-
│ test (
|
|
14
|
+
│ test (350.910 KiB)
|
|
17
15
|
│ package-test.js
|
|
18
16
|
|
|
19
17
|
WARNING in ⚠ Rspack performance recommendations:
|
|
@@ -21,4 +19,4 @@ WARNING in ⚠ Rspack performance recommendations:
|
|
|
21
19
|
│ For more info visit https://rspack.rs/guide/optimization/code-splitting
|
|
22
20
|
|
|
23
21
|
Rspack compiled with 3 warnings
|
|
24
|
-
bundled Curves in 1.1s
|
|
22
|
+
bundled Curves in 1.1s 191 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Curves changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1.13.4 (2026-11-05)
|
|
4
|
+
|
|
5
|
+
* Dependencies: Pinned `uuid` to ^11.1.1 through `overrides`, so the `uuid` 8.3.2 that exceljs 4.4.0 brings is no longer resolved (GHSA-w5hq-g745-h8pq)
|
|
6
|
+
* Tests: Added BDD claims for Show Selected Rows Curves of the Multi curve viewer, Log Y kept by a saved layout in a trellis, the Level choices of the curve options and a JSON formula column typed as `fit`
|
|
7
|
+
* Multi curve viewer: Added the axes it draws (`x range`, `y range`) and the number of points outside them to `getWidgetStatus()`; extracted the renderer's layout into one method (`layOutChart`) both use
|
|
8
|
+
* [public#4226](https://github.com/datagrok-ai/public/issues/4226): Data | Curves | Data to Curves is disabled unless the current view is a table view
|
|
9
|
+
* [public#4306](https://github.com/datagrok-ai/public/issues/4306): Fixed the Context Panel replacing the Curves panes with the generic cell panes a second after a curve cell is clicked
|
|
10
|
+
* Multi curve viewer: Added an automation surface: `getWidgetStatus()` reports the canvas, a hit area per legend row it drew and one for `+N more`, and readings of the curves shown and the legend (shown, corner, rows, shortened rows, hidden); `isRenderPending` and `onRendered` cover the debounced render after a current, mouse-over or selected row change
|
|
11
|
+
* Multi curve viewer: Fixed **Show Legend**, **Statistics mode** and **Aggregation** reading empty in the Context Panel while the plot used their defaults: Show Legend was unchecked over a legend that was drawn, so the first click changed nothing
|
|
12
|
+
* Curves: Fixed **Level** falling back to Column when the Context Panel rebuilt the panel of the same cell, about a second after the click: an option set at Cell level then reached the whole column
|
|
13
|
+
* Curves: Fixed a click on a second curve cell within a second of the first leaving the first cell in the Context Panel. The click set the current object frozen for a second, so the panel kept the previous cell's panes and a Cell level option looked as if it had reached the next cell
|
|
14
|
+
|
|
15
|
+
## 1.13.3 (2026-09-23)
|
|
4
16
|
|
|
5
17
|
* Curves: Saving a project or layout with a curve column works again on platforms up to 1.27.x. Painting a cell wrote the default options into a dataframe `.%fit` tag, which those platforms cannot serialize into a layout. Reading the options no longer writes them; a level's tag is written only when an option is set there, and a legacy `.fit` tag is read in place until then
|
|
6
18
|
|
package/README.md
CHANGED
|
@@ -227,5 +227,5 @@ is extensible, so you can easily write your own reader - [see examples](src/plat
|
|
|
227
227
|
|
|
228
228
|
See also:
|
|
229
229
|
|
|
230
|
-
- [Packages](
|
|
231
|
-
- [JavaScript API](
|
|
230
|
+
- [Packages](https://datagrok.ai/help/develop#packages)
|
|
231
|
+
- [JavaScript API](https://datagrok.ai/help/develop/packages/js-api)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"tiers":["viewers"],"audits":{"layout":"report","errors":"report","balloons":"report","operability":"report"}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Curves' own scene setting. The datasets are the package's files on the stand (`System:AppData/Curves/...`,
|
|
2
|
+
published with the package). The legend of the Multi curve viewer is read through the viewer's own
|
|
3
|
+
status (`getWidgetStatus`: a `legend row N` / `shortened legend row N` area per row, `legend more`, and
|
|
4
|
+
the `curves` and `legend …` readings), so the features use the library's area and reading steps. */
|
|
5
|
+
import {Page} from '@playwright/test';
|
|
6
|
+
import {dataset, Given} from '@datagrok-libraries/bdd';
|
|
7
|
+
import {silent} from '@datagrok-libraries/bdd/runtime';
|
|
8
|
+
|
|
9
|
+
declare const grok: any;
|
|
10
|
+
declare const DG: any;
|
|
11
|
+
|
|
12
|
+
dataset('assay-curves', {path: 'System:AppData/Curves/demo/Assay_Curves.csv', aliases: ['Assay Curves'],
|
|
13
|
+
description: '43 dose-response curves in "Fitted Curve", one per row, with "Compound|Assay|Target" naming each'});
|
|
14
|
+
|
|
15
|
+
/* The legend needs a plot of 325 x 275 px at least (`FitConstants.MIN_LEGEND_PX_*`): beside the grid in a
|
|
16
|
+
help GIF's 800 px window the viewer docked at its default half would draw none, and no library step
|
|
17
|
+
docks a viewer at a share of the view. It overlays the selected rows only, as in the Assay Curves demo:
|
|
18
|
+
the current row's curve is one of them, and would be named twice. */
|
|
19
|
+
export const addWideViewer = Given('user adds a MultiCurveViewer viewer of the selected rows taking {int} percent of the view width', async (page: Page, percent: number) => {
|
|
20
|
+
silent(page);
|
|
21
|
+
await page.evaluate(async (ratio) => {
|
|
22
|
+
const tv = grok.shell.tv;
|
|
23
|
+
const v = await tv.dataFrame.plot.fromType('MultiCurveViewer', {showCurrentRowCurve: false, showMouseOverRowCurve: false});
|
|
24
|
+
tv.dockManager.dock(v, DG.DOCK_TYPE.RIGHT, null, 'Multi curve viewer', ratio);
|
|
25
|
+
}, percent / 100);
|
|
26
|
+
await page.locator('[name="viewer-MultiCurveViewer"]').filter({visible: true}).first().waitFor();
|
|
27
|
+
}, {tier: 'api', description: 'a multi curve viewer on the current table, docked to the right of the grid at that share of the view; silent in a guide'});
|
|
28
|
+
|
|
29
|
+
/* A grid cell draws a legend only from 325 x 275 px inside its 6 px margin, wider than a grid makes a
|
|
30
|
+
column by default; no library step sets a grid column's width. */
|
|
31
|
+
export const columnWidth = Given('the {string} column of the grid is {int} px wide', async (page: Page, column: string, width: number) => {
|
|
32
|
+
silent(page);
|
|
33
|
+
await page.evaluate(([name, w]) => { grok.shell.tv.grid.columns.byName(name).width = w; }, [column, width] as [string, number]);
|
|
34
|
+
}, {tier: 'api', description: 'the width of one column of the current table view\'s grid; silent in a guide'});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Curves features — what is missing
|
|
2
|
+
|
|
3
|
+
## Resolved
|
|
4
|
+
|
|
5
|
+
- **Multi curve viewer readings** (2026-10-18): `getWidgetStatus()` reports `curves`, `legend shown`, `legend corner`, `legend rows`, `legend row N`, `legend shortened rows`, `legend hidden` and a `legend row N` / `shortened legend row N` / `legend more` area per legend row, with `isRenderPending` and `onRendered`; `multi-curve-viewer` and the `curves-legend` guide claim them.
|
|
6
|
+
- **The axes of the Multi curve viewer** (GROK-20661): `getWidgetStatus()` lays the chart out as the render does
|
|
7
|
+
(`FitChartCellRenderer.layOutChart`) and reports `x range`, `y range` and `points outside the axes`; the feature
|
|
8
|
+
claims every point inside them with all five columns, the package test a cell's declared range not narrowing
|
|
9
|
+
the overlay.
|
|
10
|
+
|
|
11
|
+
## Still open
|
|
12
|
+
|
|
13
|
+
Nothing planned.
|
|
14
|
+
|
|
15
|
+
## Won't do
|
|
16
|
+
|
|
17
|
+
- **Curve cell readings in the grid and in Context Panel > Chart**: what a curve cell draws is the renderer's (ruling of 2026-10-06); the package tests it (legend-tests, panel-renderer-tests, converter-tests).
|
|
18
|
+
- **Points as hit areas in a cell** (outlier toggling, curves-statistics.md scenario 4): renderer drawing again, covered by the package tests, not a feature (ruling of 2026-10-06).
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Curve JSON typed into a formula, a series without a name, and a broken curve cell
|
|
3
|
+
Translated from TestTrack Curves/curves-data-robustness.md, scenarios 1 and 2, and
|
|
4
|
+
curves-statistics.md, scenario 3. A formula that returns JSON adds its column and leaves Add New
|
|
5
|
+
Column usable (public#3792, GROK-20232), and a formula that returns curve JSON with no fit function
|
|
6
|
+
adds a column of semantic type "fit" (scenario 1, steps 5-6); a series without a name still gives its statistic column
|
|
7
|
+
through the "+" of the Fit pane (GROK-17492); a click on a curve cell holding truncated JSON logs no
|
|
8
|
+
error (GROK-15258, public#2748).
|
|
9
|
+
|
|
10
|
+
Curve JSON with no fit function is detected as a curve column (GROK-18073) in the package's
|
|
11
|
+
detector-tests ("curve JSON needs only series with points"); what a broken cell draws (the red cross)
|
|
12
|
+
is the renderer's, tested by converter-tests (parseCellValue.malformedJson).
|
|
13
|
+
|
|
14
|
+
Background:
|
|
15
|
+
Given user is logged in
|
|
16
|
+
And simple mode is off
|
|
17
|
+
And the package autostarts have completed
|
|
18
|
+
And the "Curves" package is installed
|
|
19
|
+
|
|
20
|
+
Scenario: A JSON formula adds its column and Add New Column opens again
|
|
21
|
+
Given user opens demog-1000 dataset
|
|
22
|
+
When user picks "Edit > Add New Column..." from the top menu
|
|
23
|
+
Then "Add New Column" dialog should be visible
|
|
24
|
+
When user pastes "{}" into code editor in "Add New Column" dialog
|
|
25
|
+
And user types "jsoncol" into column name input
|
|
26
|
+
And user clicks on OK button in "Add New Column" dialog
|
|
27
|
+
Then the "Add New Column" dialog should close
|
|
28
|
+
And the table should have a column "jsoncol"
|
|
29
|
+
And no errors should have been logged
|
|
30
|
+
When user picks "Edit > Add New Column..." from the top menu
|
|
31
|
+
Then "Add New Column" dialog should be visible
|
|
32
|
+
When user pastes "'{\"series\":[{\"points\":[{\"x\":0.1,\"y\":1},{\"x\":1,\"y\":5},{\"x\":10,\"y\":9}]}]}'" into code editor in "Add New Column" dialog
|
|
33
|
+
And user types "curvecol" into column name input
|
|
34
|
+
And user clicks on OK button in "Add New Column" dialog
|
|
35
|
+
Then the "Add New Column" dialog should close
|
|
36
|
+
And the table should have a column "curvecol"
|
|
37
|
+
And "curvecol" column should have semantic type "fit"
|
|
38
|
+
And no errors should have been logged
|
|
39
|
+
|
|
40
|
+
Scenario: The statistic of a series without a name becomes a column
|
|
41
|
+
Given user closes all views
|
|
42
|
+
And user opens a table "unnamed-series" with:
|
|
43
|
+
| id | curve |
|
|
44
|
+
| 1 | {"series":[{"points":[{"x":0.1,"y":1},{"x":1,"y":5},{"x":10,"y":9}]}]} |
|
|
45
|
+
| 2 | {"series":[{"points":[{"x":0.1,"y":2},{"x":1,"y":6},{"x":10,"y":8}]}]} |
|
|
46
|
+
And the context panel is open
|
|
47
|
+
When user clicks on the "cell 1 of curve" area of grid
|
|
48
|
+
Then the current column should be "curve"
|
|
49
|
+
Given "Fit" pane in context panel is expanded
|
|
50
|
+
When user clicks on first "Calculate rSquared for the whole column" icon in context panel
|
|
51
|
+
Then the table should have the columns "id, curve, curve 1 rSquared"
|
|
52
|
+
And no errors should have been logged
|
|
53
|
+
And no error or warning balloon should have been shown
|
|
54
|
+
|
|
55
|
+
Scenario: A click on a truncated curve cell logs no error
|
|
56
|
+
Given user closes all views
|
|
57
|
+
And user opens a table "broken-curves" with:
|
|
58
|
+
| id | curve |
|
|
59
|
+
| 1 | {"series":[{"points":[{"x":0.1,"y":1},{"x":1,"y":5},{"x":10,"y":9}]}]} |
|
|
60
|
+
| 2 | {"series":[{"points":[{"x":0.1 |
|
|
61
|
+
| 3 | {"series":[{"points":[{"x":0.1,"y":2},{"x":1,"y":6},{"x":10,"y":8}]}]} |
|
|
62
|
+
Then "curve" column should have semantic type "fit"
|
|
63
|
+
When user clicks on the "cell 2 of curve" area of grid
|
|
64
|
+
Then the current column should be "curve"
|
|
65
|
+
And no errors should have been logged
|
|
66
|
+
And no error or warning balloon should have been shown
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Feature: A GraphPad Prism file opens from Browse
|
|
2
|
+
Translated from TestTrack Curves/curves-msr-pzfx.md, scenario 2. Curves 1.12.0 added a viewer
|
|
3
|
+
and a handler for .pzfx files: a double-click in Browse, or Open in the context menu of the file,
|
|
4
|
+
previews the file in a view of its name.
|
|
5
|
+
Not claimed: the curve column of the preview grid draws charts — the renderer reports no readings.
|
|
6
|
+
|
|
7
|
+
Background:
|
|
8
|
+
Given user is logged in
|
|
9
|
+
And simple mode is off
|
|
10
|
+
And the package autostarts have completed
|
|
11
|
+
And the "Curves" package is installed
|
|
12
|
+
And the browse panel is open
|
|
13
|
+
And Files tree node inside browse tree is expanded
|
|
14
|
+
And Files---App-Data tree node inside browse tree is expanded
|
|
15
|
+
And Files---App-Data---Curves tree node inside browse tree is expanded
|
|
16
|
+
|
|
17
|
+
Scenario: A double-click previews the file in a view of its name
|
|
18
|
+
When user double-clicks on Files---App-Data---Curves---dose-response-4pl.pzfx tree node inside browse tree
|
|
19
|
+
Then the "dose-response-4pl.pzfx" view should be current
|
|
20
|
+
And no errors should have been logged
|
|
21
|
+
|
|
22
|
+
Scenario: Open from the context menu opens the file
|
|
23
|
+
When user picks "Open" from the context menu of Files---App-Data---Curves---dose-response-4pl.pzfx tree node inside browse tree
|
|
24
|
+
Then the "dose-response-4pl.pzfx" view should be current
|
|
25
|
+
And no errors should have been logged
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Curve cells in the grid and their Context Panel
|
|
3
|
+
Translated from TestTrack Curves/curves-grid.md. The curves demo table (System:DemoFiles/curves.csv,
|
|
4
|
+
30 rows) holds five curve columns. A click on a curve cell shows its Options, Chart and Fit panes in
|
|
5
|
+
the Context Panel, its Options set at the Column level, which offers Dataframe and Cell as well
|
|
6
|
+
(scenario 1, step 4); a double-click opens the chart in the Edit chart dialog. Every click is preceded by
|
|
7
|
+
scrolling the grid to the column, and followed by the current column it made, so a pane is read for
|
|
8
|
+
the cell that was meant.
|
|
9
|
+
|
|
10
|
+
In the package's tests instead: the five columns detected as curves (detector-tests), the fit
|
|
11
|
+
functions and droplines the Options pane offers ("a custom fit function is offered once…", "…droplines
|
|
12
|
+
only for a fit that has asymptotes") and the summary inputs a one-curve cell does without ("a
|
|
13
|
+
single-series cell has nothing to aggregate", panel-renderer-tests). Not claimed: what a cell draws on
|
|
14
|
+
its canvas (points, fit line, droplines, statistics, the red cross of a cell that cannot be drawn) -
|
|
15
|
+
the renderer's, tested by the package.
|
|
16
|
+
|
|
17
|
+
Background:
|
|
18
|
+
Given user is logged in
|
|
19
|
+
And simple mode is off
|
|
20
|
+
And the package autostarts have completed
|
|
21
|
+
And the "Curves" package is installed
|
|
22
|
+
And user opens curves dataset
|
|
23
|
+
And the context panel is open
|
|
24
|
+
|
|
25
|
+
Scenario: A cell with two curves shows its panes and the level its options are set at
|
|
26
|
+
When user scrolls the grid to the "multiple styled series" column
|
|
27
|
+
And user clicks on the "cell 2 of multiple styled series" area of grid
|
|
28
|
+
Then the current column should be "multiple styled series"
|
|
29
|
+
And "Options" pane in context panel should be visible
|
|
30
|
+
And "Chart" pane in context panel should be visible
|
|
31
|
+
And "Fit" pane in context panel should be visible
|
|
32
|
+
Given "Options" pane in context panel is expanded
|
|
33
|
+
Then "Level" input in context panel should have value "Column"
|
|
34
|
+
And "Level" input in context panel should offer the choice "Dataframe"
|
|
35
|
+
And "Level" input in context panel should offer the choice "Cell"
|
|
36
|
+
And "Statistics mode" input in context panel should be visible
|
|
37
|
+
And no errors should have been logged
|
|
38
|
+
|
|
39
|
+
Scenario: A double-click opens the chart in the Edit chart dialog, and Close closes it
|
|
40
|
+
When user scrolls the grid to the "multiple prefit" column
|
|
41
|
+
And user double-clicks on the "cell 3 of multiple prefit" area of grid
|
|
42
|
+
Then "Edit chart" dialog should be visible
|
|
43
|
+
When user clicks on "Close" button in "Edit chart" dialog
|
|
44
|
+
Then "Edit chart" dialog should be absent
|
|
45
|
+
And the table should have 30 rows
|
|
46
|
+
And no errors should have been logged
|
|
47
|
+
|
|
48
|
+
Scenario: The filter panel and a pinned curve column take the curves without errors
|
|
49
|
+
When user clicks on filter icon in toolbar
|
|
50
|
+
Then filter panel should be visible
|
|
51
|
+
And no errors should have been logged
|
|
52
|
+
When user scrolls the grid to the "multiple prefit" column
|
|
53
|
+
And user picks "Pin > Pin Column" from the context menu of the "header multiple prefit" area of grid
|
|
54
|
+
Then the grid should pin the columns "multiple prefit"
|
|
55
|
+
And no errors should have been logged
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Curve options and the level they are set at
|
|
3
|
+
Translated from TestTrack Curves/curves-options.md, scenarios 1 and 2. An option set at Column level
|
|
4
|
+
in the Options pane of one curve cell is what the other cells of that column show, and another column
|
|
5
|
+
keeps its own; an option set at Cell level stays in its cell (GROK-12239). The option is read where a
|
|
6
|
+
person reads it, in the Options pane of another cell: since #4306 a click on a second curve cell keeps
|
|
7
|
+
the curve panes in the Context Panel.
|
|
8
|
+
|
|
9
|
+
In the package's tests instead: a Column level option kept by a layout applied to the table opened
|
|
10
|
+
again (panel-renderer-tests "a column-level option survives a layout applied to a fresh table") and by
|
|
11
|
+
a project (project-tests "column-level option survives a project"), scenario 6. Not claimed: what an
|
|
12
|
+
option changes on the canvas - connect dots, markers, the confidence band, candlesticks (scenarios
|
|
13
|
+
3-5) are the renderer's.
|
|
14
|
+
|
|
15
|
+
Background:
|
|
16
|
+
Given user is logged in
|
|
17
|
+
And simple mode is off
|
|
18
|
+
And the package autostarts have completed
|
|
19
|
+
And the "Curves" package is installed
|
|
20
|
+
And user opens curves dataset
|
|
21
|
+
And the context panel is open
|
|
22
|
+
|
|
23
|
+
Scenario: A Column level fit function reaches the other cells of its column, not another column
|
|
24
|
+
When user scrolls the grid to the "styled proprtional with IC50" column
|
|
25
|
+
And user clicks on the "cell 1 of styled proprtional with IC50" area of grid
|
|
26
|
+
Then the current column should be "styled proprtional with IC50"
|
|
27
|
+
Given "Options" pane in context panel is expanded
|
|
28
|
+
Then "Level" input in context panel should have value "Column"
|
|
29
|
+
And "Fit Function" input in context panel should have value "sigmoid"
|
|
30
|
+
When user selects "linear" in "Fit Function" input in context panel
|
|
31
|
+
And user clicks on the "cell 5 of styled proprtional with IC50" area of grid
|
|
32
|
+
Then the current column should be "styled proprtional with IC50"
|
|
33
|
+
And "Fit Function" input in context panel should have value "linear"
|
|
34
|
+
When user scrolls the grid to the "custom fit function" column
|
|
35
|
+
And user clicks on the "cell 1 of custom fit function" area of grid
|
|
36
|
+
Then the current column should be "custom fit function"
|
|
37
|
+
And "Fit Function" input in context panel should have value "Polynomial"
|
|
38
|
+
And no errors should have been logged
|
|
39
|
+
|
|
40
|
+
Scenario: A Cell level title stays in its cell
|
|
41
|
+
When user scrolls the grid to the "styled proprtional with IC50" column
|
|
42
|
+
And user clicks on the "cell 1 of styled proprtional with IC50" area of grid
|
|
43
|
+
Then the current column should be "styled proprtional with IC50"
|
|
44
|
+
And "Title" input in context panel should have value "Dose-Response curves"
|
|
45
|
+
When user selects "Cell" in "Level" input in context panel
|
|
46
|
+
And user enters "Only this one" into "Title" input in context panel
|
|
47
|
+
And user clicks on the "cell 3 of styled proprtional with IC50" area of grid
|
|
48
|
+
Then the current column should be "styled proprtional with IC50"
|
|
49
|
+
And "Title" input in context panel should have value "Dose-Response curves"
|
|
50
|
+
When user clicks on the "cell 1 of styled proprtional with IC50" area of grid
|
|
51
|
+
Then "Title" input in context panel should have value "Only this one"
|
|
52
|
+
And no errors should have been logged
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: Fit statistics of a curve cell become columns
|
|
3
|
+
Translated from TestTrack Curves/curves-statistics.md, scenarios 1 and 2. The Fit pane of a curve
|
|
4
|
+
cell lists the statistics of each series; the "+" next to one (its tooltip says "Calculate <name> for
|
|
5
|
+
the whole column") adds that statistic for the whole column, right after the curve column. For a
|
|
6
|
+
cell with several series, Series "aggregated" and an Aggregation type summarise them first.
|
|
7
|
+
|
|
8
|
+
Not translated: toggling an outlier by clicking a point (scenario 4) - the points are drawn by the
|
|
9
|
+
renderer, and the package tests the toggle; the statistics drawn on the plot (scenario 5), a picture.
|
|
10
|
+
The series without a name (scenario 3) is in curve-json-columns.feature. Since #4306 a click on a
|
|
11
|
+
second curve cell keeps the curve panes in the Context Panel, so both scenarios work on one table.
|
|
12
|
+
|
|
13
|
+
Background:
|
|
14
|
+
Given user is logged in
|
|
15
|
+
And simple mode is off
|
|
16
|
+
And the package autostarts have completed
|
|
17
|
+
And the "Curves" package is installed
|
|
18
|
+
And user opens curves dataset
|
|
19
|
+
And the context panel is open
|
|
20
|
+
|
|
21
|
+
Scenario: The IC50 of a one-curve column is added right after it, filled with numbers
|
|
22
|
+
When user scrolls the grid to the "styled proprtional with IC50" column
|
|
23
|
+
And user clicks on the "cell 1 of styled proprtional with IC50" area of grid
|
|
24
|
+
Then the current column should be "styled proprtional with IC50"
|
|
25
|
+
Given "Fit" pane in context panel is expanded
|
|
26
|
+
Then "IC50" input in context panel should be visible
|
|
27
|
+
And "R²" input in context panel should be visible
|
|
28
|
+
When user clicks on first "Calculate ic50 for the whole column" icon in context panel
|
|
29
|
+
Then the table should have the columns "smiles, multiple prefit, multiple styled series, styled proprtional with IC50, styled proprtional with IC50 1 ic50, log min/max candlesticks, custom fit function"
|
|
30
|
+
And "styled proprtional with IC50 1 ic50" column should have type "double"
|
|
31
|
+
And "styled proprtional with IC50 1 ic50" column should have at least 10 distinct values
|
|
32
|
+
And no errors should have been logged
|
|
33
|
+
|
|
34
|
+
Scenario: The average IC50 of a two-curve column is added right after it
|
|
35
|
+
When user scrolls the grid to the "multiple styled series" column
|
|
36
|
+
And user clicks on the "cell 2 of multiple styled series" area of grid
|
|
37
|
+
Then the current column should be "multiple styled series"
|
|
38
|
+
Given "Fit" pane in context panel is expanded
|
|
39
|
+
Then "Series" input in context panel should offer the choice "all"
|
|
40
|
+
And "Series" input in context panel should offer the choice "aggregated"
|
|
41
|
+
When user selects "aggregated" in "Series" input in context panel
|
|
42
|
+
And user selects "avg" in "Aggregation type" input in context panel
|
|
43
|
+
And user clicks on first "Calculate ic50 avg for the whole column" icon in context panel
|
|
44
|
+
Then the table should have the columns "smiles, multiple prefit, multiple styled series, multiple styled series avg ic50, styled proprtional with IC50, styled proprtional with IC50 1 ic50, log min/max candlesticks, custom fit function"
|
|
45
|
+
And "multiple styled series avg ic50" column should have type "double"
|
|
46
|
+
And "multiple styled series avg ic50" column should have at least 10 distinct values
|
|
47
|
+
And no errors should have been logged
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Questions answered as guides
|
|
2
|
+
|
|
3
|
+
One line per question: the question as asked, the feature that answers it, when, and the help page it illustrates (its `@help:` tag) if any. `grok-bdd guide <feature>` films it; the `/bdd-answer` skill is the recipe.
|
|
4
|
+
|
|
5
|
+
| Question | Feature | Date | Help page |
|
|
6
|
+
|---|---|---|---|
|
|
7
|
+
| How does the new curve legend work (corner, shortened names, +N more, Show Legend)? Community post, help-mode GIF | curves-legend.feature | 2026-10-14 | - |
|
|
8
|
+
| Show Legend for curves in grid cells: set for the column, then for one cell (Level Column/Cell)? Community post, help-mode GIF | curves-legend-cells.feature | 2026-10-14 | - |
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@guide
|
|
2
|
+
Feature: Show Legend of curves in grid cells is set for the table, a column or one cell
|
|
3
|
+
A guide: the answer to "how is the curve legend switched off and on in the grid?" (Curves 1.13.1+),
|
|
4
|
+
filmed as a help-mode GIF for a community post. A curve cell names its curves in a legend once it is
|
|
5
|
+
at least 325 x 275 px. Clicking it shows Context Panel > Options: Level (Dataframe, Column or Cell,
|
|
6
|
+
Column by default) says where the options below it are set, and Chart options > Show Legend turns
|
|
7
|
+
the legend off or on. Set for the column, it changes every cell of the column; set for one cell, only
|
|
8
|
+
that cell. Demo: the Assay Curves table of the Curves package, one named curve per cell.
|
|
9
|
+
|
|
10
|
+
What each cell then draws is the renderer's, and the package's legend-tests claim it ("Show Legend
|
|
11
|
+
set for the column names no curve, set for one cell names that one again"); the guide claims what
|
|
12
|
+
the panel shows: another cell of the column keeps the column's setting, the one set for itself its own.
|
|
13
|
+
|
|
14
|
+
Scenario: Hide the legend for the column, then show it in one cell
|
|
15
|
+
Given user is logged in
|
|
16
|
+
And simple mode is off
|
|
17
|
+
And user opens assay-curves dataset
|
|
18
|
+
And user removes "Molecule" column
|
|
19
|
+
And user sets properties of grid:
|
|
20
|
+
| Row Height | 290 |
|
|
21
|
+
| Col Header Height | 30 |
|
|
22
|
+
And the "Fitted Curve" column of the grid is 340 px wide
|
|
23
|
+
And the context panel is open
|
|
24
|
+
When user clicks on the "cell 1 of Fitted Curve" area of grid
|
|
25
|
+
And user expands "Options" pane in context panel
|
|
26
|
+
Then "Level" input in context panel should have value "Column"
|
|
27
|
+
When user scrolls "Show Legend" input in context panel into view
|
|
28
|
+
And user unchecks "Show Legend" input in context panel
|
|
29
|
+
And user scrolls "Level" input in context panel into view
|
|
30
|
+
And user selects "Cell" in "Level" input in context panel
|
|
31
|
+
And user scrolls "Show Legend" input in context panel into view
|
|
32
|
+
And user checks "Show Legend" input in context panel
|
|
33
|
+
And user clicks on the "cell 2 of Fitted Curve" area of grid
|
|
34
|
+
Then "Show Legend" input in context panel should be unchecked
|
|
35
|
+
When user clicks on the "cell 1 of Fitted Curve" area of grid
|
|
36
|
+
Then "Show Legend" input in context panel should be checked
|
|
37
|
+
And no errors should have been logged
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@guide
|
|
2
|
+
Feature: The legend of a dose-response chart names the curves without hiding them
|
|
3
|
+
A guide: the answer to "how does the new curve legend work?" (Curves 1.13.1+, GROK-20112), filmed for
|
|
4
|
+
a community post. A Multi curve viewer overlays the curves of the selected rows; its Legend property
|
|
5
|
+
(Context Panel > Data > Legend, a column picker) names each curve by a column. The legend takes the
|
|
6
|
+
corner of the plot the curves leave freest - here the bottom left, since the curves run high on the
|
|
7
|
+
left and fall only on the right - shortens a name too long for that corner (hovering the name gives the
|
|
8
|
+
whole of it) and folds the rows past the corner into "+N more" (hovering it lists the curves).
|
|
9
|
+
Show Legend (Context Panel > Misc > Show Legend) takes the legend off the plot and puts it back.
|
|
10
|
+
Demo: the Assay Curves table of the Curves package, its 30 Collapse Assay curves, named by
|
|
11
|
+
Compound|Assay|Target ("compound_id 8 | Collapse Assay | target_10"): more than a full-screen plot has
|
|
12
|
+
rows for, the last of them compound_id 20 and 21. A click on an AUC cell makes a plain number the
|
|
13
|
+
current cell, so the molecule of the first row does not take the Context Panel over from the viewer's
|
|
14
|
+
properties.
|
|
15
|
+
|
|
16
|
+
The legend is read through the viewer's own status: a "legend row N" area per row it drew ("shortened
|
|
17
|
+
legend row N" for a name it cut), "legend more", and the "legend corner" and "legend shown" readings.
|
|
18
|
+
Which rows are shortened depends on the width of the plot, so the hover takes the first shortened one.
|
|
19
|
+
Film it with BDD_GUIDE_VIEWPORT=1280x720: in the 800x500 help window the plot is below the legend's minimum.
|
|
20
|
+
|
|
21
|
+
Scenario: Name the curves, read a shortened name and the folded rows, then hide and show the legend
|
|
22
|
+
Given user is logged in
|
|
23
|
+
And simple mode is off
|
|
24
|
+
And user opens assay-curves dataset
|
|
25
|
+
And user removes "Molecule" column
|
|
26
|
+
And user selects rows where "Assay Name" is "Collapse Assay"
|
|
27
|
+
And user adds a MultiCurveViewer viewer of the selected rows taking 45 percent of the view width
|
|
28
|
+
When user clicks on a "AUC" cell of grid other than the current one
|
|
29
|
+
And user picks "Properties..." from the viewer menu of MultiCurveViewer viewer
|
|
30
|
+
And user selects "Compound|Assay|Target" in "Legend" property in context panel
|
|
31
|
+
Then the "legend corner" reading of MultiCurveViewer viewer should be "bottom left"
|
|
32
|
+
When user hovers over the first "shortened legend row" area of MultiCurveViewer viewer
|
|
33
|
+
Then tooltip should contain text "| Collapse Assay | target_10"
|
|
34
|
+
When user hovers over the "legend more" area of MultiCurveViewer viewer
|
|
35
|
+
Then tooltip should contain text "compound_id 20 | Collapse Assay | target_10"
|
|
36
|
+
When user moves the pointer away from MultiCurveViewer viewer
|
|
37
|
+
And user expands "Misc" category in context panel
|
|
38
|
+
Then "Show Legend" property in context panel should be checked
|
|
39
|
+
When user unchecks "Show Legend" property in context panel
|
|
40
|
+
Then the "legend shown" reading of MultiCurveViewer viewer should be "false"
|
|
41
|
+
When user checks "Show Legend" property in context panel
|
|
42
|
+
Then the "legend shown" reading of MultiCurveViewer viewer should be "true"
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@journey
|
|
2
|
+
Feature: The Multi curve viewer inside a Trellis plot
|
|
3
|
+
Translated from TestTrack Curves/curves-trellis.md, scenarios 1-5. Picked as "Curves" in the trellis
|
|
4
|
+
viewer selector, the MultiCurveViewer becomes the inner viewer of every cell (GROK-18138). A cell's
|
|
5
|
+
full-screen view shows its rows and closes with its X (GROK-18172). The trellis Context Panel has a
|
|
6
|
+
MultiCurveViewer tab with the inner viewer's properties (GROK-19801); Log Y set there reaches the
|
|
7
|
+
trellis' inner look (GROK-18166), and setting the Curves columns keeps the panel on that tab
|
|
8
|
+
(GROK-20668). On a table without curves every cell says the viewer needs a curve column, and moving
|
|
9
|
+
over the cells or switching inner viewers logs no error (GROK-18171, GROK-18389).
|
|
10
|
+
|
|
11
|
+
The journey adds a Multi curve viewer first, and Log Y set on the MultiCurveViewer tab after that is
|
|
12
|
+
kept by a layout saved to the server and applied again (scenario 3, step 4; core#854).
|
|
13
|
+
|
|
14
|
+
core#646 is open: its NullError needs a session where no curve cell has been drawn yet, which a
|
|
15
|
+
journey that opens the curves table first does not give; the demog scenarios do not claim it away.
|
|
16
|
+
Not claimed: scrolling speed of a tiled trellis (scenario 6), a judgement by eye.
|
|
17
|
+
|
|
18
|
+
Background:
|
|
19
|
+
Given user is logged in
|
|
20
|
+
And simple mode is off
|
|
21
|
+
And the package autostarts have completed
|
|
22
|
+
And the "Curves" package is installed
|
|
23
|
+
|
|
24
|
+
Scenario: A Multi curve viewer is created in the session before the trellis
|
|
25
|
+
Given user opens curves dataset
|
|
26
|
+
And user adds MultiCurveViewer viewer
|
|
27
|
+
Then no errors should have been logged
|
|
28
|
+
|
|
29
|
+
Scenario: Curves becomes the inner viewer of a trellis split by molecule
|
|
30
|
+
Given user opens curves dataset
|
|
31
|
+
And user adds a trellis plot viewer with:
|
|
32
|
+
| X Column Names | smiles |
|
|
33
|
+
When user picks "Curves" in the viewer selector of trellis plot viewer
|
|
34
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "MultiCurveViewer"
|
|
35
|
+
And trellis plot viewer should report no error
|
|
36
|
+
And no errors should have been logged
|
|
37
|
+
|
|
38
|
+
Scenario: The full-screen view of a cell shows its row and closes with one click on X
|
|
39
|
+
When user hovers over the "cell body 1,1" area of trellis plot viewer
|
|
40
|
+
And user clicks on the "full screen icon" area of trellis plot viewer
|
|
41
|
+
Then the "full screen rows" reading of trellis plot viewer should be 1
|
|
42
|
+
When user clicks on close icon in dialog
|
|
43
|
+
Then trellis plot viewer should not report a "full screen rows" reading
|
|
44
|
+
And no errors should have been logged
|
|
45
|
+
|
|
46
|
+
Scenario: The MultiCurveViewer tab lists the inner properties, Log Y reaches the trellis, Curves keeps the tab
|
|
47
|
+
When user clicks on settings icon of trellis plot viewer
|
|
48
|
+
And user clicks on "MultiCurveViewer" tab in context panel
|
|
49
|
+
And user expands "Misc" category in context panel
|
|
50
|
+
Then "Merge Column Series" property in context panel should be visible
|
|
51
|
+
When user checks "Log Y" property in context panel
|
|
52
|
+
Then "logY" inner property of trellis plot viewer should be "true"
|
|
53
|
+
When user clicks on "..." button in "Curves" property in context panel
|
|
54
|
+
Then "Select columns..." dialog should be visible
|
|
55
|
+
When user clicks on "All" link in "Select columns..." dialog
|
|
56
|
+
Then "5 checked" text in "Select columns..." dialog should be visible
|
|
57
|
+
When user clicks on OK button in "Select columns..." dialog
|
|
58
|
+
Then "Curves" property in context panel should contain text "5 / 5"
|
|
59
|
+
And "Merge Column Series" property in context panel should be visible
|
|
60
|
+
And no errors should have been logged
|
|
61
|
+
|
|
62
|
+
Scenario: A layout saved and applied again keeps Log Y of the inner viewer
|
|
63
|
+
When user saves the layout of the current table view to the server
|
|
64
|
+
And user loads the saved layout
|
|
65
|
+
Then the open tableview should have 1 trellis plot viewer
|
|
66
|
+
And "logY" inner property of trellis plot viewer should be "true"
|
|
67
|
+
And no errors should have been logged
|
|
68
|
+
|
|
69
|
+
Scenario: On a table without curves every cell says it needs a curve column
|
|
70
|
+
Given user closes all views
|
|
71
|
+
And user opens demog-1000 dataset
|
|
72
|
+
And user adds a trellis plot viewer with:
|
|
73
|
+
| X Column Names | SEX |
|
|
74
|
+
When user picks "Curves" in the viewer selector of trellis plot viewer
|
|
75
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "MultiCurveViewer"
|
|
76
|
+
When user hovers over the "cell body F | High" area of trellis plot viewer
|
|
77
|
+
And user hovers over the "cell body M | Low" area of trellis plot viewer
|
|
78
|
+
Then "The MultiCurveViewer viewer requires a minimum of 1 curves column." text in trellis plot viewer should be visible
|
|
79
|
+
And no errors should have been logged
|
|
80
|
+
|
|
81
|
+
Scenario: Switching the inner viewer of a trellis on a table without curves logs no error
|
|
82
|
+
When user picks "Scatter plot" in the viewer selector of trellis plot viewer
|
|
83
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "Scatter plot"
|
|
84
|
+
When user picks "Bar chart" in the viewer selector of trellis plot viewer
|
|
85
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "Bar chart"
|
|
86
|
+
When user picks "Box plot" in the viewer selector of trellis plot viewer
|
|
87
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "Box plot"
|
|
88
|
+
When user picks "Curves" in the viewer selector of trellis plot viewer
|
|
89
|
+
Then the "inner viewer type" reading of trellis plot viewer should be "MultiCurveViewer"
|
|
90
|
+
And no errors should have been logged
|