Delmer Reed
e3aaae62b4
Update title to titleText in Host and Admin page
2018-06-22 15:07:45 -04:00
Jared Scheib
3b111cc404
Type most of the rest of DashboardPage
...
Add stronger types to Dashboard Actions.
Refactor Dygraph.onZoom to pass TimeRange rather than splitting
arguments, and refactor respective DashboardPage & LogViewer
methods accordingly.
2018-06-21 20:42:10 -07:00
Chris Henn
4129cb2c4b
Merge pull request #3749 from influxdata/bugfix/page-headers
...
Fix missing page titles
2018-06-21 19:33:37 -07:00
Delmer Reed
2ab002c280
Fix types for presentation mode dispatcher
...
Cleaned up dashboard types and introduced the auth reducers types.
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-21 19:17:22 -04:00
Iris Scholten
184f9fd8c8
Merge pull request #3751 from influxdata/fix/crosshairs-pass-edge
...
Ensure hoverTime is a valid time range for the dygraph
2018-06-21 15:31:27 -07:00
Iris Scholten
d3c41bdc4d
Move check for valid time to first comparison
2018-06-21 14:59:37 -07:00
Iris Scholten
9e3e7d6565
Prevent index out of range error when getting min and max from timeRange
2018-06-21 14:58:28 -07:00
Iris Scholten
38e64be3af
Ensure hoverTime is a valid time range for the dygraph
2018-06-21 13:43:11 -07:00
Christopher Henn
8e0b0280c7
Fix display of TemplateVariableEditor header
2018-06-21 11:38:14 -07:00
Christopher Henn
4356399967
Add test verifiying PageHeader dev assertion
2018-06-21 11:05:53 -07:00
Jared Scheib
bb938c0bf9
Add & reorg types dirs and files for dashboard reducers, actions, & apis
...
Continue typing DashboardPage.
2018-06-21 11:03:28 -07:00
Christopher Henn
6d2e821e4a
Fix failing admin page title test
2018-06-21 10:59:31 -07:00
Christopher Henn
cb0fe600fd
Add failing test for missing title on admin page
2018-06-21 10:59:31 -07:00
Christopher Henn
ca4216240c
Fix missing title on hosts page
2018-06-21 10:59:30 -07:00
Delmer
949151d0a2
Merge pull request #3745 from influxdata/flux/update-yields-on-script-change
...
Render data when yield node receives new script
2018-06-21 13:10:46 -04:00
Chris Henn
16c76d5c63
Merge pull request #3742 from influxdata/bugfix/flux-schema-formatting
...
Fix filter popup aesthetics
2018-06-21 09:59:13 -07:00
Chris Henn
803cfec5b8
Merge pull request #3738 from influxdata/tempVars/tests
...
Add two tests for template variables
2018-06-21 09:58:49 -07:00
Delmer Reed
b35315eabb
Clean up script update check
2018-06-21 12:46:58 -04:00
Delmer Reed
58854ec8f0
Render data when component recieves script update
...
Rendered yield data only currently happens on component mount and this
update checks for a script update to fetch yield results.
2018-06-21 12:19:17 -04:00
Delmer Reed
04c1601924
Update expressions to display yield in script
...
Updates expressions to pass a yield node from the script to a
YieldFuncNode and allowing the correct yield name to be displayed in the
builder.
2018-06-21 09:35:19 -04:00
Christopher Henn
c4d4770cd6
Fix filter popup aesthetics
2018-06-20 16:55:50 -07:00
Jared Scheib
3b61fefefe
Rename dashboards/apis/index.js to .ts
2018-06-20 16:28:13 -07:00
Jared Scheib
0fd89449bd
Add & fix consumption of Dashboard ActionCreator types
2018-06-20 14:45:07 -07:00
Delmer Reed
280ea0732b
Remove yield nodes not in declarations
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-06-20 17:43:09 -04:00
Delmer Reed
b33455e799
Move getDeep up and add space between types and relative imports
2018-06-20 17:33:13 -04:00
Jared Scheib
680c0e58f2
Merge remote-tracking branch 'origin/master' into fun/dashboard_page
2018-06-20 14:22:57 -07:00
Delmer Reed
754b119525
Fix FuncArgInput autofocusing
...
Keying by func.id instead of the func node's index was causing
the builder to repeatedly autofocus on the last expression node.
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 17:19:56 -04:00
Jared Scheib
c00c2f1a3a
WIP
2018-06-20 14:15:39 -07:00
Jared Scheib
891397ffcd
Simplify mapStateToProps & mapDispatchToProps
2018-06-20 13:57:12 -07:00
Delmer Reed
c317e03e07
Delete yield node when func node is deleted
...
Deletes the func node and either toggles the yield with last or removes
the following yield from the script.
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 16:55:52 -04:00
Christopher Henn
d8a3332fe1
Add TemplateControlBar test
2018-06-20 12:48:20 -07:00
Christopher Henn
1bf264e373
Add TemplateControlDropdown test
2018-06-20 12:47:46 -07:00
Delmer
10af172b32
Merge pull request #3730 from influxdata/fix/script-yield-before-range-filter
...
Fix unable to toggle yields
2018-06-20 15:29:02 -04:00
Delmer Reed
f591d72db2
Add type asserition to Papa.parse data
...
Parsed data from Papa.parse does not utilize a generic
type and returns any[]. Adding an asserition will at least
error if there are changes to the type of FluxTable.data.
2018-06-20 15:18:07 -04:00
Jared Scheib
46e9d305a3
Add type for GetAnnotationsAsync
...
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 12:15:44 -07:00
Alex P
dda369c24b
Merge branch 'master' into presentational-page-components
2018-06-20 11:36:35 -07:00
Christopher Henn
438e0725bd
Refactor TemplateControlBar test
2018-06-20 11:26:51 -07:00
Iris Scholten
3b3f4adf8c
Return empty string if value is null
2018-06-20 11:13:38 -07:00
Alex P
11b712ee7f
Rename prop to indicate intended use
2018-06-20 11:03:20 -07:00
Alex P
0d20a438d2
Improve clarity of prop name
2018-06-20 10:58:55 -07:00
Alex P
5753363168
Rename prop to be more descriptive
2018-06-20 10:57:19 -07:00
Alex P
ed83a254b3
Use getters to pass in elements directly instead of functions that return elements
2018-06-20 10:54:49 -07:00
Alex P
d2afd0f241
Fix rendering of logs toggle in TICKscript editor
2018-06-20 10:44:48 -07:00
Jared Scheib
fad628f89f
WIP Type DashboardPage & its dispatchers
2018-06-20 10:39:17 -07:00
Chris Henn
c81658f938
Merge pull request #3734 from influxdata/tempVars/meta-queries
...
Add "Custom Meta Query" template variable type
2018-06-20 10:38:29 -07:00
Alex P
7b9abf9080
Rename prop to "RenderPageControls"
2018-06-20 10:38:23 -07:00
Alex P
8b147b78f7
Remove center render prop from PageHeader
...
Only one instance of use, not worth the added complexity
2018-06-20 10:37:57 -07:00
Christopher Henn
b734f7cf00
Type MetaQueryTemplateBuilder constructor props
2018-06-20 10:03:18 -07:00
Christopher Henn
797b214d95
Access properties more safely
2018-06-20 10:02:33 -07:00
Delmer Reed
4e42fdcc35
Remove duplicate before/after filter and range checks
...
Removes component update checks for filter and range.
ExpressionNode now renders with a check for filter and range and
looks at the next func node index to determine how much script to pass
to YieldFuncNode. FuncNodes also utilize a isYielding and
isYieldingInScript to determine how to toggle yields.
2018-06-20 12:57:59 -04:00
Iris Scholten
8fd91e7263
Merge pull request #3722 from influxdata/fun/kapacitor-typescript
...
Convert Kapacitor components to typescript
2018-06-19 18:06:44 -07:00
Iris Scholten
ae1c4484be
Convert KapacitorRule tree to typescript
2018-06-19 17:46:51 -07:00
Iris Scholten
53520d84ba
Merge pull request #3733 from influxdata/fix/sorting-arrow-directions
...
Change Ascending arrows to point up instead of down
2018-06-19 17:35:51 -07:00
Deniz Kusefoglu
bb813ac6eb
Merge pull request #3721 from influxdata/fun/status-page-to-TS
...
Fun/status page to ts
2018-06-19 17:31:39 -07:00
ebb-tide
83c95ebc0c
TS things further
2018-06-19 17:12:30 -07:00
Christopher Henn
1b987b883d
Use more consistent naming
2018-06-19 16:39:28 -07:00
Christopher Henn
78c35f4f30
Refactor hydrateTempVarValuesAsync
2018-06-19 16:24:40 -07:00
Christopher Henn
eee06b07bb
Hydrate MetaQueryTemplateBuilder correctly
2018-06-19 16:24:40 -07:00
Christopher Henn
95a45fda9f
Support persisting "influxql" template variables
2018-06-19 16:24:40 -07:00
Alirie Gray
23a5acc959
Implement custom meta query template variable type
...
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-19 16:22:19 -07:00
Iris Scholten
68aa388028
Change Ascending arrows to point up instead of down
2018-06-19 16:21:52 -07:00
Alex P
b944622fbf
Implement PageHeader in SourceForm
2018-06-19 15:46:58 -07:00
Alex P
148c13809c
Provide mock context in test to prevent fail
2018-06-19 15:06:21 -07:00
Alex P
fc361aa57d
Refactor SourceIndicator to use context API
2018-06-19 15:06:03 -07:00
Alex P
239e4b9656
Remove only from test
2018-06-19 13:47:00 -07:00
Alex P
4f448a6cee
Refactor component to guard against missing context
2018-06-19 13:38:58 -07:00
Christopher Henn
19e6821e30
Improve save button copy in TemplateVariableEditor
2018-06-19 13:21:27 -07:00
Iris Scholten
2f216fd001
Remove implicit yield functionality
...
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-19 11:52:26 -07:00
Delmer Reed
e50801634b
Update FuncNode toggle to check when script yields
...
Updating FuncNode toggle to use a prop to determine when toggling
the script yield or yield with last in the ExpressionNode. The
is Yielding prop is not ineffective for determining how to toggle
a FuncNode. This also fixes an issue where toggling was not
updating FuncMenu styles.
2018-06-19 11:49:20 -07:00
Delmer Reed
463e2a98a1
Add response error handling in builder
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-06-19 11:47:41 -07:00
Delmer Reed
f31c207f42
Check for yields before filter and range funcs in expression
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-06-19 11:47:40 -07:00
Christopher Henn
7c0a2db03a
Preserve template variable name when editing type
2018-06-19 11:38:40 -07:00
Alex P
70e8b3c3d3
fix nesting issue in test
2018-06-19 11:29:56 -07:00
Alex P
bf1fd01b1e
Fix nesting issue in test
2018-06-19 11:29:45 -07:00
Alex P
4dcc9b5f7d
Remove connection to redux from page header
2018-06-19 11:29:24 -07:00
ebb-tide
598b799754
Fix failing test
2018-06-19 11:16:43 -07:00
ebb-tide
7b5d315f9f
Fix merge errors and rollback Source object updates
2018-06-19 11:05:18 -07:00
Alex P
8d58a1a1be
Merge branch 'master' into presentational-page-components
2018-06-19 10:32:27 -07:00
ebb-tide
a06a9d1a9f
Merge branch 'master' into fun/status-page-to-TS
2018-06-19 08:58:22 -07:00
Delmer
5c01e91c2f
Merge pull request #3666 from influxdata/fix/filter-args-state
...
Cancel FilterArgs response on unmount
2018-06-19 09:34:08 -04:00
Alex Paxton
667cc9bce0
Merge branch 'master' into flux/deletion
2018-06-18 19:50:47 -07:00
Alex P
36979be396
Refactor confirm button to use classnames instead of ternaries
2018-06-18 18:47:39 -07:00
Alex P
647b287b92
Don't render page header if in presentation mode
2018-06-18 18:22:16 -07:00
Jared Scheib
6c092b6453
Rename shared/actions/errors.js to errors.ts
2018-06-18 18:12:03 -07:00
Iris Scholten
93e72efb08
Convert Tickscript tree to typescript
2018-06-18 17:42:08 -07:00
Alex P
f30a617590
Use component instead of pure component to prevent updating issues
2018-06-18 17:38:12 -07:00
Alex P
436d2aa068
Convert Component to TypeScript and Implement PageHeader
2018-06-18 17:07:27 -07:00
Iris Scholten
95bc5537bb
Merge pull request #3719 from influxdata/fix/no-tempVar-values-typeerror
...
Fix type error when temp vars have no values
2018-06-18 17:07:25 -07:00
Chris Henn
66b58d82d5
Merge pull request #3709 from influxdata/bugfix/tempvars-null-query
...
Fix template variables missing query bug
2018-06-18 17:00:17 -07:00
ebb-tide
74be7fdf8c
Typescriptify Status Page and children
2018-06-18 16:57:56 -07:00
Iris Scholten
e0a85d1c3b
Fix type error when temp vars have no values
2018-06-18 16:41:51 -07:00
Jared Scheib
b9944cbdcb
Delete ui/src/shared/dispatchers/index.js & refactor delayEnablePresentationMode action
2018-06-18 14:59:25 -07:00
Deniz Kusefoglu
bf176ffc2f
Merge pull request #3707 from influxdata/bugfix/annotation-click-outside
...
Add back erroneously removed handleClickOutside functions to annotati…
2018-06-18 14:34:18 -07:00
Jared Scheib
c97fcc48d3
Type shared/actions/app.ts
2018-06-18 14:27:46 -07:00
Jared Scheib
c3b556329d
Rename shared/actions/app.js to app.ts
2018-06-18 14:18:42 -07:00
ebb-tide
6ff87be8e0
Actually type notifications
2018-06-18 14:10:29 -07:00
Jared Scheib
3944e0c43b
Rename DashboardPage.js to DashboardPage.tsx
2018-06-18 13:55:16 -07:00
Alex P
d0e63ab7c8
Implement PageHeader in chrono admin pages
2018-06-18 12:02:25 -07:00
Alex P
84ebabfce5
Implement PageHeader in kapacitor config page
2018-06-18 11:58:58 -07:00
Alex P
97027a024f
Improve styles for active & disabled states of radio buttons
2018-06-18 11:54:48 -07:00
Alex P
103a88e6eb
Implement PageHeader in tickscript editor
2018-06-18 11:48:24 -07:00
Alex P
9d40386388
Convert component to TypeScript
2018-06-18 11:34:18 -07:00
Alirie Gray
92dd608067
Fix misimported template variables constants
...
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-18 11:32:36 -07:00
Alex P
8cf54b6fc1
Refactor PageHeader into pure component that accepts a center prop
2018-06-18 11:22:36 -07:00
Alex P
c701f6a241
Convert component to TypeScript
2018-06-18 11:03:46 -07:00
Alex P
bf0d672d0b
Refactor RuleHeaderSave
...
Remove excess markup and source indicator
2018-06-18 10:59:57 -07:00
Alex P
e2b4ab4d61
Implement PageHeader in rule builder page
2018-06-18 10:56:49 -07:00
Alex P
46d1fda742
Merge branch 'master' into presentational-page-components
2018-06-18 10:32:49 -07:00
Christopher Henn
6b5086f0c9
Fix template variables null property bug
2018-06-18 09:52:36 -07:00
Iris Scholten
1486adfff7
Merge pull request #3698 from influxdata/fix/tempVar-no-value
...
Fix no selected tempvar value issue
2018-06-18 09:24:41 -07:00
ebb-tide
71d0c336fc
Add back erroneously removed handleClickOutside functions to annotation components
2018-06-18 09:23:57 -07:00
Christopher Henn
e6cd29da58
Introduce new template variables UI
...
PR: #3683
2018-06-18 07:16:08 -07:00
Lorenzo Fontana
71f232cf82
Close main template body only once
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-06-18 02:16:32 +02:00
Andrew Watkins
3836444bea
Merge pull request #3701 from influxdata/fun/misc
...
Source Page & Form
2018-06-15 18:11:26 -07:00
Jared Scheib
fa8381315e
Merge branch 'master' into fix/tempVar-no-value
2018-06-15 17:30:41 -07:00
Andrew Watkins
08bf9bcd27
Source form and page
2018-06-15 17:22:21 -07:00
Deniz Kusefoglu
9bac532c47
Merge pull request #3689 from influxdata/bugfix/annotations-render-on-zoom
...
Bugfix/annotations render on zoom
2018-06-15 17:13:31 -07:00
Iris Scholten
654ea88e30
Fix issue where no selected tempvar value
2018-06-15 17:08:00 -07:00
Alex P
f7907af6f3
Add ability to delete a query assigned to a var from the var
2018-06-15 16:50:56 -07:00
Alex P
2ac06bee2e
Don't ask for confirmation when deleting a variable
2018-06-15 16:37:01 -07:00
Alex P
d58f06b232
Move BodyDelete into func node menu
2018-06-15 16:24:37 -07:00
Alex P
394fe281f3
Shorten copy
2018-06-15 16:23:11 -07:00
Alex P
9af35fedfc
Rename component to be consistent
2018-06-15 16:11:08 -07:00
Alex P
0bc3789246
Style BodyDelete when used on a variable
2018-06-15 16:08:14 -07:00
Alex P
2489aacd99
Move Body type into shared flux types
2018-06-15 16:06:35 -07:00
Alex P
27d70504fc
Allow for optional "type" for body delete
...
Used in the confirmation dialog to refer correctly to the object being
deleted
2018-06-15 16:06:15 -07:00
Alex P
6a54d4e65d
Separate hover interactions between func node and func node menu
2018-06-15 15:50:27 -07:00
Alex P
9a0687b43b
Use ConfirmButton in BodyDelete
2018-06-15 15:50:10 -07:00
Alex P
860548bab2
Add styles for confirm button tooltip positions
2018-06-15 15:39:09 -07:00
Alex P
5cac6cb628
Guard against unrendered button or tooltip
2018-06-15 15:38:45 -07:00
Alex P
5ce3345259
Use ConfirmButton instead of regular delete if func is from
2018-06-15 15:25:46 -07:00
Alex P
87033d37f7
Add optional prop for tooltip position
2018-06-15 15:24:27 -07:00
ebb-tide
6caef8e87c
Convert Annotation action and reducer to TS
2018-06-15 15:20:24 -07:00
Andrew Watkins
36355f18d9
Convert formatting test to ts
2018-06-15 14:36:58 -07:00
Andrew Watkins
d95f6acce5
CEO reducer and misc
2018-06-15 14:11:10 -07:00
ebb-tide
f904d3e002
Merge branch 'master' into bugfix/annotations-render-on-zoom
2018-06-15 13:52:38 -07:00
ebb-tide
1d3dda6667
Convert Annotation sub-components to TS
2018-06-15 13:50:55 -07:00
Andrew Watkins
add3699ed9
Merge pull request #3693 from influxdata/fun/notifications-to-ts
...
Type notification actions / reducers / tests
2018-06-15 13:07:40 -07:00
Andrew Watkins
8af2507a6d
Type notification actions / reducers / tests
2018-06-15 12:41:00 -07:00
Brandon Farmer
bf9b02014f
Merge pull request #3660 from influxdata/bugfix/data-source-links
...
Strip prefix for data source links
2018-06-15 10:41:48 -07:00
Alex Paxton
2e08833b72
Merge pull request #3691 from influxdata/bugfix/ceo-query-field
...
Fix Appearance of Text Area in CEO
2018-06-15 10:27:54 -07:00
Alex P
69cefb8104
Resurrect discarded styles
...
I threw the baby out with the bathwater, but now the baby is back. The
bathwater is still gone though.
2018-06-15 10:11:02 -07:00
Andrew Watkins
a76a114423
Merge pull request #3678 from influxdata/bugfix/flux-base
...
Bugfix/flux base
2018-06-15 09:38:37 -07:00
Andrew Watkins
82dcefafa7
Merge pull request #3646 from influxdata/chore/webpack-4
...
Chore/webpack 4
2018-06-15 09:30:50 -07:00
Andrew Watkins
819acf0d52
Introduce delete body
2018-06-15 09:18:52 -07:00
Alex Paxton
9ff4a33c55
Merge pull request #3657 from oori/feat-kap-alert
...
fix(alert): alert creation detailed response
2018-06-15 08:49:35 -07:00
Alex Paxton
fc81c1b01a
Merge branch 'master' into polish/snip-snip
2018-06-15 08:49:02 -07:00
Alex Paxton
e69a0381f3
Merge branch 'master' into code-mirror-data-explorer
2018-06-15 08:48:15 -07:00
Alex Paxton
ba07403bf5
Merge pull request #3663 from influxdata/polish/truncate-rules-message-preview
...
Truncate Alert Rule Message Preview
2018-06-15 08:47:24 -07:00
ebb-tide
bb091cb94e
Rerender annotations on drawCallback
2018-06-14 17:52:26 -07:00