@genspectrum/dashboard-components 1.11.0 → 1.11.1
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/assets/{mutationOverTimeWorker-dhufsWQ2.js.map → mutationOverTimeWorker-CQQFRoK4.js.map} +1 -1
- package/dist/components.d.ts +55 -55
- package/dist/components.js +86 -35
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +55 -55
- package/package.json +1 -1
- package/src/preact/mutationsOverTime/getFilteredMutationsOverTimeData.ts +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time-grid-tooltip.stories.tsx +47 -0
- package/src/preact/mutationsOverTime/mutations-over-time-grid-tooltip.tsx +64 -28
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +2 -2
- package/src/preact/mutationsOverTime/mutations-over-time.tsx +2 -2
- package/src/query/queryMutationsOverTime.ts +21 -2
- package/src/query/queryMutationsOverTimeNewEndpoint.spec.ts +23 -23
- package/standalone-bundle/assets/{mutationOverTimeWorker-CGqPKySO.js.map → mutationOverTimeWorker-DIpJukJC.js.map} +1 -1
- package/standalone-bundle/dashboard-components.js +1820 -1768
- package/standalone-bundle/dashboard-components.js.map +1 -1
|
@@ -120,14 +120,14 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
120
120
|
|
|
121
121
|
const expectedData = [
|
|
122
122
|
[
|
|
123
|
-
{ type: '
|
|
124
|
-
{ type: '
|
|
125
|
-
{ type: '
|
|
123
|
+
{ type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
|
|
124
|
+
{ type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 12 },
|
|
125
|
+
{ type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 13 },
|
|
126
126
|
],
|
|
127
127
|
[
|
|
128
|
-
{ type: '
|
|
129
|
-
{ type: '
|
|
130
|
-
{ type: '
|
|
128
|
+
{ type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
|
|
129
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 12 },
|
|
130
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 13 },
|
|
131
131
|
],
|
|
132
132
|
];
|
|
133
133
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal(expectedData);
|
|
@@ -289,14 +289,14 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
289
289
|
|
|
290
290
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal([
|
|
291
291
|
[
|
|
292
|
-
{ type: '
|
|
292
|
+
{ type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
|
|
293
293
|
null,
|
|
294
|
-
{ type: '
|
|
294
|
+
{ type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 13 },
|
|
295
295
|
],
|
|
296
296
|
[
|
|
297
|
-
{ type: '
|
|
297
|
+
{ type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
|
|
298
298
|
null,
|
|
299
|
-
{ type: '
|
|
299
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 13 },
|
|
300
300
|
],
|
|
301
301
|
]);
|
|
302
302
|
|
|
@@ -523,8 +523,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
523
523
|
|
|
524
524
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal([
|
|
525
525
|
[
|
|
526
|
-
{ type: '
|
|
527
|
-
{ type: '
|
|
526
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
|
|
527
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
|
|
528
528
|
],
|
|
529
529
|
]);
|
|
530
530
|
|
|
@@ -635,8 +635,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
635
635
|
|
|
636
636
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal([
|
|
637
637
|
[
|
|
638
|
-
{ type: '
|
|
639
|
-
{ type: '
|
|
638
|
+
{ type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
|
|
639
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 12 },
|
|
640
640
|
],
|
|
641
641
|
]);
|
|
642
642
|
|
|
@@ -726,7 +726,7 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
726
726
|
});
|
|
727
727
|
|
|
728
728
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal([
|
|
729
|
-
[{ type: '
|
|
729
|
+
[{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 }],
|
|
730
730
|
]);
|
|
731
731
|
|
|
732
732
|
const sequences = mutationOverTimeData.getFirstAxisKeys();
|
|
@@ -839,12 +839,12 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
839
839
|
|
|
840
840
|
expect(mutationOverTimeData.getAsArray()).to.deep.equal([
|
|
841
841
|
[
|
|
842
|
-
{ type: '
|
|
843
|
-
{ type: '
|
|
842
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
|
|
843
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
|
|
844
844
|
],
|
|
845
845
|
[
|
|
846
|
-
{ type: '
|
|
847
|
-
{ type: '
|
|
846
|
+
{ type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
|
|
847
|
+
{ type: 'valueWithCoverage', count: 5, coverage: 10, totalCount: 12 },
|
|
848
848
|
],
|
|
849
849
|
]);
|
|
850
850
|
|
|
@@ -1017,8 +1017,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
1017
1017
|
{ type: 'belowThreshold', totalCount: 12 },
|
|
1018
1018
|
],
|
|
1019
1019
|
[
|
|
1020
|
-
{ type: '
|
|
1021
|
-
{ type: '
|
|
1020
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
|
|
1021
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
|
|
1022
1022
|
],
|
|
1023
1023
|
]);
|
|
1024
1024
|
|
|
@@ -1139,8 +1139,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
|
|
|
1139
1139
|
{ type: 'belowThreshold', totalCount: 12 },
|
|
1140
1140
|
],
|
|
1141
1141
|
[
|
|
1142
|
-
{ type: '
|
|
1143
|
-
{ type: '
|
|
1142
|
+
{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
|
|
1143
|
+
{ type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
|
|
1144
1144
|
],
|
|
1145
1145
|
]);
|
|
1146
1146
|
|