Commit Graph

122 Commits (78e1a989fd4812ddcb73bf5f1c44081347475a57)

Author SHA1 Message Date
Russ Savage 225f426e08
fix(slack): remove option for token in UI ()
* fix(slack): remove option for token in UI

* fix(slack): fix linting

* fix(slack): updating tests

* fix(slack): updating go tests

* fix(slack): fixing js test
2019-09-05 22:28:35 -07:00
alexpaxton 77a59538e6
refactor(ui): settings navigation ()
* refactor(ui): move tokens tab to load data page and update navbar

* refactor(ui): prefix all settings page urls with "settings"

* refactor(ui): expose settings tabs in navbar as sub-items

* chore(ui): update changelog

* refactor(ui): fix URLs in e2e tests
2019-09-05 16:17:22 -07:00
alexpaxton 20f717dcfe
refactor(ui): improve first time alerting experience ()
* refactor(ui): move QuestionMarkTooltip into shared folder

* refactor(ui): delete unused component

* refactor(ui): allow QuestionMarkTooltip to wrap other elements

* refactor(ui): Add question mark tooltips to alerting column headers

* refactor(ui): color code buttons to indicate importance and grouping

* refactor(ui): swap order of endpoints and rules columns

* refactor(ui): show "first time" widget when no alerting resources exist

* refactor(ui): update alerting empty copy

* refactor(ui): ensure onboarding tooltips are using the correct prop names

* refactor(ui): remove tests for tooltips in admin step

These should be handled by Clockface instead

* refactor(ui): fix affected e2e test

* chore(ui): update changelog
2019-09-03 17:54:52 -07:00
Deniz Kusefoglu dde232b1ce
Switch edit and view actions ()
* Switch edit and view actions

* Fix test
2019-09-03 15:58:16 -07:00
Jade McGough d147874c1e
fix(kv): mock system buckets () 2019-08-30 12:47:06 -07:00
Deniz Kusefoglu 456dfcf4d8
Add http endpoint ()
* Add http endpoint

* Add http notification rule as option

* Update test
2019-08-28 13:06:19 -07:00
alexpaxton e9c6ce1165
refactor(ui): replace CardSelectCard with SelectableCard ()
* refactor(ui): replace CardSelectCard with SelectableCard

* refactor(ui): move ProtoboardIcon to shared folder

* refactor(ui): delete CardSelectCard

* refactor(ui): update test to use new component

* refactor(ui): fix erroneous imports

* refactor(ui): add missing file extension

* refactor(ui): fix affected e2e test
2019-08-28 08:43:52 -07:00
Deniz Kusefoglu 8766243470
Rule Check Endpoint polish ()
* Make endpoint description field normal sized

* Add password type to secret inputs

* de-snarkify and remove defaults from new-endpoint-draft

* Make new tag rules unique

* Remove hardcoded fields in initRuleDraft

* Add tag rule make statusRule is equal to level

* Status rule can be "is equal to"

* Remove cron option from rule

* Add the text lastupdated to cards

* Fix offset and every copy

* Improve Tags in checks

* Move threshold deadman selector to conditions card

* Filter empty tag rules on notification rules

* Make dismiss button gray

* Fix review comments

* remove irrelevant tests

* Fix missing url field from http rule
2019-08-27 19:35:20 -07:00
Michael Desa b26ed76d6a
fix(notification/check): ensure cloud integration works
fix(notification/check): include tags in check object in generated flux

Closes https://github.com/influxdata/influxdb/issues/14769

fix(notification/check): use selected field in threshold functions

Closes https://github.com/influxdata/influxdb/issues/14776

fix(testing): add selected field for check tests

fix(check): use real flux for threshold check

feat(notification/check): generate flux for deadman checks

chore(endpoint): rename webhook endpoint to http endpoint

fix(notification/rule): fetch url for flux script off of endpoint

fix(notification/rule): clean up slack and http rules

fix(notification/rule): change MessageTemp to MessageTemplate

fix(rules): pass endpoint in to rule during create

fix(ui): rename webhook to http

feat(notification/check): namespace deadman under alerts

fix(notification/check): nest tags under tags key in data object in flux

wip

feat(kv): log error if urm cannot be deleted for notification rule

fix(notification/rule): remove name from notify call in slack rule

chore(ui/cypress/e2e): skip rule create test
2019-08-27 15:02:53 -04:00
Andrew Watkins 0e4df01ddd
feat(alerts): rule overlay endpoint dropdown ()
* 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
Deniz Kusefoglu cd6a908048
feat: Alerting context menus ()
* Add clone to check card

* add clone and edit to rules

* Add error notifications and clone to endpoint context

* Fix missint incrementCloneName

* Fix cypress tests

* Remove try catch in endpoint add edit
2019-08-23 16:43:43 -07:00
Nathaniel Cook 4b339dd0cf fix(query/to): make orgID default to the context org
This change makes it so that if an org or orgID are missing on calls to the `to` function
that the orgID is retrieved from the request context.

This is consistent with how `from` works.
2019-08-23 11:03:26 -06:00
alexpaxton 3b714995cf
chore(ui): upgrade Clockface dependency to 0.0.27 ()
* 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
Andrew Watkins d39069f881
feat(alerts): introduce edit endpoint overlay () 2019-08-20 15:10:30 -07:00
alexpaxton 450b85f80e
refactor(ui): introduce "Load Data" tab ()
* refactor(ui): extend url activator to check on deeper URLs

* refactor(ui): create load data nav and page components

* refactor(ui): update telegrafs, scrapers, and buckets to use load data nav

* refactor(ui): update side nav and router to expose load data tab

* chore(ui): update changelog

* refactor(ui): update link to telegrafs page from status page

* refactor(ui): fix broken routes

* refactor(ui): make settings page tabs consistent with load data tabs

* refactor(ui): appease the linter gods

* refactor(ui): attempt to fix e2e tests
2019-08-20 10:24:49 -07:00
Andrew Watkins 286d57b0ba
feat(notifications): create notification endpoint overlay ()
* chore: update swagger definitions

* feat(endpoints): introducer endpoint overlay

* wip: change endpoint type

* feat(endpoint): add inputs for supported endpoint types

* wip: connect create endpoint to API

* feat: implement create endpoint

* alerts(e2e): add createEndpoint command

* chore: update swagger
2019-08-19 10:57:20 -07:00
alexpaxton 53f6806df1
chore(ui): upgrade Clockface dependency to 0.0.25 ()
* 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
alexpaxton dc0d663364
chore(ui): replace local ConfirmationButton using Clockface ()
* 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
Andrew Watkins 1d256551f6
feat(alerts): create notification rule overlay ()
* 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 ()
* 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
George b2fe0d1d63
fix(tasks): surface flux errors on pre-auth check () 2019-07-31 11:46:28 +02:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of 
2019-07-30 09:35:05 -07:00
alexpaxton 93649a71b5
refactor(clockface): replace local resource list components with Clockface resource list components ()
* 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
Alirie Gray 7b96bd95f0 test(tasks): fix cypress tests for task creation with token 2019-07-26 09:51:33 -07:00
Andrew Watkins b856c31aae
style(clockface): upgrade to 0.0.18 ()
* 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
Andrew Watkins d2933cc184
build(webpack): parcel to webpack ()
* 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
Andrew Watkins e25a8fa181
fix: sorting label by description ()
* chore: labels test cleanup

* fix: throwing error when value is empty string
2019-06-18 08:47:57 -07:00
Kelvin Wang 7a40d92375 fix(ui): update ui telegraf orgID 2019-06-03 19:40:33 -04:00
karel-rehor f790799981 test(e2e/ui): labels tests and post rebase ()
* # 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
Alirie Gray 576da8f9d2 fix(swagger): add log property to task runs endpoint docs 2019-05-17 14:08:10 -07:00
karel-rehor e9ccde1d78 test(e2e): Bonitoo cypress tokens ()
* added writeData command

* better junit reporting

* adding package-lock.json as per circle-ci hint

* delinting

* removed chainable .only.

* removed commented line

* starting onboarding test

* onboarding assert

* complete onboarding to quick start

* additional onboarding tests

* delinting

* adding field requirements test

* fixing merge conflicts

* 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

* resynch promql.go

* refactor add last data-testid replacements onb test

* replacing lost asserts

* improving assert

* passing in additional data-testid values

* removing bin_gen.go from branch

* starting tokens test

* troubleshoot tokens test

* WIP tokens test - clean up after troubleshoot

* WIP - tokens tests

* synching tokens test with clockface changes

* updating testID in tokens test

* re-enable all current tokens tests

* linted tokens.test.ts

* stablize beforeEach in tokens.test
2019-05-16 10:48:20 -07:00
Palak Bhojani bfad4d6581 Update Variables tab to use ResourceList instead of IndexLits 2019-05-13 15:22:50 -07:00
Iris Scholten 41e578a4c2 chore(ui): Use ResourceList component for Scrapers List 2019-05-13 10:30:56 -07:00
Palak Bhojani 49cfc08d2d Update Buckets list to use ResourceList instead of IndexList 2019-05-10 16:17:20 -07:00
Andrew Watkins 231bb0967a
feat: make buckets a list instead of a dropdown ()
* feat: make buckets a list instead of a dropdown

* test: update query builder test

* test(e2e): update selectors
2019-05-07 10:35:10 -07:00
Deniz Kusefoglu 3ebc2fd453 Add test-ids to create resource dropdown items 2019-05-06 14:11:28 -07:00
alexpaxton 62f8a654a6
Upgrade to Clockface 0.0.13 ()
* Upgrade!

* Replace "customClass" with "className"

* Upgrade to 0.0.12

* Replace square shaped buttons with SquareButton

* Appease linter gods

* Polish panel in org profile

* Update snapshots

* Upgrade to Clockface 0.0.13

* Fix button refs bug

* Fix failing unit test

* Fix onboarding e2e tests
2019-05-02 09:22:25 -07:00
Andrew Watkins f2fd7d6728
feat(ui/explorer): add imports to flux scripts ()
* fix(ui) Update flux function docs and examples

* add package property to FluxToolbarFunction

* added package property to built-in flux functions

* added package propert to the toFloat function

* prettified fluxFunction.ts

* updated columns parameter on derivative function

* added newline after derivative desc for prettier fluxFunction.ts

* chore(e2e): updsate cypress to 2.0

* feat(query-builder): add import statements

* wip

* feat(ui/builder): simplify import addition logic

* test: remove only

* chore: linting

* test: string organization
2019-04-29 21:56:36 -07:00
Palak Bhojani 1e4acb3815 Update telegraf list to use ResourceList 2019-04-23 09:20:34 -07:00
Delmer Reed 4684b9fac0 feat(ui/buckets): add buckets danger zone
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-04-19 17:02:45 -04:00
alexpaxton 2b8c17b767
Polish Create From Template Overlay ()
* Move and rename components

* Break overlay into subcomponents

* Create empty state with link when no templates exist

* Break down template overlay components further

* Enable scrolling in overlay

Use custom UI instead of responsive grid

* Updoot changelog

* Fix e2e test

* Improve readability of code

* Import types from src/types instead of directly from client

* Import type from src/types instead of directly from client

* Do not display version of template in details panel

* WIP import types from src/types instead of directly from client

* Fix template types
2019-04-16 13:58:27 -07:00
karel-rehor 8d178ebda1 test(e2e): bonitoo cypress onboarding ()
* added writeData command

* better junit reporting

* adding package-lock.json as per circle-ci hint

* delinting

* removed chainable .only.

* removed commented line

* starting onboarding test

* onboarding assert

* complete onboarding to quick start

* additional onboarding tests

* delinting

* adding field requirements test

* fixing merge conflicts

* 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

* resynch promql.go

* refactor add last data-testid replacements onb test

* replacing lost asserts

* improving assert

* passing in additional data-testid values

* removing bin_gen.go from branch
2019-04-16 09:06:16 -07:00
Alirie Gray 0bd62f468f fix(tests): fix flaky dashboards e2e test 2019-04-12 15:05:57 -07:00
Alex P aa57ca363a Fix e2e test 2019-04-08 11:49:52 -07:00
Iris Scholten 05df47d1b0 feat(ui): Add create org to side nav 2019-04-04 17:09:56 -07:00
Deniz Kusefoglu 9808ce2a5f Unskip tasks tests 2019-04-04 11:25:41 -07:00
Iris Scholten 05b9b54e98
feat(ui): make dashboards pages org centric ()
* Update dashboards page to show dashboards from current org

* Remove org info from dashboard cards and table

* Remove unused action

* Update create labels to always create a label in the current org

* Fix closing veo route

* Stop skipping create and add label to dash test
2019-04-03 09:41:59 -07:00
Alirie Gray d10d216a3f test(dashboards): create dashboard from template in dashboard index 2019-04-02 14:33:09 -07:00
alexpaxton d0c31efd72
Improve Navbar ()
* Allow nav menu items to be configurable

* Move highlighting logic outside of navbar component into container

* Refactor nav sub items to follow new pattern

* Update tests

* Fix e2e test

* Add className prop to all nav components

* Make nav menu items into PureComponents

* Make all nav defaultProps required

* Treat className & testID uniformly on both types of nav items

* Move nav activation getter to utils folder
2019-04-02 12:57:09 -07:00
Deniz Kusefoglu a71dbc52fb
Merge pull request from influxdata/org-reborg
Org reborg
2019-04-01 13:35:53 -07:00