Commit Graph

418 Commits (da0f5d5ea6597ba4549d778858189508a8b21292)

Author SHA1 Message Date
Delmer dd71ce5578
feat(ui/logs): add logs time selection actions (#1495)
adds simple log time selection
2018-11-21 08:15:50 -08:00
Brandon Farmer 272ffc44d6 Change swagger to represent nested task 2018-11-20 15:06:30 -08:00
Palak Bhojani bf10974283 Added sorting on all the columns on task page
Change sortingHat to sort by a single (last clicked) column
Change sortingHat to sort by a single (last clicked) column
Created tests for TasksList
Create dummyData.ts in src/tasks instead of using the mocks/dummyData
Added IndexList instead of using table header on  Dashbaord
Test snapshot

Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-20 14:53:22 -08:00
Brandon Farmer 90506ed51c Move delete and get by id tasks to generated client 2018-11-20 14:14:45 -08:00
Brandon Farmer 4f8ae2ba5a Switch Task UI get tasks to use generated client 2018-11-20 13:58:02 -08:00
Christopher Henn af1d9e47b0 Fix issue with changing view types
Since the `id` was not preserved when switching view types, attempting
to save a view after changing its type would result in a new view being
created rather than the existing view being updated.

Also fixes an issue where a dygraph would not rerender when switching
from a step plot to line plot, or during similar conversions.
2018-11-20 13:12:09 -08:00
Christopher Henn 188e714942 Implement bar chart type 2018-11-20 13:12:09 -08:00
Christopher Henn e389c04c0c Consolidate dygraph chart types 2018-11-20 13:12:09 -08:00
Brandon Farmer 08589aae61 Switch Tasks UI updates to use generated client 2018-11-20 11:03:39 -08:00
Brandon Farmer 806c69dc90
Merge pull request #1408 from influxdata/fixes/update-task-creation-swagger
Update task creation request body in swagger
2018-11-20 10:36:40 -08:00
alexpaxton 3a510c9ef0
Merge pull request #1498 from influxdata/polish/cell-styles
Refactor Cell Styles
2018-11-20 10:27:15 -08:00
Brandon Farmer 789a072dc7 Fixes select task by id 2018-11-20 09:49:40 -08:00
Brandon Farmer 843a7a2ada Fix typing issues with generated client 2018-11-20 09:49:40 -08:00
Brandon Farmer 948d2dcbe4 Exclude generated code from linting 2018-11-20 09:49:40 -08:00
Brandon Farmer b4aa8ff1d6 Add generated API code and use for task creation
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-20 09:49:39 -08:00
Delmer d64ebf6662
feat(ui/logs): add loading of old logs (#1492)
feat(ui/logs): add loading of older logs
2018-11-20 12:15:06 -05:00
Christopher Henn 5c446d7047 Preserve queries when switching chart types 2018-11-20 08:11:23 -08:00
Christopher Henn 4bd0568f00 Fix incorrect loading state in VEO
Setting the initial `TimeMachine` state of the VEO after the VEO was
opened caused a double render in the `TimeSeries` component. This
created an issue where opening the VEO for a cell after the VEO had
previously been open would display the incorrect loading state (since
the `TimeSeries` component displays a special loading state for the
initial render).

This commit ensures the initial `TimeMachine` state for the VEO is set
before the VEO is opened.
2018-11-20 08:11:23 -08:00
Alex P a857b0d7fa Match name of classes to component names 2018-11-19 19:57:01 -08:00
Alex P 6775263c40 Make linter happy 2018-11-19 19:16:36 -08:00
Alex P e78d5e7daa Merge branch 'master' into polish/cell-styles 2018-11-19 19:13:42 -08:00
Alex P 7eaf49ce27 Style view empty state 2018-11-19 19:05:01 -08:00
Alex P 385ea38d15 Cleanup 2018-11-19 19:03:52 -08:00
Alex P ea884f833f Add theme support to context menus 2018-11-19 18:54:12 -08:00
Alex P 9f22c5df48 Refactor resizable handle styles 2018-11-19 18:05:44 -08:00
Alex P a7aeb332f8 Refactor and redesign cell context menus 2018-11-19 17:46:21 -08:00
Alex P 0e1ea2bf4c Introduce clockface context menu component 2018-11-19 17:45:47 -08:00
Alirie Gray f2d07acb5b
Merge pull request #1426 from influxdata/tasks/configure-task-options-from-flux-page
Create task options UI
2018-11-19 16:50:07 -08:00
Alirie Gray 5996e24a54 Create task options UI
* Create TaskOptions type and actions/reducers
* Add prevent default event handling to Dropdown click functions
* Improve utility of ComponentSpacer
* Create components for task option unit and org dropdowns
* Replace ActionTypes enum with hard-coded strings in tasks actions

Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-11-19 16:11:44 -08:00
Christopher Henn 3bddf76bb3 Submit script on Control-Enter 2018-11-19 15:59:26 -08:00
Christopher Henn f487d38e3c Do not autorefresh in VEO 2018-11-19 15:59:26 -08:00
Christopher Henn e3fa95fdd1 Show query status in submit script button 2018-11-19 15:59:26 -08:00
Christopher Henn 646879704f Remove menu options from Threesizer 2018-11-19 15:59:26 -08:00
Christopher Henn d2019fedd5 Port FluxFunctionsToolbar 2018-11-19 15:59:26 -08:00
Christopher Henn 43199e4468 Move TimeMachine activeTab state to Redux 2018-11-19 15:59:26 -08:00
Delmer 7e3f968484
fix(logs/ui): fix logs table height calculation (#1399)
fix(logs/ui): fix table height calc
2018-11-19 18:25:06 -05:00
Alex P 10d6c3e6b6 Remove cellheader component 2018-11-19 14:55:33 -08:00
Alex P d5b3c86078 Import react grid layout styles into associated component 2018-11-19 14:35:24 -08:00
Alex P b31acff421 Rename stylesheet and import into associated component 2018-11-19 14:34:40 -08:00
Alex P 4823b6d01b Introduce cell border component 2018-11-19 14:34:13 -08:00
alexpaxton b01627b62b
Merge pull request #1489 from influxdata/clockface/form-tweak
Cleanup Clockface Form Component
2018-11-19 12:24:17 -08:00
Alex P 935253187c Gaurd against nonexistant onSubmit 2018-11-19 10:49:37 -08:00
Alex P 7636400022 Remove unused child type validation 2018-11-19 10:49:25 -08:00
Andrew Watkins fc41d6454e
feat(sort-table): reusable component for table sorting (#1473)
* Introduce SortingHat component

* feat(dashboard-index): add sorting to table

* Implement suggestions
2018-11-19 10:40:25 -08:00
Christopher Henn cd0de6babb Add "View Raw Data" feature to TimeMachine 2018-11-19 10:00:47 -08:00
Christopher Henn 75b0052e75 Fix hover legend in DataExplorer 2018-11-19 10:00:47 -08:00
alexpaxton e09dd2abde
Merge pull request #1465 from influxdata/polish/fade-disabled-links
Fade IndexList Disabled Links to Match Design Spec
2018-11-16 15:24:35 -08:00
Iris Scholten 5e6a7c16b7 Add step for choosing csv, streaming, or line protocol 2018-11-16 14:17:39 -08:00
Alex P 439da75ac4 Fade color of links in disabled IndexList rows to match design spec 2018-11-16 11:20:04 -08:00
Palakp41 bf0d8362a2
Merge pull request #1464 from influxdata/fix-tasks-page-css
Fix css on tasks header for cleaner view
2018-11-16 11:08:06 -08:00
Palak Bhojani 846912c088 Fix css on tasks header for cleaner view 2018-11-16 10:18:07 -08:00
Christopher Henn b22c97df6f Remove use of external file download code 2018-11-16 10:12:29 -08:00
Christopher Henn 79b0ea9374 Add CSV export button to TimeMachine 2018-11-16 10:12:29 -08:00
Christopher Henn 74f7c81b7f Work around emergent type errors 2018-11-16 10:12:29 -08:00
Christopher Henn 355a19fe7a Split out singular time machine reducer 2018-11-16 10:12:29 -08:00
Christopher Henn 34d2216dc1 Introduce selector for getting active time machine 2018-11-16 10:12:29 -08:00
Christopher Henn 1b9fd1bcda Hoist TimeSeries component to root of TimeMachine
This enables us to use the data provided by the `TimeSeries` component
outside of the `TimeMachine` visualization without breaking one-way data
flow.
2018-11-16 10:12:29 -08:00
Delmer 3c6445cbaf
feat(ui/logs): add influxql logs querying utils (#1415)
feat(ui/logs): add influxql log querying utils
2018-11-16 11:45:56 -05:00
Palak Bhojani 0a22974e29 Add onclick to organization on task row
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-15 16:32:38 -08:00
Palak Bhojani 1d5828d05a Add error message on task not created error
Co-authored-by: Palak Bhojani <palak@influxdata.com>
2018-11-15 15:24:23 -08:00
alexpaxton 512ec658e7
Merge branch 'master' into clockface/improve-index-list 2018-11-15 14:47:13 -08:00
Christopher Henn 6d0654d0f8 Add ability to filter orgs index 2018-11-15 14:07:50 -08:00
alexpaxton f4e7cc4233
Merge pull request #1407 from influxdata/polish/orgs-index-alignment
Fix Alignment of Orgs Index View
2018-11-15 14:02:21 -08:00
Palakp41 bf34eceb0f
Merge pull request #1419 from influxdata/feat/tasks-org-dropdown-filter
Create a dropdown filter to filter tasks through Organizations
2018-11-15 13:42:50 -08:00
Iris Scholten c79a8c90a3
Merge pull request #1416 from influxdata/onboarding/select-source
feat(ui/dataSources): Add initial Select Data Sources Step
2018-11-15 13:25:01 -08:00
Palak Bhojani b798e55db3 Create a dropdown filter to filter tasks through Organizations
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-15 13:24:49 -08:00
Christopher Henn c7a708d3db Fix ProfilePage typechecking 2018-11-15 12:35:32 -08:00
Christopher Henn db5337d42a Move org name to page header on org page 2018-11-15 12:35:32 -08:00
Iris Scholten b493e97e5c Add initial Select Data Sources Step 2018-11-15 11:46:14 -08:00
Palak Bhojani 4bdeb1a934 Add export button on task row
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-15 11:03:03 -08:00
Alex P e6f0b2d6a8 Fix more imports >___< 2018-11-14 17:41:34 -08:00
Alex P a2c9ea3590 Fix import 2018-11-14 17:38:42 -08:00
Alex P 04e6aa035c Update test snapshots 2018-11-14 17:38:38 -08:00
Alex P 510d426821 Merge branch 'master' into clockface/improve-index-list 2018-11-14 17:36:27 -08:00
Alex P 95660e583f Add optional sortable options to headers 2018-11-14 17:28:27 -08:00
Christopher Henn 81c0e53c4a Add initial source management UI 2018-11-14 16:38:25 -08:00
Alex P 629a03330d Import styles directly into component 2018-11-14 16:00:41 -08:00
Alex P 25b3e4f29e Move IndexList into Clockface directory 2018-11-14 15:49:19 -08:00
Alex P b357f22ef1 Wrap orgs index list in 12 column div
This fixes the misalignment of the page
2018-11-14 15:25:09 -08:00
Palak Bhojani a7b8d4b35e Resolved state into action/reducer 2018-11-14 15:24:16 -08:00
Palak Bhojani 04ee4fce3c Added toggle on Task Header for option to show only active
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-14 15:24:16 -08:00
alexpaxton 0558f351d4
Merge pull request #1404 from influxdata/polish/page-layout-styles
Polish Page Styles
2018-11-14 15:16:22 -08:00
Alex P 1890fa96d4 Cleanup 2018-11-14 14:36:49 -08:00
Alex P ab2103c0cb Make radio buttons "primary" theme by default 2018-11-14 14:36:10 -08:00
Alex P 2ed24a76a7 Make Radio button active state more obvious 2018-11-14 14:35:59 -08:00
Alex P 6490283700 Import stylesheet into component 2018-11-14 14:27:11 -08:00
Alex P 24075ccc4c Import page styles into nav component 2018-11-14 14:13:49 -08:00
Palak Bhojani 57c17ba535 Added schedule column to the tasks page
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-14 11:18:03 -08:00
Delmer fc4986f422
fix(ui/logs): time point selection dropdown (#1361)
fix(ui/logs): update time point selection to use clockface
2018-11-14 07:10:43 -05:00
Palak Bhojani 53d36e49b7 Updated function name for toggle in task row 2018-11-13 16:01:15 -08:00
Palak Bhojani 3d9df39fd1 Updated Organizaiton Tasks to include the task status 2018-11-13 16:01:15 -08:00
Palak Bhojani 8a58fb4041 Add enable toggle feature to tasks page
Co-authored-by: Palak Bhojani <patel.palak41@gmail.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-13 16:01:15 -08:00
Palak Bhojani 418116a49a Capitalized columns names on the tasks list page 2018-11-13 14:53:13 -08:00
Andrew Watkins 536bbe297e
feat(chrono): replace div with form element in Form component
* cleanup

* feat(forms): add onSubmit handlers to older forms

* cleanup
2018-11-13 12:36:16 -08:00
Iris Scholten b9ad495e58
Merge pull request #1352 from influxdata/line-display-options
Add display options ui for line graph types
2018-11-12 16:46:10 -08:00
Christopher Henn 78d3a0ba2d Streamline signin page
1. The username field is now autofocused.
2. Pressing enter in an input will submit the signin form.

Long term, we should switch the reusable UI `Form` element to use an
actual HTML `form` element, rather than a `div`. That way we get these
sorts of interactions for free.

Closes #1354
Closes #1355
2018-11-12 15:29:02 -08:00
Iris Scholten 9c3ec093b9 Add display options ui for line graph types 2018-11-12 12:42:09 -08:00
Delmer 53085c20b9
fix(ui/logs): update flux col to column in query (#1348)
Updates the ui/logs flux query builder to use the full word for column
in the flux query.
2018-11-12 13:01:14 -05:00
Christopher Henn 2f8893f5d5 Port 1.x Dygraph component
This ports the `Dygraph` component from Chronograf 1.7, which contains
many bug fixes and enhancements. Notably, it does not quadruple render
on every mouse move event.

The component has been adapter for platform. All code relating to
annotations and the static legend has been removed.
2018-11-09 16:57:48 -08:00
Christopher Henn 76637da6aa Flatten views state 2018-11-09 16:57:48 -08:00
Christopher Henn df636fb84d Move hoverTime and related state out of Redux
The `hoverTime` state updates very rapidly (on every mousemove event for
any graph in a dashboard). This makes storing the `hoverTime` in Redux
expensive, since _every_ Redux-connected component in the render tree
must rerender when any piece of state in the Redux store is updated.

This commit moves `hoverTime` (and `activeViewID`, and related setters)
out of the Redux store in favor of a context based solution. Now, when
the `hoverTime` updates, only components that actually use that state
will rerender.
2018-11-09 16:57:48 -08:00
Christopher Henn 886aa130ea Load/persist draft script when opening/closing VEO 2018-11-09 10:27:41 -08:00
Christopher Henn 62d1b1d2c2 Add basic Flux editor to TimeMachine 2018-11-09 10:27:41 -08:00
Andrew Watkins 06f468bdcb
chore(refreshing-view): tweaks
* Rename AutoRefresh to AutoRefresher, rename global

* Remove presentational states from TimeSeries component

* Simplify TimeSeries reload logic

* Remove unused props from RefreshingView

* Display loading errors in RefreshingView

* chore(views): extract non-visualization state and switching logic into components
2018-11-08 14:24:23 -08:00
Christopher Henn 95f6984ef2 Eliminate race condition in TimeSeries component 2018-11-08 10:44:54 -08:00
Christopher Henn cc1070fc1c Differentiate between new and persisted view types 2018-11-07 17:42:35 -08:00
Christopher Henn 5475fcdf1b Enable saving a new cell to a dashboard 2018-11-07 15:05:42 -08:00
Christopher Henn b2330ba513 Fix DataExplorer styles 2018-11-07 15:05:42 -08:00
Christopher Henn 09ef4354ed Fix TSLint/Prettier errors
Ran the `tslint:fix` Yarn script.
2018-11-07 13:33:02 -08:00
Christopher Henn 8cd3ff3c40 Run TSLint in CI 2018-11-07 13:33:02 -08:00
Christopher Henn 9b529771eb Rename InfluxLanguages to InfluxLanguage
To stay consistent with TypeScript enum conventions.
2018-11-06 16:36:02 -08:00
Christopher Henn 5230d267f1 Replace query query util and remove template props
Replaces the utility function used to execute a Flux query with the
version from the 1.7 release of Chronograf, which supports limiting the
response size of a query to a predefined row limit.

Also removes the existing minimal support for template variables in
queries. Our implementation of template variables will need to change
significantly, since the backend API has been rewritten in an
imcompatible manner. Additionally, our support for template variables in
Flux queries has evolved significantly in the 1.7 release of Chronograf,
but none of those changes have been ported to platform yet.

As a consequence, the drilling of a `templates` prop through a certain
path in the render tree has also been removed.
2018-11-06 16:36:02 -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
Brandon Farmer 5eaf281489 Fix api calls for tasks, tasks are now nested in response 2018-10-31 13:32:04 -07:00
Deniz Kusefoglu 175ba056ae Onboarding wizard polish
Add password confirmation field
Cursor defaults to username field
Enter submits wizard steps
2018-10-29 12:05:18 -07:00
Michael Desa b9f70b7bec chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
Mark Rushakoff 264a420f07 chore: move stray chronograf files to correct directory 2018-08-06 09:37:00 -07:00
Andrew Watkins 1042c22469 Bugfix/no org name (#4014)
Fix runtime error when no orgs
2018-07-26 11:21:42 -04:00