Commit Graph

119 Commits (b58daa3b802d595925e09796d4bed32a009294f2)

Author SHA1 Message Date
Alex Boatwright c21e08924b
feat(ui): create telegraf config (#16157) 2019-12-10 09:07:18 -08:00
Ariel Salem 8b487571c2
chore(ui): updated giraffe dependency (#16160) 2019-12-06 14:16:53 -08:00
Ariel Salem 08d8efbaec
feat(ui): added date/time format for graphs (#16148)
* feat(ui): added date/time format for graphs

* fix(ui): removed unnecessary console.log

* feat(ui): updated BE models to reflect necessary updates to structs

* fix(dashboard): updated failing gotests
2019-12-06 12:03:55 -08:00
alexpaxton 5bb37fd089 chore(ui): upgrade to Clockface 1.1.0 (#16144)
* chore(ui): point to local build

* refactor(ui): repair breakage from update

* chore: Revert "chore(ui): point to local build"

This reverts commit 968a8232cc.

* chore: upgrade dependency to 1.1.0

* chore: appease prettier

* fix: correct typo

* fix(ui): give size to AlertColumns and update e2e tests
2019-12-05 17:05:39 -08:00
Timmy Luong cf96cc4a84 feat(ui): add positioning option to line graphs 2019-12-03 16:10:50 -08:00
Alex Boatwright 75bf014e5e
fix(ui): polyfill for IntersectionObserver (#16071) 2019-12-02 11:16:04 -08:00
Alex Boatwright 7e8c8004ae
feat(ui): monaco syntax (#16003) 2019-11-22 10:13:52 -08:00
Deniz Kusefoglu b923452250
feat(ui): Event marker filtering for check status levels. (#15874)
* feat(ui): Add unknown as check status level

* feat(ui) Implement eventMarker filtering

* feat(ui): update giraffe dependency

* feat(ui): Fix css classes

* feat(ui): Add tests
2019-11-15 18:05:13 -08:00
alexpaxton 288ce95e70
chore(ui): upgrade to clockface 1.0.6 (#15925)
* chore(ui): upgrade to clockface 1.0.6

* refactor(ui): update old instances of g1-raven
2019-11-15 14:03:12 -08:00
Alex Boatwright a1cecbf56a
fix(ui): make a more deterministic build (#15820) 2019-11-11 14:05:48 -08:00
Timmy Luong 64ca5f91bc fix(ui): Update numeric Input components to pass NaN where appropriate and fix other edge cases 2019-11-08 10:05:23 -08:00
Andrew Watkins 73d185af00
fix(ui): cannot remove node (#15770)
* fix: remove fragments

* chore: update react

* fix: componentWillMount errors
2019-11-06 09:58:04 -08:00
Deniz Kusefoglu da5f157a63
Add monaco editor and react wrapper (#15751)
* Add initial react-monaco-editor

* Add flux language options to monaco

* feat: only including vendor libraries when the module is used

* chore: clean up after thineself
2019-11-05 10:38:25 -07:00
Alex Boatwright a04a95d48d
feat(ui): adding bundle analyzer for prod and dev (#15749) 2019-11-04 14:12:18 -08:00
Andrew Watkins 97edc7aec6
test(js): remove snapshots (#15705)
* test(js): remove snapshots

* test: disallow snapshots and only

* fix: stray variable
2019-10-31 15:39:57 -07:00
Bucky Schwarz 7722aa969c build(ui): make some tweaks to eke some speed out of eslint 2019-10-30 14:36:52 -07:00
Bucky Schwarz 2498011387 fix(ui): add fixed TextArea from clockface 2019-10-29 13:57:11 -07:00
Bucky Schwarz ee53c63d49 feat(ui): add lint check for it.only tests 2019-10-25 11:32:00 -07:00
Alex Boatwright 997331d77b
feat(ui): adding a basepath (#15461)
allowing better webpack configuration freedom to better match infrastructure
2019-10-24 13:57:25 -07:00
Deniz Kusefoglu 4683dad233
Fix: variable selections should persist (#15538)
* expose store to cypress

* Load variables from dashboard in edit cell view

* Initialize new veo with dashboard variable values

* Add cypress pipe library

* Add tests of redux state changes to cell

* Remove unused async command

* Create passing tests for view with variable

* Add moar tests!

* Add jest import

* Fix linter errors

* Use get to define default value

* Fix eslint errors

* Disable eslint for commands

* Improve code styles
2019-10-24 10:32:12 -07:00
Michael Desa 4053b00180
chore(ui): update to latest react-redux
The version of react-redux we use has a security vulnerability that is
considered critical severity. https://github.com/influxdata/influxdb/network/alert/ui/yarn.lock/lodash-es/open
2019-10-23 15:34:30 -04:00
Michael Desa e8e80f8acd
chore(ui): remove dev dependency on parcel
The package `safer-eval` is used in parcel and has pretty regular
security vulnerablities. Since we're no longer using it, we should be
safe to remove it.

Link https://github.com/influxdata/influxdb/network/alert/ui/yarn.lock/safer-eval/open
2019-10-23 13:05:55 -04:00
Ariel 613e0417eb chore(eslint): upgraded eslint 2019-10-18 10:24:59 -07:00
Andrew Watkins ca1cc04ca1
Merge pull request #15454 from influxdata/fix/upgrade-typescript
chore: upgrade typescript
2019-10-17 12:50:21 -07:00
alexpaxton 91fe2d3a0c
chore(ui): upgrade Clockface to 1.0.0 (#15428)
* chore(ui): upgrade clockface dependency

* refactor(ui): update components affected by breaking changes

* refactor(ui): update test snapshots

* refactor(ui): remove obsolete component

* refactor(ui): remove reference to non-existant stylesheet

* refactor(ui): update selector in e2e collectors test

* refactor(ui): attempt to fix e2e test

* refactor(ui): appease linter

* refactor(ui): update implementation of client library cards

* refactor: update all breakage from new version

* refactor: revert this commit

* refactor: fix popover by using useRef instead of createRef

* fix: update all instances of EmptyStateText

* fix: update all instances of PageHeader

* fix: update straggler empty state text

* fix: update instance of PageHeaderCenter

* fix: update instance of PageContents

* fix: update style rule for dashboard cards

* chore: update test snapshots

* refactor: update instance of question mark tooltip

* refactor: use brighten prop to ensure contrast with background

* Revert "refactor: revert this commit"

This reverts commit f325916d91.

* chore: upgrade to NPM package instead of local

* refactor: fix css import

* refactor: update test snapshot

* refactor: Guard against string being null

Co-Authored-By: Alex Boatwright <alex@drdelambre.com>

* refactor: move resource getter inside overlay so it does not disrupt layout

* refactor: fix unit test by updating selector

* refactor: guard against name being absent

* chore: upgrade to latest clockface to utilize a bugfix

* chore: update snapshot test

* refactor: fix appearance of searchableDropdown

* chore: upgrade dependency (again) for bugfixes

* refactor: fix labels e2e test

* refactor: fix tokens e2e test

* refactor: appease linter
2019-10-17 11:58:07 -07:00
Andrew Watkins 025fabd5c5 chore: upgrade to typescript 3.6.3 2019-10-17 11:15:24 -07:00
Andrew Watkins 23dbffd7e3 chore: upgrade typescript to 3.5.3 2019-10-17 10:47:34 -07:00
Andrew Watkins d599eddbae chore: upgrade to 3.4.5 2019-10-17 10:32:48 -07:00
Bucky Schwarz c81b758957
feat(ui): add 403 signout handler to new api requests, upgrade to oats 0.5.0 2019-10-16 13:11:51 -07:00
Deniz Kusefoglu 7d4c8491f0
feat: Add event markers (#15282)
* Add init event markers

* Add events to dashboard graphs

* Add level coloring and styling to event markers

* Window statuses by time and graph groups of events

* Put event markers behind feature flag

* init tooltip

* Upgrade giraffe library

* Add Tooltip

* Add status query to Time Machine

* Status rows return lowercase check level statuses

* rename events to statuses

* Radically improve tooltip style

Co-authored-by: alexpaxton <thealexpaxton@gmail.com>

* Add time formatting

* Make status query more readable

* Clean up comments
2019-09-27 14:09:12 -07:00
Russ Savage 73ac9c5b5c
fix(templates): add jmeter template (#15168)
* fix(templates): add jmeter template

* fix(defaultTemplates): missing comma

* fix(package): update influxdb-template library

* fix(ui): updating yarn.lock

* fix(templates): add jmeter template

* fix(defaultTemplates): missing comma

* fix(package): update influxdb-template library

* fix(ui): updating yarn.lock

* Updated CHANGELOG
2019-09-26 12:21:12 -07:00
Deniz Kusefoglu ec803e22b6 Revert "chore(ui): upgrade Clockface to 0.0.32 (#15221)"
This reverts commit 0669c22bbd.
2019-09-23 11:56:05 -07:00
alexpaxton 0669c22bbd
chore(ui): upgrade Clockface to 0.0.32 (#15221)
* chore(ui): upgrade clockface dependency

* refactor(ui): update components affected by breaking changes

* refactor(ui): update test snapshots

* refactor(ui): remove obsolete component

* refactor(ui): remove reference to non-existant stylesheet

* refactor(ui): update selector in e2e collectors test

* refactor(ui): attempt to fix e2e test

* refactor(ui): appease linter

* refactor(ui): update implementation of client library cards
2019-09-23 10:06:42 -07:00
Christopher Henn fb57feefac feat(ui): upgrade influxdb-templates to v0.8.0 2019-09-09 11:03:02 -07:00
Christopher Henn 14d059ac4d
fix(ui): upgrade giraffe to 0.16.3
Closes #15017
2019-09-06 15:38:02 -07:00
Chris Goller af5996fe45
build(webpack): add source maps for @influxdata/giraffe prod builds (#14908)
* build(webpack): add source maps for @influxdata/giraffe prod builds

We were getting runtime errors in the prod builds via honeybadger.
They were unreadable because we did not have source maps for giraffe.

We were only able to get this working for prod builds but not dev
despite trying putting it in the webpack common file.  This is good
'nuff for our purpose now, but maybe we'll need further investigation.

Bonus commit... I added a new make target of influxd so I would not
need to type so much.

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* build(webpack): add clockface source maps to production build

 Co-authored-by: Andrew Watkins <watts@influxdb.com>
2019-09-04 09:00:20 -05:00
Christopher Henn 7beed29551 chore(ui): upgrade oats to 0.4.0 2019-08-30 16:14:26 -07:00
alexpaxton 4629958d51
chore(ui): upgrade Clockface to 0.0.28 (#14891)
* chore(ui): upgrade clockface dependency to latest

* refactor(ui): update popovers affected by breaking change
2019-08-30 12:37:05 -07:00
Andrew Watkins 0e4df01ddd
feat(alerts): rule overlay endpoint dropdown (#14787)
* feat(alerts): rule overlay endpoint dropdown

* test: skip tests until ownerID gets sorted out

* chore: change back to using electron

* test(cypress): use chrome again

* test(cypress): downgrade cypress
2019-08-26 14:27:31 -07:00
alexpaxton 3b714995cf
chore(ui): upgrade Clockface dependency to 0.0.27 (#14736)
* chore(ui): upgrade Clockface dependency to latest

* chore(ui): address breaking FlexBoxChild changes

* chore(ui): address breaking PanelHeader changes

* chore(ui): update affected snapshots

* refactor(ui): attempt to fix e2e tests
2019-08-21 19:47:37 -07:00
alexpaxton 53f6806df1
chore(ui): upgrade Clockface dependency to 0.0.25 (#14677)
* chore(ui): upgrade clockface dependency to latest

* refactor(ui): replace references to "ComponentSpacer" with "FlexBox"

* refactor(ui): update snapshot tests

* refactor(ui): appease the linter

* refactor(ui): appease the linter, again

* refactor(ui): WIP improve flaky e2e test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* test(e2e): refactor scraper tests
2019-08-15 17:04:06 -07:00
Christopher Henn 33a5d8ff5d feat(ui): integrate notification rule overlays with API 2019-08-15 16:24:52 -07:00
Russ Savage 8a5d0e6230
feat(templates): adding new templates, removing calls to create templates (#14631)
* adding new templates; removing calls to create templates

* fixing quickstart dashboard creation

* Type dashboard template

* bump templates repo version

* add templateID to template meta in swagger

* Add templateID to document meta type in UI

* add templateID to telegrafPlugin and telegrafplugin info types

* Instantiate templates from static templates

* Get tests to pass

* Fix type conflicts

* Bump templates version

* update changelog
2019-08-14 11:01:19 -07:00
Christopher Henn 6d993a37c5 refactor(ui): migrate signin/signout to generated client 2019-08-09 16:11:04 -07:00
alexpaxton b5c8adfdaf
chore(ui): upgrade clockface to 0.0.24 (#14598) 2019-08-08 10:14:08 -07:00
Andrew Watkins 972392f698
chore(ui): upgrade clockface (#14578)
* chore: upgrade clockface and fix type errors

* fix(clockface): types for TextArea onChange callback
2019-08-06 10:23:29 -07:00
Andrew Watkins 841f22cbee
build(webpack): fix hashing and css hmr (#14552) 2019-08-03 11:36:58 -07:00
Christopher Henn 5104cc1f11 fix(ui): handle rate limited and error Flux responses 2019-08-02 13:50:22 -07:00
Christopher Henn e62fbe6242 refactor(ui): remove unused workers code 2019-08-02 13:50:22 -07:00
Christopher Henn 918ca3ec4f fix(ui): upgrade giraffe to 0.16.2
Closes #14504
2019-07-30 14:33:04 -07:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of #14482
2019-07-30 09:35:05 -07:00
Andrew Watkins d0913d227c
feat(ui): wasm flux parser (#14471)
* build(ui): add ability to bundle wasm

* refactor(ui/ast): remove cruft from async AST calls

* chore: add TODO

* test: mock @influxdata/flux-parser package

* oops: I will not hide my shame
2019-07-26 17:21:52 -07:00
Christopher Henn 42ecae8bb2 fix(ui): upgrade clockface to 0.0.19
Closes #13725
2019-07-26 13:40:55 -07:00
Andrew Watkins b856c31aae
style(clockface): upgrade to 0.0.18 (#14458)
* Update dependency

* Fix appearance of signin form

* Fix appearance of inline label editor

* Update implementation of dropdown

* Remove comment

* Fix appearance of auto refresh dropdown

* Update implementation of time range dropdown

* Update implementation of time zone dropdown

* Update implementation of window selector

* Fix missing button text in window selector

Oooooops

* Update implementation of time format dropdown

* Update implementation of column selector

* Update implementation of geometry dropdown

* Ensure line graphs have a default color palette

* Update implementation of color scheme dropdown

* Update implementation of heat map color selector

* Update dropdown implementations in histogram options

* Update implementation of Variable Builder dropdowns

* Update implementation of buckets dropdown

* Tweak color of slide toggle in token row to be green

* Update implementation of Generate Token dropdown

* Update snapshot tests

* Update bucket dropdown tests

* Fix query builder test

* Update onboarding buttons test

* Fix some e2e tests

* Fix tokens e2e tests

* Fix variables e2e tests

* Update implemenation of view type dropdown

Also removing the empty view type from existence

Co-Authored-By: Christopher Henn <chnn@users.noreply.github.com>

* Fix query builder add card button

Made it less prone to breakage

* Fix appearance of VEO

* Update styles of renamable page title

* Update styles using button or icon or input

* Ensure time range dropdown is not blank initially

* Update implementation of variable tooltip dropdown

* Update implementation of dropdowns in Add Members form

* Update implementation of Color dropdown

* Update implementation of dropdowns in scatter plot options

* Upddate implementation of precision dropdown

* Update implementation of sort by table option dropdown

* Update implementation of dashboards dropdown in save as menu

* Update implementations of dropdowns in task form

* Update Variable control bar dropdowns

* Delete unused component

* Remove unused imports

* Update bucket dropdown implementation in delete data form

* Update searchable dropdown to use new clockface components

* Delete local dropdown components

* Fix failing unit tests

* blerp

* Coerce type in view type dropdown

* Fix onboarding styles

* Fix e2e tests

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Fix last e2e test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* build(e2e): allow cypress to run with webpack dev server
2019-07-25 12:13:51 -07:00
Christopher Henn a4b44a7e18 fix(ui): upgrade giraffe to 0.16.1
Closes #14436
2019-07-25 10:17:05 -07:00
Christopher Henn 9f6e27460a fix(ui): upgrade templates to 0.5.0 2019-07-24 15:21:00 -07:00
Christopher Henn f646bdd3dc fix(ui): upgrade templates 2019-07-24 12:50:53 -07:00
Deniz Kusefoglu 613aef698f
Add alerting cards (#14429)
* bump to client 0.5.3

* export Query type from client and create alerting mock

* Bump client to 0.5.5

* Merge all status enums to one type

* Fix threshold visualization types

* Add extra underscore to notification rules

* Use check view type from client

* Add description field to checks, notificationrules and endpoints

* Add init check cards

* Add check card actions

* Correct component name

* Add check card context and toggle

* Add id to notification rule base

* Add notification rule cards

* add checks reducer tests

* user immer for checks reducer

* add tests and immer to notification rule reducer
2019-07-24 00:34:42 -07:00
Andrew Watkins d2933cc184
build(webpack): parcel to webpack (#14410)
* build(ts): add ts webpack dependencies and config

* wip(webpack.dev): css and js compiling

* wip(webpack): building assets with watch

* fix(webpack): fix page reloads not serving assets

* build(webpack): fork typechecking

* chore(webpack): rename dev config

* build(webpack): add production config

* build(webpack): add process vendor in separate build

* build(webpack): change dev source map

* build(webpack): dont lint in prod builds

* build(webpack): move reduce redundancy for GIT_SHA

* docs(ui): update README

* build(webpack): add hash to production build
2019-07-23 14:10:34 -07:00
Jonathan A. Sternberg 6ca9064c7b
chore(ui): upgrade influxdb-templates to v0.3.0 (#14419) 2019-07-23 11:00:13 -05:00
Deniz Kusefoglu 403e97c460
Consume types from client 1.5 (#14372)
* Bump js client version

* Fix types after client version
2019-07-18 10:19:08 -07:00
Christopher Henn 98e8dc9ad8 feat(ui): add initial alert threshold visualization 2019-07-16 09:32:40 -07:00
Christopher Henn 8f9fcfd883 feat(ui): add time zone setting 2019-07-08 15:18:22 -07:00
Christopher Henn 9b78a66cd2 chore(ui): upgrade dependencies
Upgrades giraffe and influxdb-client-js dependencies.

Makes a few source tweaks to accomdate changes in the new client
version.
2019-06-24 11:22:30 -07:00
Andrew Watkins d457865704
build: remove npm replace with yarn (#14176)
* build: remove npm

* build(yarn): only build silently on prod

* build(yarn): replace npm with yarn in makes and docs

* build: remove mentions of npm

* build: add yarn.lock

* build(yarn): lower minor version requirement

* chore: remove package-lock.json

* chore: add package-lock.json to gitignore

* build(node): allow newer node

* docs: update README.md
2019-06-21 16:19:42 -07:00
alexpaxton cb70b8eacb
Make Fancy Scrollbars Fancier (#11661)
* WIP

* Goodbye yarn

* Use latest scrollbar package

* Use default colors

* Expose custom thumb color props

* Use latest package

* Remove unused package

* Update test snapshots

* Organize exernal styles into separate section
2019-02-04 13:01:32 -08:00
Christopher Henn 759891e37f Add ability to create notes on a dashboard 2018-11-29 16:41:40 -08:00
Christopher Henn 7991dcfd55 Delete unused code and reorganize modules
Deletes unused and outdated code, including and AST walker for Flux
queries and various Flux metaquery utilites.

Also moves the remaining modules in `src/flux` to somewhere under
`src/shared`. The `src/flux` directory was a vestige of a time when the
Flux related portions of Chronograf were contained to a single page, but
now these modules are used everywhere.
2018-11-06 16:36:02 -08:00
Michael Desa b9f70b7bec chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00