Commit Graph

405 Commits

Author SHA1 Message Date
David Kaltschmidt
d6eff06bc0 Fix url state parsing for terminal popout in Firefox 2016-04-12 15:50:45 +02:00
Simon
77aa1ed501 Merge pull request #1264 from weaveworks/1263-untruncate-only-hovered
Untruncate only the hovered node's text, not its adjacents.
2016-04-12 12:46:02 +02:00
Simon Howe
dcfb7f0c2c Fixes flickering when mouse moves between nodes labels
w/ a secret rect!
2016-04-12 12:45:09 +02:00
Simon Howe
fd193d7edd Untruncate only the hovered node's text, not its adjacents. 2016-04-12 10:28:16 +02:00
David
f3c9ff2ce4 Merge pull request #1262 from weaveworks/1242-fix-layoutnodes
Keep edge and node movement in sync
2016-04-12 09:35:14 +02:00
David
ff417c9004 Merge pull request #1261 from weaveworks/1238-cache-panning
Cache pan/zoom per topology
2016-04-11 20:26:46 +02:00
David Kaltschmidt
34e9e9d85d Keep edge and node movement in sync
Fixes regression introduced by #1186 (comparing wrong layout state
objects)

Fixes #1242
2016-04-11 20:22:18 +02:00
Simon Howe
ed09f5b9bd Fixes client localdev reloading 2016-04-11 19:12:36 +02:00
David Kaltschmidt
cd12d867ec Cache pan/zoom per topology
* remembers canvas position/zoom per topology
* makes it easy to go back to the last position in a prev topology

Fixes #1238
2016-04-11 18:51:39 +02:00
Tom Wilkie
d237f52a90 Ensure connection rows have unique IDs. (#1245)
* Ensure connection rows have unique IDs.

This adds new types for connections tables.

* UI support for new connection table rows

* Parameterized node Id key for connections table

* also s/node_id/nodeId, and s/topology_id/topologyId in connections
* table

* Added comment about nodeIdKey

* Review feedback:
2016-04-11 14:40:50 +01:00
Simon
689e06b216 Merge pull request #1259 from weaveworks/1244-focused-node-size
Don't enlarge focused nodes.
2016-04-11 15:34:32 +02:00
Simon Howe
6754c03980 Selected-node-size review feedback
- Tighten up method definition
2016-04-11 15:33:23 +02:00
David
c9a44f30fd Merge pull request #1255 from weaveworks/no-truncate-on-hover
Dont trunctate node labels on hover
2016-04-11 15:16:57 +02:00
Simon Howe
b9ce725561 Don't enlarge focused nodes.
- Calculate size based on number of nodes that come up into the
  selection area.
2016-04-11 15:11:03 +02:00
David
46caf29e74 Merge pull request #1254 from weaveworks/robust-edge-cache
Make cached edge processing more robust
2016-04-11 12:40:37 +02:00
Simon Howe
e6763f1436 Adds button for long named nodes 2016-04-11 12:27:17 +02:00
David Kaltschmidt
c5ea970674 Dont trunctate node labels on hover
* makes it easier to read long node labels on demand
2016-04-11 11:59:04 +02:00
David Kaltschmidt
5ae87a039b Make cached edge processing more robust 2016-04-11 11:41:39 +02:00
Simon
eb7590944d Merge pull request #1243 from weaveworks/1228-hotkey-improvements
hotkey fixes and improvements
2016-04-11 11:05:03 +02:00
Simon Howe
bb891b0ffa Adds '?' button down to bottom to toggle shortcut overlay 2016-04-11 10:00:24 +02:00
Simon Howe
a90b8f6e71 Adds '?' to shortcuts
- Fixes '?' after using the terminal
- Fixes <kbd> styling, border-radius was behaving strangley w/ transform
  to center the overlay, so opted for more old school methods.
2016-04-11 09:54:26 +02:00
Simon Howe
0a9f26bb60 Adds a shortcut panel! 2016-04-07 18:33:56 +02:00
David
082754d8c3 Merge pull request #1210 from weaveworks/client-start
Fix make client-start
2016-04-07 18:30:46 +02:00
Simon Howe
c452b68200 Fixes hotkeys in firefox and all browsers + international keyboards. 2016-04-07 14:02:19 +02:00
Simon Howe
f1c58efebb Fixes url state decoding in Firefox. 2016-04-07 14:01:58 +02:00
Tom Wilkie
674cb24f2a Review feedback 2016-04-07 12:23:06 +01:00
Tom Wilkie
22402c34f7 Ensure k8s views are correctly hidden.
- Filter unconnected psuedo nodes from the Pods view
- Don't report these filtered nodes in stats
- Fix typo in logic for hiding views
2016-04-07 12:01:23 +01:00
Paul Bellamy
bfb65cb4af Merge pull request #1225 from weaveworks/1149-more-meaningful-metrics-max-mmmmmmm
Set the memory and open files maximums based on the host
2016-04-07 10:36:30 +01:00
Simon
de173a6380 Merge pull request #1239 from weaveworks/improve-highlight-perf
Improve canvas highlighting performance.
2016-04-07 11:20:53 +02:00
David
5fba5d8cfc Merge pull request #1237 from weaveworks/1221-no-subtopo-options
Apply topology options also to sub-topologies
2016-04-07 10:01:41 +02:00
David
c04ae221b1 Merge pull request #1229 from weaveworks/cpu-no-connection
Reduce CPU consumption if UI cannot connect to backend
2016-04-07 09:24:25 +02:00
David
b7c2db6cc2 Merge pull request #1230 from weaveworks/1224-format-sparkline
Apply format to tooltips in sparkline hovers
2016-04-07 09:14:17 +02:00
Simon Howe
7f8ea1bc3c Use normal linear scale for open-files MoC
Now that we have the real max!! \o/
2016-04-07 08:40:33 +02:00
Simon Howe
c46bacab1b Improve highlighting performance.
- Untangle edge dependencies so we don't redraw them all if a node is
  highlighted.
- Only "preparePoints" if they've changed.
2016-04-06 21:50:27 +02:00
David Kaltschmidt
9586c23526 Apply topology options also to sub-topologies
Subtopologies inherit the applied options if the keys are the same.
The labels are still determined by the topology itself.

Fixes #1221
2016-04-06 17:33:47 +02:00
David Kaltschmidt
d8761aada1 Fix terminals (broken since f34146d)
`controlPipe` is now an immutable map, but was not treated that way by
all components.
2016-04-06 17:17:06 +02:00
David Kaltschmidt
392589744c Fix zooming regression
Introduced in #1186

Fixes #1233
2016-04-06 15:23:13 +02:00
David Kaltschmidt
d9a1aa9807 Fix make client-start
* made webpack host configurable via env
* start via `make WEBPACK_SERVER_HOST=local.docker client-start`
* removed port from BACKEND_HOST env
2016-04-06 14:30:36 +02:00
Simon Howe
4c378283cb Pure-mixin-ify more stuff.
Helps a lot for dragging around the canvas.
2016-04-06 12:44:24 +02:00
Simon Howe
49286cf5ea Fixes generated node names for the perf. tests! 2016-04-06 12:44:24 +02:00
David Kaltschmidt
d803e00b00 Apply format to tooltips in sparkline hovers
Fixes #1224
2016-04-06 12:05:43 +02:00
David Kaltschmidt
8bdebe9848 Reduce CPU consumption if UI cannot connect to backend
* blank keyframes for blinking Connect animation
* increased topology API retry timer interval

Fixes #1220
2016-04-06 11:13:11 +02:00
David Kaltschmidt
0a1740cbe6 Fix metrics rebase 2016-04-05 18:15:28 +02:00
David Kaltschmidt
d520cffec7 Performance tweaks
Add debug.html to show toolbar

Perfjankie test runner

Playing w/ the pure mixin for perf. improvements

* Works well! Smoother zooming/panning when things have settled.
* Extract node movement to node-container, make nodes pure

Extracted node chart elements into own components

Keep control objects immutable while in components

Keep layout state objects alive

Made other components pure, removed mixin from stateless components

Remove font size adjustment from scaling

Fix zoomscale

Move node transform to node

* makes more sense there because the coords are rounded in the container

dynamic coords precision based on topology size

Make edge points immutable

Remove nodes maximum for layout engine

Dont send all canvas state down to next component

moving layout handling back to nodes-chart.js

Omit some props for edges/nodes, dont animate edges on low precision

Moved AppStore access out of lower components
2016-04-05 15:45:13 +02:00
Simon Howe
4ec975018c Back to brighter colors for metrics-on-canvas 2016-04-04 21:02:54 +02:00
Simon Howe
4ec8b97fef metrics-on-canvas review feedback updates.
- Refactor some things.
- Fixes heptagon moc rendering
- Experiment w/ duller colors.
2016-04-04 21:02:30 +02:00
Simon Howe
4a840c2d2b Tidy up code, remove small comment 2016-04-04 17:48:45 +02:00
Simon Howe
432ea920fe Terminology change from lock -> pin
In meetings etc the term pin is more often used.
2016-04-04 17:48:44 +02:00
Simon Howe
9d968a789b Tidying up MoC
- no rand ids, org code
- Fixes tests, no .includes in jest for now
- Small comment on moc stuff
- Patch up differences after MoC rebase
2016-04-04 17:48:44 +02:00
Simon Howe
3fdd7809f7 Fixes a couple of MoC visual bugs
- Fixes metric font-size on selected nodes
- Round metric-height value to be the same as rounded displayed value.
- No red/green colors in the MoC! They have to much association w/ success/failure
2016-04-04 17:48:44 +02:00