Jared Scheib
98d612e412
Fix Tooltip width for long source host:port strings
...
Fix HTML in other tooltips
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 15:49:24 -07:00
deniz kusefoglu
e5d23253aa
Remove source indicator from cell header
2017-10-03 15:45:06 -07:00
deniz kusefoglu
7a300c4dce
Get new dbs, rps, meas, fields etc when selecting a new source
2017-10-03 15:36:44 -07:00
Alex Paxton
9ce7d8d389
Allow for multiple SourceIndicator Tooltips at a time
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 15:20:08 -07:00
Jared Scheib
912427070a
Make Tooltip styles consistent
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 15:19:25 -07:00
Alex Paxton
08b16cb9a5
Allow a source override on SourceIndicator
...
Use SourceIndicator server icon with tooltip on cells
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 15:04:33 -07:00
Jared Scheib
22b212e61f
Remove passed-in props from all SourceIndicator instances
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 15:02:39 -07:00
Alex Paxton
4514141dd6
Use context to display source name, host, and port in SourceIndicator
...
Refactor SourceIndicator into SFC
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 14:57:22 -07:00
deniz kusefoglu
3577fe0080
Remove source from DisplayOptions
2017-10-03 14:21:23 -07:00
Alex Paxton
08a1af020f
Dedupe and polish Tooltip styles
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 12:55:29 -07:00
Jared Scheib
33a3eea9ed
Style SourceIndicator in LayoutCellHeader
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 12:32:40 -07:00
Alex Paxton
948fc75049
Update CSS page syntax formatting
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 12:31:56 -07:00
Alex Paxton
9fda754042
Allow a source override on SourceIndicator
...
Use SourceIndicator server icon with tooltip on cells
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 12:20:47 -07:00
Jared Scheib
37c3a1948e
Remove passed-in props from all SourceIndicator instances
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 11:59:30 -07:00
Alex Paxton
02e9b63501
Use context to display source name, host, and port in SourceIndicator
...
Refactor SourceIndicator into SFC
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-03 11:45:48 -07:00
Jared Scheib
4d2a6b8492
Add label to SourceSelector
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-03 11:17:39 -07:00
Jared Scheib
a4e4c80598
Fix linter warning with non-single quote aprostrophes
2017-10-03 11:08:48 -07:00
Jared Scheib
e60e61ac59
Fix typos in empty cell and dashboard copy
2017-10-03 11:05:45 -07:00
Andrew Watkins
7ef74d792f
Add sweet styles
2017-10-02 17:27:31 -07:00
Andrew Watkins
1027b01362
Move source selector to OverlayControls
...
This move accomplishes a few things
1) It looks nicer
2) Can take advantage of the query error handling UI
3) Gives plenty of room for the dropdown
2017-10-02 17:12:30 -07:00
Andrew Watkins
cdbd54ce0d
Add styles for custom source indicator
2017-10-02 15:54:08 -07:00
Andrew Watkins
f12f2790b1
Christmas came early
2017-10-02 15:43:05 -07:00
Andrew Watkins
f60075fdd4
Guard againt selected source being deleted
2017-10-02 15:23:18 -07:00
Andrew Watkins
18905b1775
Get defensive with query sources
2017-10-02 14:42:57 -07:00
Andrew Watkins
f0f34da9b5
Add souce indicator to cell
...
If a cell is getting data from a source besides the
default, it will display that sources name in the cell header
2017-10-02 13:47:04 -07:00
Andrew Watkins
0641b3edda
Handle no queries or sources
2017-10-02 12:50:43 -07:00
Andrew Watkins
581f1a01ca
WIP send along entire source object
2017-10-02 12:50:43 -07:00
Andrew Watkins
a2583c820b
Display 'No Results' when cannot connect to source
...
To be more specific and provide more information to the user
we would need to refactor how we do error handling in the app
which is beyond the scope of this PR
2017-10-02 12:50:43 -07:00
Andrew Watkins
5d0670e6f2
Implicitly return
2017-10-02 12:50:42 -07:00
Andrew Watkins
32c0e6f1cf
Handle rebase
2017-10-02 12:50:42 -07:00
Andrew Watkins
5cd7d9e26f
Use non-default source on any cell in dashboard
2017-10-02 12:50:42 -07:00
Andrew Watkins
2ddf6213b0
Actually find a source
2017-10-02 12:50:42 -07:00
Andrew Watkins
ebf1e67e4d
Stop cell fields being clobbered
2017-10-02 12:50:42 -07:00
Andrew Watkins
9858d8a7a8
Remove dummy data
2017-10-02 12:50:42 -07:00
Andrew Watkins
a39ab180ad
Update source on a query
2017-10-02 12:50:42 -07:00
Andrew Watkins
a0cb2d81f7
Use default source if cellSource isnt in sources list
2017-10-02 12:50:42 -07:00
Andrew Watkins
c40380a6c4
WIP store seleted cellSource on state
2017-10-02 12:50:42 -07:00
Andrew Watkins
f720c997e7
Tweak styles
2017-10-02 12:50:42 -07:00
Andrew Watkins
af031f8e40
WIP Add some styles to SourceSelector
2017-10-02 12:50:42 -07:00
Andrew Watkins
f5b034c98c
WIP Introduce SourceSelector component
2017-10-02 12:50:41 -07:00
Andrew Watkins
f1fc9640d8
Merge pull request #2055 from influxdata/chore/refactor-line-graph
...
REFACTOR: LineGraph, SingleStat, and LineGraph+SingleStat
2017-10-02 12:50:19 -07:00
Alex Paxton
23994f801c
Merge pull request #2046 from influxdata/fix-legend-positioning-moar
...
UI IMPROVEMENT: More complete fix of legend positioning
2017-09-29 16:48:22 -07:00
Alex P
1590812813
Add button that sets source connection defaults
...
Also changed placeholder text to be less misleading
2017-09-29 16:30:45 -07:00
Alex P
5157b0c88f
Update theme file
...
- Inputs have italic placeholder text
- Tab Lists have borders between items for increased clarity
2017-09-29 16:00:56 -07:00
Andrew Watkins
eefdd95559
Import lodash
2017-09-29 14:30:20 -07:00
Andrew Watkins
aff1cd1dbc
Move PropTypes to just above proptype declarations
2017-09-29 14:28:12 -07:00
Andrew Watkins
ef0514bf0e
Convert SingleStat to class component
2017-09-29 14:27:21 -07:00
Alex Paxton
a1514ded11
Merge branch 'master' into plus-buttons
2017-09-29 14:15:54 -07:00
Alex P
b0495882c1
Add Plus Icon to all Add/Create buttons
2017-09-29 14:08:54 -07:00
Andrew Watkins
6ed194a9ca
Bring Christmas even earlier
2017-09-29 14:05:11 -07:00
Andrew Watkins
5d6d22ef71
Consolidate series highlighting
2017-09-29 14:04:17 -07:00
Andrew Watkins
bae5351b34
Christmas came early
2017-09-29 14:02:20 -07:00
Andrew Watkins
8be0262c3c
Use SingleStat component for single state plus line
...
Turns out the there aren't any styles for the 'single-stat-plus-line'
class. So, it has been deleted.
2017-09-29 14:00:33 -07:00
Andrew Watkins
647064bfd1
Make GraphSpinner its own component
2017-09-29 13:40:32 -07:00
Andrew Watkins
47c86bb22c
Pull constants into graph helpers dir
2017-09-29 13:40:13 -07:00
Andrew Watkins
f56ad437ab
Christmas tree props
2017-09-29 13:32:43 -07:00
Andrew Watkins
ec7b0b2d3e
Convert LineGraph to class component
2017-09-29 13:31:10 -07:00
Andrew Watkins
74c10c10c3
Merge pull request #2052 from influxdata/feature/smoother-hovering
...
UI-IMPROVEMENT: Add custom findClosestPoint method
2017-09-29 12:30:40 -07:00
Andrew Watkins
475a7ba369
Add react-component-resizable package
2017-09-29 12:15:10 -07:00
Andrew Watkins
73d4854c15
Add custom findClosestPoint method
2017-09-29 11:13:27 -07:00
Andrew Watkins
d8b808094c
Resize Dygraph based on prop changes
...
This commit removes a hack that forced dygraph to respond
to a custom resize event created on document. Now, Dygraph resizes
in response to prop changes.
2017-09-28 19:24:26 -07:00
Andrew Watkins
a17aa1b734
WIP
2017-09-28 15:28:08 -07:00
Alex P
29b07be3be
Use more descriptive name for state in parent component
2017-09-28 14:55:24 -07:00
Alex P
9155af051c
Use state to manage legend arrow position
...
Passing this into the legend component similar to isHidden
2017-09-28 14:53:32 -07:00
Andrew Watkins
9bcec4ea8e
Turn generateVisualization func into separate component
2017-09-28 14:18:48 -07:00
Andrew Watkins
91d18bed3c
Make generateWidgetCell a component
2017-09-28 13:44:35 -07:00
Andrew Watkins
1449716273
Replace Object.assign with spread
2017-09-28 13:26:25 -07:00
Andrew Watkins
1d5132693d
Export canned dashboard query building functionailty to utils
2017-09-28 13:24:47 -07:00
Andrew Watkins
21a0d3d3cb
Use fat arrow properties
2017-09-28 13:06:34 -07:00
Alex P
6e524a0da1
Position legend on left or right side of crosshair when unable to position above or below graph
2017-09-27 18:44:41 -07:00
Andrew Watkins
f545f9cddd
Guard against no field in buildDefaultYLabel
2017-09-27 16:10:30 -07:00
Andrew Watkins
56dcc31d82
Merge pull request #1721 from influxdata/feature/tickscript-editor
...
TICKscript Editor
2017-09-27 15:55:41 -07:00
Alex P
518a11e25d
Remove small gap between cell and legend that can cause legend to disappear
2017-09-27 11:10:22 -07:00
Alex P
d946deb950
Add arrows to legend indicating which cell it is pointing to
2017-09-27 10:54:21 -07:00
Alex P
a0ad154ce0
Position legend above the graph when it would otherwise go off the screen
2017-09-27 10:54:05 -07:00
Hunter Trujillo
16a55d3053
Merge pull request #2002 from influxdata/ux-improvements
...
UX Improvements
2017-09-26 14:58:57 -06:00
Alex P
c86cc7824c
Remove console log
2017-09-26 10:43:38 -07:00
Alex P
7a02e16c56
Use enter and escape to stage changes to the cell name
...
Sort of confusing if you look at the implementation, but produces the
desired user experience. There’s a two-step saving process with cell
names now. The user has to change the cell name and hit Enter (or
manually blur) and the name is committed to CEO workingCellName state.
If they hit Escape it reverts to its name when the cell was initially
edited.
2017-09-26 10:37:49 -07:00
Andrew Watkins
e7016455ae
Remove react-addons-update
2017-09-22 15:14:28 -07:00
Andrew Watkins
845e7236ac
Merge branch 'feature/tickscript-editor' of github.com:influxdata/chronograf into feature/tickscript-editor
2017-09-22 15:07:29 -07:00
Andrew Watkins
cde242b09e
Fix multiselect in Admin page
2017-09-22 15:07:12 -07:00
Chris Goller
004492bea2
Merge branch 'master' into 2014-permanent-critical-for-windows-hosts
2017-09-22 08:22:38 -05:00
Andrew Watkins
4d6d1027a9
Merge branch 'master' into bugfix/dup-kapa-name-error-misfire
2017-09-21 15:35:44 -07:00
Andrew Watkins
f19bd728e4
Use lodash to get random element from array
2017-09-21 15:24:06 -07:00
Andrew Watkins
b97567a6cb
Remove binds from constructor
2017-09-21 15:04:31 -07:00
Andrew Watkins
dc8dbeb944
Fix bug
2017-09-21 15:01:13 -07:00
Andrew Watkins
6a1585b583
Return proper empty state for visualizations in the dashboard overlay
2017-09-21 14:30:18 -07:00
Artem Zinenko
aad0e204b3
Fixed #2014
2017-09-21 09:56:59 +03:00
Alex P
c4d2d53f5c
Cleanup
2017-09-20 19:15:16 -07:00
Alex P
919c58bd3c
Remove cell name from state in favor of prop
...
This component doesn’t need to use state for this any longer. Also
causes the dashboard cell to render the new name without having to
refresh
2017-09-20 19:14:05 -07:00
Alex P
61a894c54a
Set cellWorkingName to input value in CEO
2017-09-20 17:54:31 -07:00
Alex P
ad64acd65f
Remove vestigial cell renaming code
2017-09-20 14:21:26 -07:00
Alex P
9f419116dd
Refactor NameableGraph into LayoutCell
...
Chose a more semantic name for NameableGraph and its sub-components,
removed unused functions
2017-09-20 13:34:19 -07:00
Alex P
57fadfe991
Move delete confirmation to a different position than the delete button
...
Better UX, less accidents
2017-09-20 13:17:31 -07:00
Alex P
0e2723f020
Cleanup
2017-09-20 13:08:06 -07:00
Alex P
dfa59aadf6
Add style for untitled cells
...
Also using the language “Untitled Cell” instead of “Name this Graph” as
the thing being named is actually a cell, not a graph. Also now that
renaming is a little more buried, I am avoiding the urgency of “Name
this Graph”
2017-09-20 13:06:11 -07:00
Alex P
5b457e1ef7
Redesign context menu to expose actions without dropdown
2017-09-20 12:39:42 -07:00
Alex P
d0b2696e7e
Revert "WIP show query errors on cells"
...
This reverts commit eb9295702c
.
2017-09-19 14:34:40 -07:00
deniz kusefoglu
784ec51576
Allow code to breathe
2017-09-19 13:09:08 -07:00
deniz kusefoglu
5310548c47
Generate a unique db self.link for use as a temp-id-key
2017-09-19 13:05:31 -07:00
deniz kusefoglu
8b8e4bff95
camelCase is alWays beTTer
2017-09-18 20:17:43 -07:00
deniz kusefoglu
e032e26993
Fix behavior on db creation with enter and make db keys unique
2017-09-18 20:07:21 -07:00
deniz kusefoglu
3b1482261f
Display error and prevent new db creation if new db name matches existing db name
2017-09-18 19:34:58 -07:00
Alex P
eb9295702c
WIP show query errors on cells
2017-09-18 14:40:13 -07:00
deniz kusefoglu
bbbcfdde1c
Display Query Templates dropdown even when status is null
2017-09-18 14:11:52 -07:00
Alex P
35894fb3db
Sort databases list alphabetically by database name
2017-09-18 10:41:37 -07:00
Alex P
3d4b5e92e0
Require user confirmation to delete a cell
2017-09-18 10:13:37 -07:00
Andrew Watkins
9f4dc69c12
Merge branch 'master' into feature/tickscript-editor
2017-09-14 14:29:00 -07:00
Andrew Watkins
65e24db366
Refine copy
2017-09-14 14:15:42 -07:00
Andrew Watkins
ca230f0a49
Add a TICKscript table to alert rules page
2017-09-14 14:06:43 -07:00
Andrew Watkins
baafcf64fd
Use tickscript id as 'name' for raw tickscripts
2017-09-14 13:04:05 -07:00
deniz kusefoglu
a6adf97c1d
Improve testing on resultstoCSV
2017-09-12 18:45:49 -07:00
deniz kusefoglu
e7b25a2bed
Improve testing on resultsToCSV
2017-09-12 15:50:25 -07:00
deniz kusefoglu
c94a69366b
Add tests to results to CSV function
2017-09-12 14:59:03 -07:00
Andrew Watkins
8b244bb27e
Remove TICKscript name creation
2017-09-12 14:27:48 -07:00
Andrew Watkins
e865a1e6b0
Publish notification after route change
2017-09-12 14:25:40 -07:00
Andrew Watkins
4f8066a419
Fix auto indendation to match indentation of previous line
2017-09-12 13:17:51 -07:00
deniz kusefoglu
66025e2336
Provide a more descriptive error text
2017-09-12 13:11:16 -07:00
deniz kusefoglu
3fab51d62b
Add error handling to getCSV function
2017-09-12 12:37:13 -07:00
Andrew Watkins
c54d205fac
Update existing tickscript
2017-09-12 11:44:06 -07:00
Andrew Watkins
9d5e1329c2
Use /rules to create tickscripts
2017-09-12 11:03:30 -07:00
Hunter Trujillo
43a2ec2519
Refactor download.js. Refactor resultsToCSV. Use Excel formatting.
2017-09-12 09:45:13 -07:00
deniz kusefoglu
86a0e7175d
Add csv download button to data explorer visualization header
2017-09-12 09:45:13 -07:00
Andrew Watkins
1b7fcfdb45
Update branch with new linter rules
2017-09-12 09:23:26 -07:00
Andrew Watkins
be6c0b559b
Update to react-codemirror 1.0
2017-09-12 09:23:26 -07:00
Alex P
254fe95298
Change layout of tickscript editor
2017-09-12 09:23:26 -07:00
Alex P
89a8481844
Organize styles and use custom theme for code mirror
2017-09-12 09:23:25 -07:00
Andrew Watkins
8a14519093
Prettier
2017-09-12 09:23:25 -07:00
Andrew Watkins
59f4ca0e59
Make task ids only edit when making new task
2017-09-12 09:23:25 -07:00
Andrew Watkins
39a0d428f7
Cleanup
2017-09-12 09:23:25 -07:00
Andrew Watkins
6cdff1ae46
Remove view only Tickscript
2017-09-12 09:23:25 -07:00
Andrew Watkins
c727a5ba27
WIP Introduce tickscript id editing
2017-09-12 09:23:25 -07:00
Andrew Watkins
a034144c60
Add tickscript type selector
2017-09-12 09:23:25 -07:00
Andrew Watkins
0e9d62b9b3
Cleanup
2017-09-12 09:23:24 -07:00
Andrew Watkins
f4c61f258a
Cleanup checks with default props
2017-09-12 09:23:24 -07:00
Andrew Watkins
98109923ca
Make UserRow work with new MultiSelectDropdown shape
2017-09-12 09:23:24 -07:00
Andrew Watkins
8c19136e9f
Add ability to apply changes per click
2017-09-12 09:23:24 -07:00
Andrew Watkins
3267daf815
Add comment
2017-09-12 09:23:24 -07:00
Andrew Watkins
2bd47c471e
Prettier
2017-09-12 09:23:24 -07:00
Andrew Watkins
d5bd1ec3c1
Apply selected dbrps to state
2017-09-12 09:23:23 -07:00
Andrew Watkins
c85406cbd8
Add lambda to syntax highlighting
2017-09-12 09:23:23 -07:00
Andrew Watkins
e48f3aaf1f
Set default props for ruleID
2017-09-12 09:23:23 -07:00
Andrew Watkins
21e4c46790
Introduce TICKscript editing
2017-09-12 09:23:23 -07:00
Andrew Watkins
4a4a255903
WIP Edit scripts returned from the server
...
Had to downgrade react-codemirror due to a bug. Issues and PRs
are open to resolve:
- https://github.com/JedWatson/react-codemirror/issues/121
- https://github.com/JedWatson/react-codemirror/issues/106
2017-09-12 09:23:23 -07:00
Andrew Watkins
4029a448c6
Introduce skeleton to create task through proxy
2017-09-12 09:23:23 -07:00
Andrew Watkins
14f8bff19b
ES6ify
2017-09-12 09:23:23 -07:00
Andrew Watkins
a35f045648
Update kapacitor links to include tasks and ping paths
2017-09-12 09:23:22 -07:00
Alex P
e84e8d097f
Polish alert rules table
2017-09-12 09:23:22 -07:00
Andrew Watkins
0f936e86a3
Display TICKscript on rules index
2017-09-12 09:23:22 -07:00
Andrew Watkins
9fb878e7e8
Polish the editor
2017-09-12 09:23:22 -07:00