Commit Graph

59 Commits (c8af0f35be11d9e731e3bfdba3e16ea45513a814)

Author SHA1 Message Date
Andrew Watkins e042fa8207
chore: upgrade react router (#18854)
* chore(wip): upgrade react-router-dom react-redux and connected-react-router

* chore(wip): move UnauthenticatedApp routes

* fix: type errors

* chore: render Getting Started

* chore: render tasks page

* chore: onboaring configure later

* fix: navbar orgID

* fix: two onboarding tests work

* chore: all onboarding tests pass

* chore: switch routes

* chore: no switch

* chore: task and data explorer working

* chore: dashboard index routing

* chore: route dashboard, cells, and veos

* chore: route to notebooks

* chore: add buckets routing

* chore: use constants for routes

* chore: route telegrafs

* chore: place overlays in an index

* fix: dashboard note overlays

* fix: generate token overlays

* fix: scrapers index

* chore: route client libs page and overlays

* chore: variable and template routes

* chore: label index routing

* chore: route AboutPage

* chore: alert routing

* chore: members routing

* chore: login routing

* fix: basepath

* fix: onboarding not rerendering

* fix: org rename

* fix: dashbaoard templates

* test: fix jstests

* chore: move dashboard routes

* fix: dashboard index catching dashboard show routes

* fix: e2e test

* chore: cleanup

* style: revert signin page
2020-07-06 10:45:43 -07:00
David McKay b3c738fc53 fix: have tests use non-default value and support pkger 2020-06-25 18:16:57 +01:00
David McKay 76e3fe103a feat: allow for hoverDimension to be configured 2020-06-25 18:16:57 +01:00
Rose Parker a30cd274a7 feat: Dashboards maintain sort order after navigating away 2020-06-09 07:57:16 -07:00
Deniz Kusefoglu 1a0cb0b803
feat(sampledata): Add demodata bucket type (#17553)
* feat(sampledata): Add readableRetention to buckets remove ruleString

* feat(sampledata): Add new demodata bucket type and card

* feat(sampledata): Fix buckets in test

* feat(sampledata): Return empty array if demodata bucket fetching errors

* feat(sampledata): Do cleanup

* feat(sampledata): Make components more readable
2020-04-01 20:39:17 -07:00
Ariel Salem d2a49b8052
fix(ui): fixed dashboard cells and check query builder update bug (#17202) 2020-03-11 14:35:39 -07:00
Andrew Watkins 7188363c2b
refactor: normalize labels (#16787)
* chore: move thunks and creators

* refactor(labels): normalization

* refactor(variables): normalize labels for variables

* refactor(templates): label normalization

* refactor(labels): convert to labelIDs

* test: add label tests

* fix: filtering by labels

* fix(labels): delete test

* chore: remove unused import

* fix: template dashboards

* test: fix / update broken unit tests

* chore: defenisve against non-existent labels

* chore: move auth schema

* chore: move bucket schema

* chore: move more schemas

* chore: move org schema

* chore: move schemas

* fix: test imports

* test: add setRelation test
2020-02-10 15:38:51 -08:00
Andrew Watkins a4e3dce135
refactor(ui): normalize cells (#16569)
* wip: cells reducer

* wip: normalize cells

* refactor(norm): dashboards

* chore: move GetResources to resources dir

* feat: introduce GetResource component

* feat: introduce GetTimeRange component

* refactor(cells): move updateCells to cells thunks

* refactor: move clone cell

* refactor: stop passing entire dashboard to dashboard page

* chore: cleanup

* fix: overlays not rendering

* refactor: move GlobalAutoRefresh polling to container

* refactor: stop passing entire dashboard object

* fix: deletion of dashboards

* fix: runtime error and formatting
2020-01-21 10:54:24 -08:00
Deniz Kusefoglu f64c63120a
Chore(ui): Use typed timeRanges throughout the app (#16130)
* chore(ui): Remove unused references to timeRange

* chore(ui): Add comment to timerange to duration function

* chore(ui): Fix getTimeRangeVars.test

* Refactor getTimeRangeVars.ts

* chore(ui): Remove references to zoomed time range

* chore(ui): Remove unused set dashboard time range v1 action

* chore(ui): Add preliminary timeRange types

* chore(ui): Add init pass at reasonable timeRange constants

* chore(ui): Finish Remove unused set dashboard time range v1 action

* fix(ui): Conver redux ranges state to object from array

* chore(ui): Read from and write to ranges local storage

* chore(ui): Reorder imported things

* chore(ui): Add typing to timeRanges from query params and localstorage

* chore(ui): Fix Dashboard and DE Time Range Dropdown

* chore(ui): Fix check timeRange

* chore(ui): Convert duration time Ranges to custom for time range dropdown

* chore(ui): Convert delete with predicate timeranges to TimeRange types

* chore(ui): Convert predicates timeRange to custom

* chore(ui): fix ValidateAndType bug

* fix(ui): Fix show bucketname in delete data form

* fix(ui): Allow timeRange to handle all duration time Ranges

* chore(ui): Separate DeleteDataOverlay update logic

* fix(ui): Fix deletedata overlay dismiss routing

* chore(ui) cleanup

* chore(ui): Allow timeRange dropdown to work with no prior timeRange selection

* chore(ui): Remove unused import

* fix(ui): Fix time Ranges tests

* fix(ui): Fix tests

* fix(ui): Fix tests

* fix(ui): Extract label creation function and use where needed

* fix(ui): Fix predicate testing

* fix(ui): Fix prettier issue

* chore(ui): Refactor duration.ts

* chore(ui): Remove labels from timeRange

* chore(ui): Return label for selectable-duration label

* chore(ui): Resolve merge error

* chore(ui): Make tests more robust

* feat(ui): protect query params access with get

* chore(ui): Add comment to warn against regex behavior

* Apply prettier to predicates.test
2019-12-10 12:52:03 -08:00
Michael Desa 1be8c8025a
Merge pull request #16100 from nwneisen/remove-source-endpoint
chore: remove "/sources" endpoint
2019-12-04 11:10:59 -05:00
nwneisen c315c237b5
chore: remove sources and fix resulting breaks
Signed-off-by: nwneisen <nwneisen@gmail.com>
2019-12-04 08:42:42 -07:00
Timmy Luong cf96cc4a84 feat(ui): add positioning option to line graphs 2019-12-03 16:10:50 -08:00
Ariel Salem 8d80f712ea
fix(ui): querying a time range without relevant data should show no data for that part of the timerange (#16040)
* fix(graph-time-query): updated graphs so that graph x-axis reflects the input timeRange

* fix(dashboard-timerange): dashboard timerange is now outputting the correct timerange

* fix(ui/dashboard): connected the timeMachine to the component to make data consistently available based on timeMachine context

* fix(query): updated implementation to reduce mucking the timeMachine reducer logic

* fix(edit-veo): configuring a timerange in the dashboard should be accessible when editing cells

* fix(wip): wip

* fix(graph-time-query): updated graphs so that graph x-axis reflects the input timeRange

* fix(dashboard-timerange): dashboard timerange is now outputting the correct timerange

* fix(ui/dashboard): connected the timeMachine to the component to make data consistently available based on timeMachine context

* fix(query): updated implementation to reduce mucking the timeMachine reducer logic

* fix(edit-veo): configuring a timerange in the dashboard should be accessible when editing cells

* feat(ui): Type start and end time functions

* fix(ui): Set VEO timeMachine timeRange from parent dashboard

* feat(ui): Regularize getStartTime and getEndTime

* feat(ui): Fix prettier errors

* fix(ui): added unit tests for critical parts of the function

* fix(ui): removed unnecessary console that was failing jstest

* fix(ui): added getStartTime and getEndTime tests:
2019-12-02 10:44:33 -08:00
Bucky Schwarz 45944a46d7 fix(ui): exiting out of a configure cell leaves cell content intact 2019-10-24 08:42:33 -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
Kelvin Wang 7a40d92375 fix(ui): update ui telegraf orgID 2019-06-03 19:40:33 -04:00
Palak Bhojani 1a9441c86a Fix permissions on view token overlay 2019-04-25 15:10:15 -07:00
Nathaniel Cook 8b918539db Merge branch 'master' into flux-staging 2019-04-17 12:26:10 -06:00
karel-rehor 8d178ebda1 test(e2e): bonitoo cypress onboarding (#13087)
* 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
jlapacik f33722a1d5 refactor(ui): no more /api/v2/query/spec endpoint 2019-04-12 07:15:27 -07:00
Andrew Watkins 5a014dcb09
chore(ui): organize ts types (#12900) 2019-03-26 11:35:39 -07:00
alexpaxton 4b53d29b63
Fine tune inline label keyboard interactions (#12610)
* Fine tune keyboard shortcuts during inline label flow

* Update changelog

* Update label type in mocks

* WIP Add unit tests for inline label editing components

* WIP Add unit tests for inline interactions

* Write slightly more integrated test

* Just a couple more unit tests

* Add missing key to element in map

* Fix e2e tests
2019-03-14 13:15:21 -07:00
Alirie Gray e4b3023748 fix(tasks): replace organization on tasks with org name string 2019-03-05 14:43:50 -08:00
Deniz Kusefoglu 6bc33d134e Place all Task typing in one place 2019-02-28 14:03:03 -08:00
alexpaxton 6e1ee40f45
Introduce ResourceList components and implement on Dashboards index (#12166)
* WIP Introduce Resource List component family

* Shrink padding of resource cards a bit

* Swap positions of meta information and labels in resource cards

* Introduce resource name component

* Polish resource name editing

* Remove child type validation from context component

* Styles for context menus inside resource cards

* Make resource name + meta line responsive

* Polish appearance of responsive resource description

* Replace dashboards list with dashboards cards

* Update e2e tests and add testID props to a bunch of components

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

* Make testID props consistent

Make all cypress tests have .test extension
Update E2E tests for dashboards index
Split off test for dashboards view

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

* Move cell test to dashboards view test

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

* Remove cells test from dashboards index test

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

* Fix dashboard view - cells e2e test

* Refactor meta1 and meta2 props into a single metadata prop that returns an array of elements

* Cleanup

* Fix and refactor e2e test to be less brittle
2019-02-25 17:41:18 -08:00
Christopher Henn a499a8b0d9 Enable adding a description to a telegraf config 2019-02-21 14:06:04 -08:00
Alirie Gray 298c1adc92 Rename Macro to Variable in generated client imports 2019-02-14 14:54:43 -08:00
Alirie Gray 5f524eb92d Rename all occurences of Macro to Variable 2019-02-14 13:21:57 -08:00
Alirie Gray f809455b9d Add ability to delete a variable from organizations page 2019-02-14 12:06:24 -08:00
Palak Bhojani fe0ef331f9 Create tests for adminui tabs 2019-02-11 10:43:34 -08:00
Brandon Farmer 3992fa9d54 Remove typescript client generation
- All api calls are now through the client or raw XMLHTTPRequest
2019-02-05 17:13:57 -08:00
Iris Scholten fd974fb6b6 fix(ui/dataLoaders): Add swap to system bundle 2019-02-05 10:59:37 -08:00
Andrew Watkins 854b2a43eb
test(ui): component integration testing w/ mock redux store (#11577)
* wip: introduce connected async component test

* test(query-builder): mock findBuckets

* test(ui): add ability to pass arbitrary state to renderWithRedux

* test(ui/queryBuilder): click bucket and tag

* test(ui/queryBuilder): use regex matchers to query all

* test(ui/queryBuilder): it can click a tag value

* chore: change id to ID

* chore: move QueryBuilderFetcher

* test(ui/queryBuilder): try waiting for dropdown-items

* test(ui/queryBuilder): move initial state out of beforeEach

* test(ui/queryBuilder): get by bucket name

* wip

* test: put back to default

* test: remove await
2019-01-25 14:08:57 -08:00
Iris Scholten e85e54441b Fix empty dropdown bucket in collectors 2019-01-22 17:23:54 -08:00
Delmer f074315881
fix(ui): wiring for labels (#11404)
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2019-01-22 14:22:11 -08:00
Deniz Kusefoglu b249f82e6d Add organizationID to telegrafsRequest schema 2019-01-15 10:40:39 -08:00
Deniz Kusefoglu d8eb0d0a5d Replace organizationID with orgID everywhere 2019-01-14 18:34:12 -08:00
Iris Scholten dec48900d9 Update onboarding to be able to make telegraf configs
Co-authored-by: Chris Goller <goller@gmail.com>
2019-01-11 15:26:16 -08:00
Deniz Kusefoglu 88cb771aac Alter FE data types for cell and view to include parent IDs, use new nested view API 2019-01-10 10:05:58 -08:00
Iris Scholten 4f96333b52 feat(ui/labels): display labels in task row 2019-01-08 16:07:10 -08:00
alexpaxton 21c996383c
Display Labels in Dashboards Index (#2330)
* Update cur_swagger

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Display labels in dashboards list

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Add # to example label

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Write test for dashboard TableRow component

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Update snapshot and mock data

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Increase page gutter and max width of centered pages

* Show description in dashboards list

* Update snapshot

* Fix linting error

* Remove snapshot check from unit test
2019-01-08 14:56:48 -08:00
Palak Bhojani ae6c0957e3 Remove plugin bundles that don't match the protoboards 2019-01-07 11:55:06 -08:00
Brandon Farmer f06b258a13 Add verify step for line protocol onboarding 2019-01-03 09:57:39 -08:00
Andrew Watkins 3429e8d0c6
feat(auth): rewrite authorization service (#2157)
* feat(view-token-overlay): add view token overlay

* test(tokens): update tests

* chore(auths): rename mock data file

* feat(token-view): clicking on description opens token view modal

* feat(token-view): add ability to close overlay

* feat(token-view): display token permissions with updated permissions shape

* feat(token-view): wip update authorization and permission shapes

* feat(auth): wip refactor auth permissions

* fix(auth): generate permissions via functions

* fix(auth): make Id ID

* chore(types): update generated client

* feat(auth): wip add user and org names to auth

* fix(user): didnt save rebase

* feat(auth): WIP refactor auth

* feat(auth): check for user existence during auth creation

* feat(auth): org must exist during auth creation

* fix(auth): pluralize telegrafs resource type

* docs(http): update swagger definition for the Authorization

* test(auth): fix broken tests

* docs(swagger): update cur_swagger Authrorizations

* fix(api): remove trace from cur_swag

* test(ui/token): update components with new generated type definitions

* feat(http): add lookup service adding names for permissions

* fix(http): remove debugging panics

* chore: go tidy

* fix: unsaved rebase

* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Iris Scholten 52b05fb5a3
Merge pull request #2010 from influxdata/dataLoaders/configure-next-back
fix(ui/dataLoaders): Update onboarding button labels and functionality
2018-12-18 11:26:05 -08:00
Iris Scholten 388265604b fix(ui/dataLoaders): Update the button labels and funcitonality in onboarding steps 2018-12-17 17:46:50 -08:00
Alirie Gray 0f825d4ea3 Match shape of get/authorizations to backend response 2018-12-17 16:17:10 -08:00
Alirie Gray 381565fe8c Handle setting step status when skipping a step 2018-12-13 16:42:37 -08:00
Alirie Gray 69b59fbcb4
Dataloader/update progress bar (#1851)
* Update step statuses in onboarding wizard
* Create reducer to set configuration state for telegraf plugins
2018-12-13 14:29:12 -08:00
Iris Scholten c9508d4ac9 Feat(ui/dataLoaders): Change individual plugin selection to bundle selection 2018-12-12 12:48:10 -08:00