Commit Graph

1842 Commits (78e1a989fd4812ddcb73bf5f1c44081347475a57)

Author SHA1 Message Date
Christopher Henn 1bf7ed9bae refactor(ui): move type to types directory 2019-08-12 16:02:33 -07:00
Christopher Henn 926bf1214e feat(ui): show dialog when adding check to cell
Closes #14585
2019-08-12 16:02:33 -07:00
Deniz Kusefoglu d11dbf04cc
Fix checks bugs (#14622)
* Fix editVEO check saving

* Get checks at dashboard load

* Fix check queries type

* save View before saving check in VEOs

* Get checks from checks list for checkPlot

* Add check view properties to backend

* Match Alerting Button to CheckAlertingButton

* Remove thresholds from default check

* Remove explicity declaration of check view type in query views

* Pass check down to CheckPlot

* Fix clashing action calls

* Fix calling check type change action from dispatch

* Only check for checkView if view is defined

* Remove type when spreading new check on to default check

* Fix check edit route in check cards

* Get checks for dashboard earlier

* Clean up getCheckForView selector
2019-08-12 14:48:24 -07:00
alexpaxton ee8dc2d5c3
refactor(ui): factor out local Form components (#14624)
* refactor(ui): replace instace of local Form with clockface

* refactor(ui): replace Form in token overlay

* refactor(ui): replace Form in label overlay

* refactor(ui): replace Form in danger overlay

* refactor(ui): delete local form layout components
2019-08-12 11:34:48 -07:00
Christopher Henn 02092e6960 fix(ui): feature flag alerting button 2019-08-12 10:47:32 -07:00
Christopher Henn 6d993a37c5 refactor(ui): migrate signin/signout to generated client 2019-08-09 16:11:04 -07:00
alexpaxton dc0d663364
chore(ui): replace local ConfirmationButton using Clockface (#14605)
* refactor(ui): replace instances of local confirmation button with clockface

* refactor(ui): delete local confirmation button

* refactor(ui): fix affected e2e tokens test
2019-08-09 16:01:41 -07:00
Christopher Henn ec4e788a82 feat(ui): introduce alert history page 2019-08-08 20:20:14 -07:00
alexpaxton fb94fd8ffe
refactor(ui): Polish appearance of Alerting UI (#14602)
* refactor(ui): polish appearance of alerting index view

* refactor(ui): ensure alert check editor header has proper padding

* refactor(ui): emphasize alerting button more

* refactor(ui): style check builder control bar

* refactor(ui): allow buidler card to have a customizable width

* refactor(ui): expose autohide prop from dapperscrollbars within buildercardbody

* refactor(ui): allow dashed button to have configurable color and size

* refactor(ui): add placeholder buttons in to thresholds card

* refactor(ui): add custom styles for alert builder cards

* refactor(ui): increase height of status message template

* refactor(ui): add empty state to matching rules card

* fix(ui): reconnect checks list to redux

* refactor(ui): use more appropriate copy in endpoints empty state
2019-08-08 16:45:48 -07:00
Andrew Watkins e66bc650c4
feat(rule): edit notification rule overlay (#14600)
* refactor: separate providers

* refactor(rule): protect shared reducers

* refactor(rule): dry

* fix(alterts): duplicate action calls
2019-08-08 16:12:52 -07:00
Deniz Kusefoglu 17c40a75de
Visualize check view with check plot (#14599)
* Use CheckPlot to visualize check view

* Revert to add threshold types

* Disable view type dropdown in checkView

* Add proper equality

* Add errors in default cases
2019-08-08 12:25:58 -07:00
alexpaxton b5c8adfdaf
chore(ui): upgrade clockface to 0.0.24 (#14598) 2019-08-08 10:14:08 -07:00
Deniz Kusefoglu 4d1dd96a05
Add return behavior to Alerting buttons (#14584) 2019-08-07 17:23:18 -07:00
Christopher Henn 6d5ac71543 fix(ui): sooth honeybader
Changes our error reporting strategy for Honeybadger from "report
everything logged by `console.error`" to "report everything caught by an
error boundary".

As before, Honeybadger still reports everything caught by
`window.onerror` as well.
2019-08-07 15:30:13 -07:00
Andrew Watkins 7d9ec64eec
build(client): generate client on each build (#14591)
* chore: add new types for NotiicationRules

* build(client): remove client and build each build

* chore: update gitignore to exclude generated client

* fix: allow client dir to be empty

* docs: add README to client dir

* fix(build): add autogen client to eslintignore

* build: gen client for ci js tests
2019-08-07 13:42:35 -07:00
Andrew Watkins 1d256551f6
feat(alerts): create notification rule overlay (#14520)
* feat(rules): render rule overlay

* feat(ui/rules): add name and schedule to new overlay

* style(alerts): style new rule overlay like veo

* feat(alerts): add rule conditions and period count components

* feat(alerts): introduce StatusLevels component

* feat(alerts): add status change and level dropdowns

* refactor(alerts): use context to pass dispatch

* feat(rules): change check status level

* wip: wip

* test(alters): add cypress tests for create notification rule

* test(e2e): more testing for NewRuleOverlay

* feat(alerts): delete notification status rule

* feat(alerts): add TagRule component

* feat(alerts): remove TagRule

* feat(alerts): add RuleEndpoint dropdown

* feat(alerts): add notification rule message

* wip: upgrade clockface to 0.23

* styles(alerts): notification status rule

* styles(alerts): make new rule overlay pretty

* style(alerts): add DashedButton component

* test(e2e): fix notificationRule tests

* chore: remove feature flag

* style(alerts): LevelsDropdown

* chore: fix dummy data

* chore: capitalize LevelType

* style(alerts): copy css into NewRuleOverlay styles

* chore(alerts): add suffix  to client side interfaces

* chore(alerts): compile time reducer error defaults

* chore: plural to singular enums

* chore: trying new util convention

* chore: add back feature flag

* refactor(alterts): move state manipulation into reducer

* chore: comment feature flag

* refactor: move state changes into reducer
2019-08-07 11:08:10 -07:00
Andrew Watkins 6f14174c32
fix: bucket save (#14582)
* fix(ui/buckets): close edit bucket modal on save

* test(e2e): test that modal closes after save
2019-08-06 14:50:07 -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
Deniz Kusefoglu bca1af25a9
feat: alerting - Add alert builder (#14550)
* Add check saving flows and change activeTab type

* Add first pass at alertBuilder

* Change TimeMachineEnum type

* Add xy view properties to checks, and convert to and from check View type

* Add Column Header to checks column

* Add change current check type action

* Access view type through properties

* Load xy view options for check view

* Add orgID to check in createCheck

* Clear current check on close CheckEO

* Create Check Alerting Button

* Create check view on edit and new check EO

* Fix edit check eo action bug

* Update threshold types

* When switch schedule from every to cron change the inputs that are visible

* save Current Check from VEO if view type is check

* Add description component to checks

* TimeMachineIDs to TimeMachineID

* Remove bracketed object decleration

* Remove as Threshold type

* Use ViewType instead of typeof

* Create CheckType type

* Remove time machine reducer tests

* Remove check view properties that come from xyView

* Fix EditCheck hooks

* Move status calculations to body of function

* Update redux store when performing check CRUD

* Create add and remove check actions in timeMachine

* Remove trailing space
2019-08-05 17:38:49 -07:00
Christopher Henn f0c506faff fix(ui): fix v.windowPeriod computation 2019-08-05 07:19:15 -07:00
Andrew Watkins 841f22cbee
build(webpack): fix hashing and css hmr (#14552) 2019-08-03 11:36:58 -07:00
Christopher Henn 7c7c9be76b fix(ui): avoid logging CancellationErrors to console
It is expected that if a function awaits a promise, and that promise
rejects with a `CancellationError`, that the function catch and silence
the error. We usually do this, except for one subtle case: in the
`QueryBuilderFetcher`, cancellable promises are intercepted and their
results are cached. Since this caching branch of the promise chain had
no error handling, we were still seeing `CancellationError`s logged to
the console.

This commit blackholes those errors so that they do not show in the
console. It is only expected that the caller of these caching wrappers
handle the `CancellationError`.

Closes #14404
2019-08-02 14:45:42 -07:00
Christopher Henn 15f33dc88d fix(ui): enable source maps in production 2019-08-02 14:45:42 -07:00
Christopher Henn 6c1f4608e8 fix(ui): avoid setState error when logging in 2019-08-02 14:45:42 -07:00
Christopher Henn 8ca1d75d6d chore(ui): use latest chrome for e2e tests 2019-08-02 13:50:22 -07:00
Christopher Henn 5104cc1f11 fix(ui): handle rate limited and error Flux responses 2019-08-02 13:50:22 -07:00
Christopher Henn 8a5dcd5707 feat(ui): display notification when Flux response is truncated 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 827e174f76 fix(ui): polish cell loading states on dashboard
Before we would switch from a spinner to "Loading..." text while a cell
loaded for the first time.

This commit changes cells to only show "Loading..." while loading, which
feels less spastic.
2019-08-02 13:50:22 -07:00
Christopher Henn 56d1f43ab6 refactor(ui): migrate usage of client write API
Part of #14482
2019-08-02 13:50:22 -07:00
Christopher Henn e395f0e3a8 refactor(ui): bump tsconfig target
The latest version of Chrome, Firefox, Safari, and Edge support ES2017.
2019-08-02 13:50:22 -07:00
Christopher Henn ff51a78eae refactor(ui): support receiving limited Flux responses
Adds support for fetching a Flux response with a limit, and returning a
partial response instead of an error if that limit is exceeded.

The logic is implemented here instead of in influxdb-client-js as part
of #14482.
2019-08-02 13:50:22 -07:00
Christopher Henn d0dedff576 refactor(ui): use locally generated AST fetching utils
Moves the handwritten AST wrapper types from influxdb-client-js back
into the UI. Long term I think we should improve the `swagger.yml` spec
for these types so that we can use their generated counterparts. This
will take some tedious labor and a review from the Flux team.

Part of #14482
2019-08-02 13:50:22 -07:00
Christopher Henn 89d6f9ea3e fix(ui): improve detection of relevant tokens to display
When a user saves a query from the DE as a task, we display an overlay
that allows them to select the token they use for the task. Since not
all tokens have access to the buckets read from and written to in the
query, we filter the list of tokens that are selectable in the overlay.

This commit:

- Improves the detection of what buckets are read from in the query by
  using an AST based approach to analyzing the query, rather than some
  stringy heuristics
- Removes the assumption that only a single bucket is read from in the
  query

Closes #14226
2019-08-02 07:51:57 -07:00
Christopher Henn 96d0a4f88b refactor(ui): use selector to get active query 2019-08-02 07:51:57 -07:00
Christopher Henn 55ebcf275a refactor(ui): extract helper for filtering irrelevant tokens 2019-08-02 07:51:57 -07:00
Michael Desa 9cbb62cee5 refactor(organizations/actions/orgs): avoid mutation of bucket in createOrgWithBucket 2019-08-01 10:13:07 -07:00
Michael Desa e1e4a574a3 refactor(ui): migrate orgs to use new generated types 2019-08-01 10:13:07 -07:00
Michael Desa 6a91854c71 refactor(ui): migrate buckets to use new generated types
Co-authored-by: Chris Henn <chris@chrishenn.net>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2019-08-01 10:13:07 -07:00
George b2fe0d1d63
fix(tasks): surface flux errors on pre-auth check (#14492) 2019-07-31 11:46:28 +02:00
Christopher Henn 918ca3ec4f fix(ui): upgrade giraffe to 0.16.2
Closes #14504
2019-07-30 14:33:04 -07:00
Christopher Henn ce68ad800f fix(ui): prevent dashboard cell crash when editing cell
Previously, opening the VEO for a cell on a dashboard would cause the
view for the cell on the dashboard to reload. In turn, this would cause
the dashboard cell to crash.

This commit updates the logic for opening the VEO so that the view is
only reloaded when necessary.

Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Chris Henn <chris@chrishenn.net>
2019-07-30 13:55:48 -07:00
Andrew Watkins 86ae43c813
chore(ui/alerts): change notificationRule to rule (#14506)
* chore(ui): change notification rule to rule

* chore(ui/alerts/actions): change from notificationRule to rule

* feat flag

* fix: component name

* fix: no console.log
2019-07-30 11:56:34 -07:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of #14482
2019-07-30 09:35:05 -07:00
Deniz Kusefoglu bbc37b4c68
feat: Alerting add alert builder veo state (#14499)
* Define new check, edit check and check view routes with VEO

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* Add task status to other task types

* Put editAlerting route behind feature flag

* add action and reducer for update current check

* Add init edit and new check editor overlay

* Split VEO in to two for new and edit view

* get edit and new CheckEO's ready

* Create getViewForTimeMachine action

* current check should be a partial check

* Fix view typing

* Fix linter errors

* Fix equality

* Catch save VEO errors
2019-07-29 15:54:35 -07:00
alexpaxton 93649a71b5
refactor(clockface): replace local resource list components with Clockface resource list components (#14493)
* refactor(resource-list): replace local labels resource list with Clockface resource list

* refactor(resource-list): replace local variables resource list with Clockface resource list

* refactor(resource-list): replace local collectors resource list with Clockface resource list

* refactor(resource-list): replace local scrapers resource list with Clockface resource list

* refactor(resource-list): replace local templates resource list with Clockface resource list

* refactor(resource-list): replace local static templates resource list with Clockface resource list

* refactor(resource-list): replace local members resource list with Clockface resource list

* refactor(resource-list): replace local buckets resource list with Clockface resource list

* refactor(resource-list): replace local tasks resource list with Clockface resource list

* refactor(resource-list): replace local dashboards resource list with Clockface resource list

* refactor(resource-list): replace local notification rule & check resource lists with Clockface resource lists

* Delete local resource list components

* test: update affected snapshot tests

* test(e2e): fix labels integration tests

* refactor: use router.push() instead of window.location.assign()
2019-07-29 12:52:32 -10:00
Michael Desa 99e15b262f
Merge pull request #14496 from influxdata/fix/sort-create-dash-from-template-list
fix(component/TemplateBrowserList): sort list of templates alphabetically
2019-07-29 17:04:38 -04:00
Michael Desa 42c8b1a408
fix(component/TaskTokenDropdown): sort list of tokens alphabetically
Closes #14472
2019-07-29 16:41:00 -04:00
Russ Savage 383e6b1368
fix(components/TelegrafExplainer): Update link to Telegraf docs (#14497)
fix(components/TelegrafExplainer): Update link to Telegraf docs Update changelog
2019-07-29 13:33:30 -07:00
Michael Desa fb6b690380
fix(component/TemplateBrowserList): sort list of templates alphabetically
Closes #14465
2019-07-29 16:31:25 -04:00
alexpaxton a2a44067be
refactor(clockface): replace local index list with Clockface index list (#14491)
* refactor(clockface): replace index lists with clockface index lists

* refactor(clockface): replace local index list import with clockface index list import

* refactor(clockface): remove local index list components
2019-07-29 08:13:20 -10: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
Alirie Gray 7b96bd95f0 test(tasks): fix cypress tests for task creation with token 2019-07-26 09:51:33 -07:00
Scott Anderson 8dc597bdbe removed unnecessary newline in functions.ts 2019-07-25 16:27:52 -06:00
Scott Anderson c442ca198c Added exponentialMovingAverage documentation 2019-07-25 16:26:26 -06:00
Scott Anderson c4b8737b96 added newlins to functions.ts to pass tests 2019-07-25 16:07:33 -06:00
Scott Anderson 6ca72e45cc Added documentation for new Flux functions 2019-07-25 15:55:49 -06: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
Delmer e7a92f57cc
fix(ui/dashboards): prevent default on anchor tag (#14434)
fix(ui/editable_name): update anchor to Link tag
2019-07-24 15:15:47 -04: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
Christopher Henn c0253d868e refactor(ui): rename WrappedCancelablePromise to CancelBox 2019-07-23 11:16:53 -07:00
Christopher Henn 5f015bf013 fix(ui): catch cancellation errors more reliably 2019-07-23 11:16:53 -07:00
Christopher Henn bbf80ac5a9 fix(ui): avoid single stat crash
Changes the `latestValues` logic to ignore null/empty Flux rows. This
prevents a single stat/gauge crash.

Also wraps the time machine `Vis` in a error boundary, to mitigate the
results of a crash.

Closes #14422
2019-07-23 10:53:15 -07:00
Delmer Reed c316edfdfe fix(ui/style): fix chronograf style 2019-07-23 09:35:42 -07:00
Delmer Reed 384f057c29 fix(ui/asset-alert): fix asset-alert clipping dashboard contents 2019-07-23 09:35:42 -07:00
Jonathan A. Sternberg 6ca9064c7b
chore(ui): upgrade influxdb-templates to v0.3.0 (#14419) 2019-07-23 11:00:13 -05:00
Russ Savage 3dafbc6c62
Fixed task manual run notification type (#14412)
* Fixed task manual run notification type

* updating changelog

* fixing trailing whitespace in stale.yml config
2019-07-22 17:08:23 -07:00
Deniz Kusefoglu 6c700628fa
Add alerts page (#14406)
* Add columns for checks, nr's and endpoints

* Add checks getters and redux store

* Add notification rules Store and fetching

* Connect ChecksColumn to redux and add checkcards

* specify const types in action creators
2019-07-22 15:19:02 -07:00
Christopher Henn 491b2067b2 feat(ui): add delete with predicate overlays 2019-07-22 15:02:34 -07:00
Delmer Reed 5deeebca4c fix(ui/cloud): wrap limited assets in components 2019-07-19 18:03:32 -04:00
Delmer Reed 5ed0535ba0 fix(ui/cloud): display alerts for read or write rates 2019-07-19 17:45:59 -04:00
Iris Scholten 6ddac5b3c6
feat(ui): Add link to documentation when uploading line protocol (#14385) 2019-07-18 16:51:59 -07:00
Andrew Watkins fa79779489
fix(ui/flux): correct map example (#14379) 2019-07-18 15:07:22 -07:00
Andrew Watkins 8fe429a8f2
fix(templates): import static templates for creating dashboards (#14378) 2019-07-18 12:13:22 -07: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
Delmer Reed 93e0ea2d4e fix(ui/checkout_btn): onClick go to billing instead of checkout 2019-07-17 17:05:25 -04:00
Christopher Henn 20ab1daa24 refactor(ui): rename plot components 2019-07-16 09:32:40 -07:00
Christopher Henn 98e8dc9ad8 feat(ui): add initial alert threshold visualization 2019-07-16 09:32:40 -07:00
Deniz Kusefoglu 5e2a097953
Add initial alerting routes and containers (#14318)
* Add initial alerting routes and containers

* Feature flag alerts nav
2019-07-12 10:57:56 -07:00
Scott Anderson d30f504b91 updated functions list for flux 0.35.1 2019-07-11 11:50:32 -06:00
Deniz Kusefoglu ebe13e2a57
Remove feature flags from vis types and options (#14303)
* Remove feature flags from vis types and options

* Remove vis type specific parameters from cloud and oss flags
2019-07-10 17:02:46 -07:00
Deniz Kusefoglu 00f27230a9
Fix filtering bug in tokens (#14301) 2019-07-10 15:04:07 -07:00
Christopher Henn 8f9fcfd883 feat(ui): add time zone setting 2019-07-08 15:18:22 -07:00
Delmer 77c3d95289
feat(ui/cloud): add cloud checkout button (#14259) 2019-07-03 16:27:30 -04:00
Christopher Henn c85a0f8b68 fix(ui): improve threshold settings validation
Closes #14175
Closes #14190
2019-06-28 12:56:27 -07:00
Palak Bhojani adc108c53e Update getting tokens to have helper functions 2019-06-27 14:50:02 -07:00
Palak Bhojani 272868d087 Update flux script to get correct bucket name 2019-06-27 14:50:02 -07:00
Palak Bhojani 4062475010 Display relevant tokens based on permissions in token dropdown 2019-06-27 14:50:02 -07:00
Scott Anderson 836c1d84b0 updated flux function json to be prettier 2019-06-27 12:23:25 -06:00
Scott Anderson 86686b9f0e updated flux function json to be prettier 2019-06-27 12:16:28 -06:00
Scott Anderson 666f8cf1c1 added new functions to Flux functions list 2019-06-27 12:06:44 -06:00
Palak Bhojani d375f4bfcc Add the ability to update a task token 2019-06-25 11:30:05 -07:00
Christopher Henn 530ceb9cbd fix(ui): clamp gauge needle position to gauge domain 2019-06-24 17:46:03 -07:00
Christopher Henn 123b99cac5 fix(ui): draw gauges correctly on HiDPI screens 2019-06-24 17:46:03 -07:00
Palak Bhojani 875efabc68 Update changelog for token selection 2019-06-24 14:21:12 -07:00
Palak Bhojani 2a5517c0df Create token dropdown to be a separate component 2019-06-24 13:31:03 -07:00
Palak Bhojani 715e587c0d Add dropdown to select token when creating a new task 2019-06-24 13:31:03 -07:00
Christopher Henn 1d7521ebb7 fix(ui): enable selecting more columns in line visualizations
Closes #14153
2019-06-24 13:18:56 -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
Iris Scholten ea27736eaf
fix(ui/cloudNav): Update cloud subnav feature flag to use env var (#14171)
Subnav should be visible in acceptance but feature flagged in production
2019-06-21 13:17:57 -07:00
Andrew Watkins 5dfba47d15
fix: cell errors (#14168)
* fix: add tooltip for error message

* wip: styles for error

* chore: christmas time

* feat: introduce error formatting

* style(veo): scrollable errors

* style(cell): error tooltip

* chore: remove comment

* style: put styles on children
2019-06-21 10:25:09 -07:00
Delmer 03a1c86e55
feat(ui/cloud_nav): adds and feature flags billing/usage sub navs (#14170)
Adds a feature flag for the billing and usage sub navs in cloud.

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-06-20 19:12:05 -04:00
Christopher Henn 2225b6a33f fix(ui): upgrade influxdb-client-js and influxdb-templates
Upgrades influxdb-client-js to latest dev tip, which includes a fix for
issue #14086.

I also ran into an issue where the templates UI was crashing. It was
fixed by running

    npm update @influxdata/influxdb-templates

To avoid having to run this not-obvious fix in the future, I [added a
release process][0] to influxdb-templates, released a version, and
pinned influxdb to that version.

Closes #14086

[0]: 401ec1687a
2019-06-20 14:34:42 -07:00
Christopher Henn 097867bfb8 fix(ui): prevent variable dropdown from clipping
Closes #14075
2019-06-19 15:39:40 -07:00
Andrew Watkins 54fba2ebb2
fix: only click save once to save cell (#14164) 2019-06-19 15:13:23 -07:00
Christopher Henn 4bd7320f7c fix(ui): update client version to resolve query bottleneck
Closes #14084

Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2019-06-19 11:02:13 -07:00
Daniel Campbell 2c9f57d037
Add type metadata to User Templates (#14154)
* Add type metadata to User Templates

* Add default values
2019-06-18 16:25:13 -07:00
Andrew Watkins e25a8fa181
fix: sorting label by description (#14148)
* chore: labels test cleanup

* fix: throwing error when value is empty string
2019-06-18 08:47:57 -07:00
Daniel Campbell ddf99f99f6
Add User Template Descriptions (#14140) 2019-06-14 11:25:47 -07:00
Christopher Henn 14d63be349 fix(ui): upgrade giraffe to 0.12.1
Closes #14133
2019-06-13 16:01:39 -07:00
Daniel Campbell fd458cb33e Add tabs and descriptions to Templates Page (#14105)
* Add tabs and descriptions to Templates Page

* Fixes tests broken by axios upgrade

* Add type metadata

* add no description placeholder
2019-06-13 11:45:24 -07:00
Brandon Farmer 5240d5d558 Initial static templates list 2019-06-13 11:45:24 -07:00
Christopher Henn fe3869d60e feat(ui): add option to shade area below line graphs 2019-06-13 11:36:08 -07:00
Deniz Kusefoglu 90cf07bb5b
Create task import overlay (#14126) 2019-06-13 10:26:25 -07:00
Andrew Watkins f3c516729c
perf(dashboard): cell fetching
* wip: cleanup

* perf(dashboards): dont fetch each views' data when opening veo

* chore: fix types

* chore: fix types

* perf: stop rerendering of all views when variables change

* chore: cleanup
2019-06-12 14:19:02 -07:00
Deniz Kusefoglu 5089854c72
Add type to template meta created from resources (#14118)
* Add type to template meta created from resources

* filter templates that are available to be instantiated as dashboard
2019-06-12 11:52:16 -07:00
Deniz Kusefoglu f35e9caf7e
Accept all date formats that are supported by flux in date picker (#14117) 2019-06-12 10:05:47 -07:00
Christopher Henn 7403a181e1 fix(ui): size gauges using cell dimensions
Closes #13600
2019-06-12 09:33:34 -07:00
Christopher Henn f8d8f85b62 fix(ui): prevent variable dropdown from crashing when empty
Closes #14076
2019-06-12 09:32:33 -07:00
Christopher Henn 9f7300b3c1 fix(ui): populate "Save As Variable" modal with current query
Closes #14074
2019-06-12 09:32:33 -07:00
Christopher Henn 8bcd761b21 fix(ui): tighten error boundary around variable dropdowns
Wraps each dropdown in the variable control bar in a error boundary of
its own, using a new `ErrorBoundary` component.

The `ErrorBoundary` component can wrap both class and non-class
components alike (unlike the existing `ErrorHandling` class decorator).

Also removed the redudant logging from the `ErrorHandling` HOC; an error
caught by an error boundary will log once now, rather than twice.
2019-06-12 09:32:33 -07:00
Christopher Henn ea94f4f0a8 fix(ui): avoid unnecessary FluxTable[] parsing
Also consolidates the `VisSwitcher` and `RefreshingViewSwitcher`
components into a single `ViewSwitcher` component.

Closes #13852
2019-06-11 14:07:24 -07:00
Deniz Kusefoglu 073b697c0e
Separate input element from date-picker (#14087)
* Separate input element from date-picker

* Add error message padding to DatePicker input

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

* Prevent time selection vertical jitter and polish styles

Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>

* Use Form component from @influxdata/clockface
2019-06-10 15:35:48 -07:00
Christopher Henn 23e6c7bf26 fix(ui): prevent visualization crash in DE 2019-06-10 10:39:51 -07:00
Christopher Henn 49c243186b fix(ui): use '_value' as default histogram column selection 2019-06-07 16:06:11 -07:00
Christopher Henn eee4416809 feat(ui): upgrade giraffe dependency 2019-06-07 16:06:11 -07:00
Andrew Watkins 02c12a0374
perf: dashboard cell and view rendering (#14078)
* chore: package.lock

* chore: remove unused logic

* perf: only render views in view :)

* chore: cleanup

* chore: remove cruft
2019-06-06 15:15:26 -07:00
Deniz Kusefoglu 9edf9bd6ee
Add x and y column pickers to graph types (#14052)
* Add x and y column picker to line graph

* Use column selector in heatmap options

* Add column selector to histogram

* Add column selector to scatter plot

* Fix tests

* Add xColumn and yColumn to data structure in line graph tests

* Move scatter container defaults to visSwitcher

* Add fillcolumn validity checking to histogram

* regularize XYcontainer and render it and lineplussingle stat in visSwitcher

* Initialize all views with null columns

* Place Line and Scatter Options x-y column selector behind cloud feature flag

* Rename getGroupableColumnSelection

* Add defaults to x/y column selections in line graphs

* Add defaults to x/y column selections in scatter
2019-06-04 18:07:53 -07:00
Christopher Henn f2d198c169 feat(ui): enable formatting line graph y ticks with binary prefix 2019-06-04 17:37:31 -07:00
Kelvin Wang 7a40d92375 fix(ui): update ui telegraf orgID 2019-06-03 19:40:33 -04:00
Giacomo Tirabassi fd4d593e21
updated vault dependencies to own module (#14045) 2019-06-03 15:41:02 +02:00
Deniz Kusefoglu 6c28938201
Correctly check if columnKeys include xColumn in heatmap (#14031) 2019-05-30 15:47:34 -07:00
Brandon Farmer d6ececfb11 Add scripts for Docker builds 2019-05-30 13:09:28 -07:00
Deniz Kusefoglu 3db2039339
initialize new scatter plots with all fill columns selected (#14021) 2019-05-30 11:39:08 -07:00
Deniz Kusefoglu 8856312dde
Bump vis to 0.9.0 (#14017)
* Change table getters implementation

* ingest fluxGroupKeyUnion as array

* Bump vis to 0.9.0

* Fix behavior of latestValues in tests
2019-05-29 16:20:06 -07:00
Andrew Watkins 6e2b4b3c58
feat: add "none" selection to query builder function selector aggreation (#14010)
* package-lock.json

* feat: none query builder

* test: update query builder test

* chore: use constant for none
2019-05-29 13:24:08 -07:00
karel-rehor f790799981 test(e2e/ui): labels tests and post rebase (#13987)
* # This is a combination of 2 commits.
# The first commit's message is:

added writeData command

# The 2nd commit message will be skipped:

#	delinting

* added writeData command

* better junit reporting

removed chainable .only.

* starting onboarding test

* complete onboarding to quick start

* additional onboarding tests

* adding field requirements test

WIP - updating to new org ctx - stablizing

WIP - linting - stablizing

fixing merge conflicts

* refactor onboarding test to leverage data-testid

fixing jstests with new data-testid attribs

refactor add last data-testid replacements onb test

improving assert

* passing in additional data-testid values

troubleshoot tokens test

WIP tokens test - clean up after troubleshoot

WIP - tokens tests

updating testID in tokens test

* re-enable all current tokens tests

* starting labels test

* labels tests

* minor fix

minor fix

* cy.writeData chunked

* resynching onboarding.test.ts
2019-05-29 10:04:07 -07:00
Jade McGough 4e0d1199c8
fix(ui): run prettier (#14006) 2019-05-28 14:56:31 -07:00
Jade McGough 89f44da409
fix(ui): use correct templates for support links (#13990) 2019-05-28 14:25:54 -07:00
Deniz Kusefoglu 192998d1e5
Add scatter (#13974)
* Add scatter to visualization types dropdown
* Add initial scatter options
* Add scatter visualization to view switcher
* Add scatter to VEO
* Add scatter type to graph types
* Expand scatter options
* Update changelog
* Change scatter color type to strings
* Assume fluxgroupkey is set
* Regularize scatter options
* Place scatter behind feature flag
2019-05-28 13:15:29 -07:00
Daniel Campbell 59d19ad36b
add heatmap icon (#13979) 2019-05-21 09:52:25 -07:00
Brandon Farmer 09d7c3c80f Fix influxdb-templates dependency 2019-05-20 09:11:29 -07:00
Brandon Farmer 68905bdb39
Merge pull request #13964 from influxdata/add-honeybadger-to-cloud
Add honeybadger overrides for cloud
2019-05-17 16:30:14 -07:00
Brandon Farmer d72aca1c99 Add honeybadger overrides for cloud 2019-05-17 16:19:54 -07:00