Simon Howe
4b33e32276
Fixes small ES2015 errors introduced while rebasing.
2015-12-01 14:37:14 +01:00
David Kaltschmidt
6b445466ef
Move JS to ES2015
...
Refactored mixins into utils
ES2015 module exports
ES2015-style imports
WIP Fixing tests
Fixes tests after es2015 code migrations.
We we're require()ing an ES2015 module[1]. Have to make sure you account
for the .default in this case.
[1] We had to use ES5 `require` in Jest:
(https://github.com/babel/babel-jest/issues/16 )
2015-12-01 14:35:22 +01:00
David Kaltschmidt
2ce9de62f2
add empty eslintignore, original source maps
2015-12-01 14:29:28 +01:00
David Kaltschmidt
40f504022c
dont send topology options when requesting node details
2015-11-30 12:59:53 +01:00
Tom Wilkie
f5aafb7a05
Don't apply filters to node endpoints & update details panel logic such that node which dissappear from the topology (eg when they are stopped) don't dissapear from the details panel.
2015-11-30 09:33:41 +00:00
David Kaltschmidt
72fb2f793c
Treat empty text and no text the same for color
2015-11-26 18:47:07 +01:00
David Kaltschmidt
37b71487cd
Disregard node details response if node is no longer selected
2015-11-25 20:01:42 +01:00
David Kaltschmidt
b1fa8a77b5
Click on node unsets loaded node details
2015-11-24 19:31:46 +01:00
David Kaltschmidt
13a2eec05d
Loading details header now has node color
2015-11-24 18:49:49 +01:00
David Kaltschmidt
e60d64da27
Show a spinner while node details are loading
2015-11-24 18:41:56 +01:00
David
1d34689bbb
Merge pull request #694 from weaveworks/procedural-colors
...
Procedural colors (like #690 but merge to master)
2015-11-24 18:41:40 +01:00
David
ec14a59d41
Merge pull request #689 from weaveworks/684-colors
...
Rank-based colors for nodes
2015-11-24 17:43:38 +01:00
David
79c0a039d9
Merge pull request #687 from weaveworks/react-upgrade
...
Upgraded react to 0.14.3
2015-11-24 16:16:43 +01:00
David Kaltschmidt
d0cea36b3f
tweak saturation and lightness
2015-11-20 16:27:02 +01:00
David Kaltschmidt
104f1574c8
Exclude red and green from color generation
2015-11-20 15:23:44 +01:00
David Kaltschmidt
bf9b5bf947
Procedural color creation for nodes
...
* color hue is based on the first 2 letters of node rank
* color lightness is based on the first 2 letters of node label
2015-11-20 14:47:05 +01:00
David Kaltschmidt
0cae3541fa
Use rank to determine color in details
2015-11-20 13:01:09 +01:00
David Kaltschmidt
7ad7778965
Skip green and red colors for nodes
2015-11-20 13:00:41 +01:00
David Kaltschmidt
c723978ec5
Upgraded react to 0.14.3
...
also add production globals to webpack config to reduce bundle size
2015-11-19 18:19:39 +01:00
David
9d3080df68
Merge pull request #686 from weaveworks/439-safari
...
Fix render issues in Safari
2015-11-19 18:18:20 +01:00
David
8a17ad4126
Merge pull request #679 from weaveworks/375-oneline
...
Mitigate one-line-of-nodes layouts
2015-11-18 17:30:17 +01:00
David Kaltschmidt
bfd633fe85
Fix render issues in Safari
...
* remove text shadow on node labels (left artifacts on zoom)
* wrap details header to avoid background color using padding
Fixes #439
2015-11-18 13:00:28 +01:00
David Kaltschmidt
8eb4be8d4f
Added tests for single nodes layout
2015-11-17 22:30:53 +01:00
David Kaltschmidt
8691b04d66
Separate single nodes to render them differently
...
* Layout single nodes next to/below graph
* fixes #375
2015-11-17 15:24:34 +01:00
David Kaltschmidt
5508c0aa67
Moved node control button to node-details
2015-11-16 15:52:17 +01:00
David Kaltschmidt
027c7aead3
Cleaned up node-details-table jsx mess
2015-11-16 15:49:04 +01:00
David Kaltschmidt
ee51247192
Fix getDOMNode warning
2015-11-16 15:39:41 +01:00
David Kaltschmidt
2000890cac
Mitigate flattenChildren warning
2015-11-16 15:39:41 +01:00
David Kaltschmidt
232a2ebe2a
Fix react error in NodeDetailsControls
2015-11-16 15:39:41 +01:00
David Kaltschmidt
9d5b9172fa
Fix react key warning
2015-11-16 15:39:41 +01:00
David
c8c1996506
Merge pull request #678 from weaveworks/625-garbled-topology-options
...
Take default topology option if missing in URL
2015-11-16 15:36:34 +01:00
David
67bf8bd07b
Merge pull request #677 from weaveworks/607-reconnect-on-missing-node
...
Dont treat missing node as UI error
2015-11-16 15:36:20 +01:00
David
1fd26e8547
Merge pull request #675 from weaveworks/666-flash-details
...
Unset previous details when deselecting a node
2015-11-16 15:36:05 +01:00
David Kaltschmidt
95b2c4f829
Take default topology option if missing in URL
2015-11-13 17:45:01 +01:00
David Kaltschmidt
7c6e6277a1
Dont treat missing node as UI error
2015-11-13 17:27:50 +01:00
David Kaltschmidt
308c1596a0
Unset previous details when deselecting a node
2015-11-13 16:05:26 +01:00
David Kaltschmidt
c0e7ade9e9
Add x to close details panel again
...
Fixes #667
2015-11-13 15:29:23 +01:00
David Kaltschmidt
e5dff9d9f1
Make npm less verbose
2015-11-13 11:21:17 +01:00
David Kaltschmidt
9fb3099a89
Dont scale graph on resize, only selected nodes
2015-11-12 17:22:33 +01:00
David Kaltschmidt
117f8b8444
Fix sublabel sizing
2015-11-12 16:18:19 +01:00
David Kaltschmidt
b6905d136d
Undo pan/zoom after unselecting a node
2015-11-12 15:00:06 +01:00
David Kaltschmidt
3ca7415d47
Always center selected node
...
* dont allow panning while node is selected
* Shift nodes, not canvas on circling selection
* scale nodes on window resize
* Scale selected node to viewable size
2015-11-12 13:59:26 +01:00
David Kaltschmidt
0c0ec79668
Lint sparkline js
2015-11-12 12:55:20 +01:00
David
7bac6d8495
Merge pull request #649 from weaveworks/node-upgrade
...
Upgrade JS node env and dependencies
2015-11-12 12:14:34 +01:00
David Kaltschmidt
2eb80d79bc
object-assign no longer needed under babel 6
2015-11-11 19:35:21 +01:00
David Kaltschmidt
c458b29034
eslintignore was removed
2015-11-11 19:15:49 +01:00
David Kaltschmidt
7d5cc11d7e
Enable linter for js test files
2015-11-11 19:09:40 +01:00
David Kaltschmidt
6cb825f6f3
Disable coverage on jest, it's broken
2015-11-11 18:58:56 +01:00
David Kaltschmidt
59064e8a2d
Upgrade to Babel 6
2015-11-11 18:42:48 +01:00
Paul Bellamy
510870e2f9
Add Sparklines to the UI based on Metrics.
...
- basic sparklines rendering for load
- Graphs are normalized so they all render on the y-axis.
- Time-axis is fixed to 15-seconds, so that data fills in correctly when data is insufficient
- Move load scalar behind sparkline
- add title to sparklines, showing timespan, samples, etc
2015-11-11 17:24:29 +00:00