Skip to content

Commit 2432973

Browse files
authored
Closes #53: fix poor performance with large data sets (#61)
1 parent a982ad4 commit 2432973

File tree

93 files changed

+17145
-2716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+17145
-2716
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@babel/preset-react"
1212
],
1313
"plugins": [
14+
"@babel/plugin-transform-runtime",
1415
"@babel/plugin-syntax-dynamic-import",
1516
"@babel/plugin-syntax-import-meta",
1617
"@babel/plugin-proposal-class-properties",
@@ -50,6 +51,7 @@
5051
"@babel/preset-react"
5152
],
5253
"plugins": [
54+
"@babel/plugin-transform-runtime",
5355
"@babel/plugin-syntax-dynamic-import",
5456
"@babel/plugin-syntax-import-meta",
5557
"@babel/plugin-proposal-class-properties",
@@ -86,6 +88,7 @@
8688
"@babel/preset-react"
8789
],
8890
"plugins": [
91+
"@babel/plugin-transform-runtime",
8992
"@babel/plugin-syntax-dynamic-import",
9093
"@babel/plugin-syntax-import-meta",
9194
"@babel/plugin-proposal-class-properties",

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
coverage
2+
src/__mocks__

.storybook/addons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
import "@storybook/addon-knobs/register";
12
import "@storybook/addon-options/register";
23
import "@storybook/addon-jest/register";
3-
import "@storybook/addon-knobs/register";
44
import "@storybook/addon-a11y/register";

.vscode/launch.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6-
"configurations": [{
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Jest Watch",
11+
"program": "${workspaceFolder}/node_modules/.bin/jest",
12+
"args": ["--runInBand", "--watch"],
13+
"console": "integratedTerminal",
14+
"internalConsoleOptions": "neverOpen",
15+
"disableOptimisticBPs": true,
16+
"windows": {
17+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
18+
}
19+
},
20+
{
721
"type": "node",
822
"request": "launch",
923
"name": "Jest All",

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,18 @@ const commands = [{
6060

6161
* ```hotKeys``` a _string_ that contains a keyboard shortcut for opening/closing the palette. Defaults to "_cmd+shift+p_". Uses [mousetrap key combos](https://craig.is/killing/mice)
6262

63-
* ```options``` controls how fuzzy search is configured see [fusejs options](http://fusejs.io/)
63+
* ```options``` options controls how fuzzy search is configured. Note: use at your own risk, this is likley to change in the future. The search options are derived from these [fuzzysort options](https://github.com/farzher/fuzzysort#options). However the command palette options prop must have the following values included to function correctly:
64+
65+
```
66+
key: "name", // must be "name"
67+
keys: ["name"], // must include "name"
68+
69+
// other options may be freely configured
70+
threshold: -Infinity,
71+
limit: 7,
72+
allowTypo: true,
73+
scoreFn: null
74+
```
6475

6576
* ```commands``` appears in the command palette. For each command in the array the object must have a _name_ and a _command_. The _name_ is a user friendly string that will be display to the user. The command is a function that will be executed when the user clicks or presses the enter key.
6677

@@ -109,7 +120,7 @@ $ npm run chromatic
109120
$ npm test
110121
111122
# start the dev environment
112-
$ npm run dev
123+
$ npm start
113124
114125
# update the docs
115126
$ npm run build-storybook

docs/iframe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
} catch (e) {
5959
// eslint-disable-next-line no-console
6060
console.warn('unable to connect to parent frame for connecting dev tools');
61-
}</script></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><script src="runtime~main.2bf26010cfd559e04d8b.bundle.js"></script><script src="vendors~main.2bf26010cfd559e04d8b.bundle.js"></script><script src="main.2bf26010cfd559e04d8b.bundle.js"></script></body></html>
61+
}</script></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><script src="runtime~main.d4d99398665924bd2934.bundle.js"></script><script src="vendors~main.d4d99398665924bd2934.bundle.js"></script><script src="main.d4d99398665924bd2934.bundle.js"></script></body></html>

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
} catch (e) {
1515
// eslint-disable-next-line no-console
1616
console.warn('unable to connect to parent frame for connecting dev tools');
17-
}</script></head><body><div id="root"></div><script src="runtime~main.6ac4c33d73ae9704bbb9.bundle.js"></script><script src="vendors~main.a54d446d916e9cdaa820.bundle.js"></script><script src="main.3dd87f6ba79754fb6de4.bundle.js"></script></body></html>
17+
}</script></head><body><div id="root"></div><script src="runtime~main.6ac4c33d73ae9704bbb9.bundle.js"></script><script src="vendors~main.dba84686a117c7eece0d.bundle.js"></script><script src="main.8c7083faa16e3305b4bb.bundle.js"></script></body></html>

docs/main.0e777b5dc57c1c727d67.bundle.js

-1
This file was deleted.

docs/main.207c2388cd65a77d984e.bundle.js

-1
This file was deleted.

docs/main.2a4f77d5a050b16116a0.bundle.js

-2
This file was deleted.

docs/main.2a4f77d5a050b16116a0.bundle.js.map

-1
This file was deleted.

docs/main.2bedf8856339cba886fe.bundle.js

-2
This file was deleted.

docs/main.2bedf8856339cba886fe.bundle.js.map

-1
This file was deleted.

docs/main.2bf26010cfd559e04d8b.bundle.js

-2
This file was deleted.

docs/main.2bf26010cfd559e04d8b.bundle.js.map

-1
This file was deleted.

docs/main.2ef7732a1856cfaac655.bundle.js

-2
This file was deleted.

docs/main.2ef7732a1856cfaac655.bundle.js.map

-1
This file was deleted.

docs/main.30120345ca5d3be358e2.bundle.js

-2
This file was deleted.

docs/main.30120345ca5d3be358e2.bundle.js.map

-1
This file was deleted.

docs/main.3d0f39628cff9260d408.bundle.js

-2
This file was deleted.

docs/main.3d0f39628cff9260d408.bundle.js.map

-1
This file was deleted.

docs/main.74d8ceecf8ae4d4002f2.bundle.js

-2
This file was deleted.

docs/main.74d8ceecf8ae4d4002f2.bundle.js.map

-1
This file was deleted.

docs/main.3dd87f6ba79754fb6de4.bundle.js docs/main.8c7083faa16e3305b4bb.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.91e2cca983c8a2a9193e.bundle.js

-2
This file was deleted.

docs/main.91e2cca983c8a2a9193e.bundle.js.map

-1
This file was deleted.

docs/main.cabce29311d32db92cf0.bundle.js

-1
This file was deleted.

docs/main.cbc6baa1bb88c6d5c1b1.bundle.js

-2
This file was deleted.

docs/main.cbc6baa1bb88c6d5c1b1.bundle.js.map

-1
This file was deleted.

docs/main.d4d99398665924bd2934.bundle.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.d4d99398665924bd2934.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.e9cb143a9103f903d751.bundle.js

-1
This file was deleted.

docs/runtime~main.2a4f77d5a050b16116a0.bundle.js

-2
This file was deleted.

0 commit comments

Comments
 (0)