- [ ] CHANGELOG.md updated with a link to the PR (not the Issue)
- [X] Rebased/mergable
- [X] Tests pass
- [X] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
Connect #
* When clicking on the upload file button in the write data form, nothing
happens. This is because the div with the outline that says "Drag & Drop a File
to Upload" is positioned in front of the button with opacity 0, so clicks
intended for the button are just clicking on that transparent div instead.
* If you drag a file over the window then cancel the drag (usually by pressing
ESC), the window will not return to its previous state, but stay with the drag
& drop prompt until the page is reloaded.
* Make it so the drag & drop prompt is always present and the button is moved
to be below the outlined prompt. The button label has also been changed to
more closely match that of the drag outline.
Before:
![before screenshot](https://www.dropbox.com/s/t3j76wagracjw99/chronograf-drag-before.png?dl=0)
After:
![after screenshot](https://www.dropbox.com/s/6e68rgba8fq59jw/chronograf-drag-after.png?dl=0)
* Add an `onDragExit` handler to handle the case where the drag is exited
rather than left.
Signed-off-by: Nathan L Smith <smith@nlsmith.com>
When trying to run `npm run test:dev`, I noticed that `nodemon` was not found,
so that task will not work unless you've done `npm install -g nodemon`.
Replace `nodemon`, which would watch for changes to files and restart
Karma, with [concurrenty](https://www.npmjs.com/package/concurrently) and
[eslint-watch](https://www.npmjs.com/package/eslint-watch).
The NPM scripts also had some full paths to binaries that were not necessary
which have been replaced with the shorter versions, and short configuration
options that have been replaced with longer ones for readability (`-w` vs
`--watch`, etc.)
The `eslint` package was updated to remove a warning about an incorrect peer
dependency with `eslint-plugin-prettier`.
Signed-off-by: Nathan L Smith <smith@nlsmith.com>
While `npm` is still installed as part of the build process, most of the
scripts and documentation should be using yarn.
Change `npm` to `yarn` where appropriate.
Signed-off-by: Nathan L Smith <smith@nlsmith.com>
This allows a creator of a layout to specify the visible extents of
graphs for individual cells. For example, a cell displaying a
percentage could be limited to values between 0 and 100.
Existing canned layouts need to updated as a separate step. However,
this adds support for Axes to appear in them as well.
In anticipation of adding Axes to cells, I wanted some test coverage to
be in place before I made the change.
This covers the happy path case as well as focusing on individual
applications. To come are focusing on a measurement and a test for when
the store is unavailable.