Commit Graph

482 Commits

Author SHA1 Message Date
David Kaltschmidt
c37c175dd6 Network colors from a scale
* all colors are unique and separated enough
* only 10 colors are available
* contains red and green
2016-06-16 11:46:42 +02:00
David Kaltschmidt
8a845ecbac Fix tall search box in Firefox
* FF has an issue with flexbox and set width
* setting flex only when focused
2016-06-14 15:52:23 +02:00
David Kaltschmidt
2267a79be8 Fix JS error for topologies where only some nodes have networks 2016-06-08 15:41:47 +02:00
Simon Howe
53768b52ec Fixes tests + missing files oops (network view stuff) 2016-06-06 16:30:20 +02:00
Simon Howe
570124fbe0 Netview review feedback 2016-06-06 16:24:18 +02:00
David Kaltschmidt
b1cd16d92d Fix node blurring for network hover
Fixes edge focus/blurring when selecting networks

Configurable arc size

net-view variant: Smaller arc (just the top)

net-view revision: Add white container around arcs.

To join them together in a sense. Trying to avoid the edge/arc position
association. Not sure if this really helps

net-view variations: shadows.

bg fill, align network rotation w/ rank.

Cute little dots

Stacked lines

Rounded rects

Slightly thicker "pills" to repr networks

Handle edge case by making line longer

Fix network bar offset
2016-06-06 16:24:09 +02:00
David Kaltschmidt
478a4a6d66 Remove common prefix from networks to increase color separation 2016-06-06 16:24:03 +02:00
David Kaltschmidt
e95f46bfd8 Extract networks from metadata (should be toplevel field) 2016-06-06 16:24:03 +02:00
Simon Howe
b198c88fb1 Correct url-state handling.
Testing out colored borders rather than BGs for net-view legend
2016-06-06 16:23:56 +02:00
Simon Howe
8481223181 Rollback network view details-panel integration 2016-06-06 16:23:55 +02:00
Simon Howe
6b4b07d0bc Copy paste of MoC controls as initial networks-view legend
Needs a bit of de-dup / customization

oops, bad typo

More fleshing out the structure for network-view

onHover netview-legend: highlight relevant nodes.

And the bool rolls on.

Handle nodes w/ no networks better

Corrects deselect-node when used w/ new network-view behaviour

Net view details "node" can be open when with no nodes selected. Hitting
"esc" from:
 - card 0: network-a
 - card 1: node-a
was not deselecting node-a

Deselect selectedNetwork correctly onEsc

Ooops, trailing ws breaks linting.

Adds NodeNetworksOverlay stub

Expands on NodeNetworksOverlay stub and adds arcs and colors

Expand and collapse networks legend

Open arc for network circle, shift for stack

Show our base hue range in the debug bar too..

Was trying to smooth out our hue selector but turned out to be tricky..

Uniquify random data generator!
2016-06-06 16:23:44 +02:00
Simon Howe
da67ba05f8 Adds node.networks to the debug toolbar nodes 2016-06-06 16:20:25 +02:00
David Kaltschmidt
5abbab3fa3 Close terminal on ESC has higher prio than search blur 2016-05-13 11:40:02 +02:00
David Kaltschmidt
01c9cac0ba Act on blur on search field 2016-05-13 09:48:14 +02:00
David Kaltschmidt
3473beec98 Blur search when opening a terminal 2016-05-12 19:35:21 +02:00
David Kaltschmidt
809a97d194 Remove makeNode in reducer
* was a relic from pre-immutable days
* properties that were not there, were forgotten when adding nodes
2016-05-12 17:40:11 +02:00
David Kaltschmidt
de6c3e711d Subtract pinned search-filtered nodes from status node count
The status node count in the bottom was not reflecting the filtering
done by the pinned searches.
2016-05-12 16:39:18 +02:00
David Kaltschmidt
b51e7a95c5 Fix edge hiding
Fixes #1471
2016-05-11 18:08:59 +02:00
Simon Howe
0a46d6128c Fixes node-position layout caching.
Key was not being generated correctly.
2016-05-11 18:08:59 +02:00
Simon Howe
af3f18b933 Don't draw svg labels when we don't need them.
Having the DOM nodes w/ display:none is still expensive. We only need
them briefly for svg export.
2016-05-11 18:08:59 +02:00
David Kaltschmidt
14e06e03ba Fix typo 2016-05-11 18:08:59 +02:00
David Kaltschmidt
50935dd456 Fetch topologies sequentially on search 2016-05-11 18:08:59 +02:00
David Kaltschmidt
9984777a5b Show connected nodes on hover, even when not matched 2016-05-11 18:08:59 +02:00
David Kaltschmidt
0573a20f07 Store table matches in table object 2016-05-11 18:08:59 +02:00
David Kaltschmidt
5ee0e082a5 Fix auto-truncation for node labels 2016-05-11 18:08:59 +02:00
David Kaltschmidt
749571ebe9 Review feedback
* Fix node-details-test for search
* Label spacing and matched text truncation
* Delete pinned search on backspace, add hint for metrics, escape % in URL
* Fix text-bg on node highlight
* Added tests for search-utils
* Fix matching of other topologies, added comment re quick clear
* s/cx/classnames/
* Ignore MoC keys when search in focus, blur on Esc
* Fixes search term highlighting on-hover
* Fix SVG exports
* Fine-tuned search item rendering
* Fixed search highlighting in the details panel
* Dont throb node on hover
* Hotkey for search: '/'
* Keep focus on search when tabbing away from the browser
* bring hovered node to top
* background for search results on hover
* fixed height for foreign object to prevent layout glitches
* Dont blur focused nodes on search
* More robust metric matchers
* More meaningful search hints
2016-05-11 18:08:59 +02:00
David Kaltschmidt
cfb5161cd7 Store search state in URL 2016-05-11 18:08:59 +02:00
David Kaltschmidt
d5eea2549d Sanitize inputs
Try regexp, escape if invalid
2016-05-11 18:08:59 +02:00
David Kaltschmidt
6ca729a6c2 Fix tests by not mocking dependent utils 2016-05-11 18:08:59 +02:00
David Kaltschmidt
3e26ed7083 Metric matching support for search
Examples:

* cpu > 2 // means percent
* memory > 4.5MB
2016-05-11 18:08:59 +02:00
David Kaltschmidt
d1609658bf Apply search as filter 2016-05-11 18:08:59 +02:00
David Kaltschmidt
3ee802a516 Search all fields by default, gray out nodes if no match 2016-05-11 18:08:59 +02:00
David Kaltschmidt
8669266f25 Toggle debug toolbar via ctrl-D 2016-05-11 18:08:59 +02:00
David Kaltschmidt
5a325e46fa Search on canvas
* adds a search field next to the topologies
* highlight results on canvas as you type
* non-matching nodes are grayed out
* "prefix:" limits search to field label
2016-05-11 18:08:59 +02:00
David Kaltschmidt
c265a57672 Show truncation warning on click, reworded 2016-05-11 16:55:57 +02:00
David Kaltschmidt
645f2ca9f4 Add hint that a section may be truncated 2016-05-11 13:05:19 +02:00
David Kaltschmidt
2cfd3ffd46 Fix toggleHelp action, ignore moment locale (saves 100KB) 2016-05-02 15:26:31 +02:00
David Kaltschmidt
eed779abfa Replaced pure-render-mixin with redux connect
* does the same shallowEqual optimization
2016-04-28 20:20:58 +02:00
David Kaltschmidt
85939d1248 Add /dev.html page w/ full redux dev tools
* normal page wont have store instrumented to stay lean
* reshuffled vendor deps to balance bundle sizes
2016-04-28 20:00:42 +02:00
David Kaltschmidt
df593b223a Upgrade to react 15.0.1 2016-04-28 11:55:07 +02:00
David Kaltschmidt
96aae9bc99 Migrate from Flux to Redux
* better state visibility
* pure state changes
* state debug panel (show: crtl-h, move: ctrl-w)
2016-04-27 17:21:46 +02:00
Paul Bellamy
1539e668e7 Merge pull request #1290 from weaveworks/remove-container-control
Add control for removing stopped docker containers.
2016-04-22 14:13:40 +01:00
Tom Wilkie
901f46c5fc Report if newer version are availible in /api (#1366)
* Report if newer version are availible in /api

* Render version update hint in UI, next to version

* Fix lint
2016-04-22 10:25:00 +01:00
David Kaltschmidt
eda2a208c6 Sort controls by rank in the UI 2016-04-21 19:36:13 +02:00
David
3abd96f752 Merge pull request #1365 from weaveworks/add-download-report-button
Add a button to download the report as JSON
2016-04-21 19:17:22 +02:00
Paul Bellamy
c4d4514278 Merge pull request #1359 from weaveworks/1121-reverse-resolution
Use reverse-resolved DNS info in the connections table.
2016-04-21 17:53:10 +01:00
Paul Bellamy
1b10a39313 add a button to download the report as JSON 2016-04-21 17:49:36 +01:00
David Kaltschmidt
62ed88cf16 Close details panel when node was removed via control 2016-04-21 18:34:51 +02:00
David
7e9edb03a7 Merge pull request #1354 from weaveworks/asset-fingerprinting
Asset fingerprinting
2016-04-21 15:59:52 +02:00
David Kaltschmidt
b1f8e89227 Add entry name to stylesheet
* fixes contrast mode
2016-04-21 09:35:14 +02:00