Commit Graph

912 Commits

Author SHA1 Message Date
Roland Schilter
87efac0b1d No preview for overflow health items 2017-08-11 16:45:14 +01:00
Roland Schilter
35ba8ae916 Do not mix immutablejs with plain array functions 2017-08-11 16:45:14 +01:00
Roland Schilter
fc90ec8929 JS feedback from David 2017-08-11 16:45:14 +01:00
Roland Schilter
bc8d590d9a Color metric label on hover 2017-08-11 16:45:13 +01:00
Roland Schilter
29a3070338 Pass layout when tracking mixpanel event 2017-08-11 16:45:13 +01:00
Roland Schilter
8188b7aed2 Append links directly to metrics
The initial idea was to keep it separate since the unattached
links were also to be displayed distinctively from the metrics.
With the new design, unattached links are rendered in the same
list as metrics with attached links.

Therefore, we treat unattached metric links as an empty metric.
2017-08-11 16:45:13 +01:00
Roland Schilter
5a2593b5eb New design for hover states and overflow handling 2017-08-11 16:45:13 +01:00
Roland Schilter
9dcdc65e66 Improve comments; fix missing links w/o metrics 2017-08-11 16:45:13 +01:00
Roland Schilter
c812df88c3 Initialize props with immutable map/list 2017-08-11 16:45:13 +01:00
Roland Schilter
6b414ee435 Track health graph click in mixpanel (&& cleanup) 2017-08-11 16:45:13 +01:00
Roland Schilter
d0527d28df Fix linting, cleanup, and add example to flag 2017-08-11 16:45:13 +01:00
Roland Schilter
702220f2ce Link scope-ui graphs clickable to prometheus queries
scope-app:
- Adds `-app.metrics-graph` cli flag for configuring the base url to
  use for graph links; supports `:orgID` and `:query` placeholders
- Renders `metric_links` in node detail API response

scope-ui:
- Extends `<CloudFeature />` with option `alwaysShow` and adds
  boolean `isCloud` property
- Links metric graphs in the ui's node details view for all k8s
  toplogies; or displays placeholder graph if no metrics available
2017-08-11 16:45:13 +01:00
Filip Barl
0c7896222c Exit time travel mode as a part of the app shutdown(). 2017-08-10 16:36:33 +02:00
Filip Barl
f19e4c55cd Resume time works only if previously paused. 2017-08-10 16:01:09 +02:00
Filip Barl
2a6cbf6e4b Merge pull request #2803 from weaveworks/make-nodes-graph-animations-a-bit-faster
Make nodes graph animations a bit faster
2017-08-10 10:12:21 +02:00
Simon Howe
3ab216b6ea Fixes timetravel timestamp input getting truncatated on OSX
Now supports 88:88:88T88:88:88Z!
2017-08-09 17:58:57 +02:00
Filip Barl
3fe2fbd68e Make nodes graph animations a bit faster. 2017-08-09 16:10:03 +02:00
Filip Barl
ff6d31442f Merge pull request #2616 from weaveworks/use-report-persistence-flag-in-the-ui
Time Travel: remove the feature flag and make the availability depend on historic reports capability
2017-08-08 15:37:28 +01:00
Filip Barl
c29303134a Fixed the nodes-chart-overlay warnings. 2017-08-08 14:45:59 +01:00
Filip Barl
c131fd1283 Addressed @rndstr's comment. 2017-08-08 14:42:16 +01:00
Filip Barl
f98827698f Replaced the feature flag with historic reports capability flag. 2017-08-08 14:29:54 +01:00
Filip Barl
322414b51f Polished the nodes chart overlay. 2017-08-08 10:52:54 +01:00
Filip Barl
855d1cbc6b Re-enabled all CSS animations. 2017-08-08 10:52:54 +01:00
Filip Barl
d105e7471c Enabled back some CSS transitions. 2017-08-08 10:52:54 +01:00
Filip Barl
d180437411 Decreased the graph complexity treshold. 2017-08-08 10:52:54 +01:00
Filip Barl
038bbbd5ce Added a semitransparent layer over the background nodes. 2017-08-08 10:52:54 +01:00
Roland Schilter
656fbac4e6 Fix rendering of exported SVG (#2794)
Replace invalid characters in attribute value; fixes the error

        Unescaped '<' not allowed in attributes values

Fixes #2534
2017-08-08 10:04:22 +01:00
Filip Barl
d8ffea4781 Balance timeline zooming sensitivity between Firefox and Chrome (#2788)
* Balanced timeline zooming sensitivity between Firefox and Chrome.

* Organize the wheel delta zooming logic better.
2017-08-07 11:27:12 +02:00
Roland Schilter
13188845a5 Fix timeline label vertical displacement on some Chromes (#2793)
Fixes #2789
2017-08-07 11:05:53 +02:00
Filip Barl
9ea66266f3 Adjust timeline zoom sensitivity on Firefox (#2777)
* Adjust Firefox zoom sensitivity.

* Animate zooming to make it appear smoother (especially on Firefox).

* Debounced zoom tracking.

* Addressed the comments.
2017-08-01 17:36:46 +02:00
Filip Barl
f9e9a8ae4d Shrink timeline height and make years fade out (#2778)
* Shrink timeline height to 55px and make years fade out as hours fade in.

* Address the comments.
2017-08-01 14:17:03 +02:00
Filip Barl
bc7ad7a78a Always take timestamp into account in Node Details when time travelling (#2775) 2017-08-01 12:40:08 +02:00
Filip Barl
d7c1bfb035 Hide Service UI Configure button only in Scope. (#2766) 2017-07-31 09:50:05 +02:00
Roland Schilter
c3c23d7dd1 Add test for pods number not updating (#2741)
* Fix distance test for single node

* Add test for pods number not updating labels
2017-07-28 17:13:41 +02:00
Filip Barl
2183a93916 Time Travel 3.0 (#2703)
* Experimental.

* Getting somewhere.

* Good zooming behaviour.

* Working timeline zooming & panning.

* Clickable timestamps.

* Dragging cursor

* Timeline panning buttons.

* Capping at current time.

* Scale limits.

* Better ticks.

* Time tags fading in smoothly.

* Removed seconds.

* Better tick spacing.

* Vertical panning as zooming.

* Organizing the code..

* Replaced d3-zoom with native events.

* Got rid of scaleX

* More code beautified.

* Almost done polishing the code.

* Some cleanup.

* Better request triggers.

* More cleaning up.

* Styled the timestamp input.

* Final cleanup.

* Update yarn.lock

* Zoom tracking.

* Animate timeline translations.

* Fixed the PAUSE button glitch and updating the time control info.

* Opacity fix and timeline arrows removed.

* Fixed the red vertical bar.

* Use preventDefault() on timeline scrolling.
2017-07-27 14:40:20 +02:00
Filip Barl
8f1fdeb477 Make Resource view nodes clickable (#2679)
* Made Resource view nodes clickable.

* Remove selection when clicking on the background.

* Use opacity instead of the blue overlay for selected nodes.
2017-07-25 17:46:17 +02:00
Roland Schilter
00ddb51685 Fix Pods number in graph not updating (minor label) (#2728)
By only caching layout values (x, y, rank)

Fixes #2401.
2017-07-21 16:34:36 +02:00
Roland Schilter
4f1d02f590 Merge pull request #2720 from weaveworks/2716-fix-newVersion-notification-not-showing
Fix New Version notification not showing
2017-07-19 11:45:29 +02:00
Roland Schilter
1f784ad5fa Fix New Version notification not showing
Fixes #2716.
2017-07-17 16:32:27 +02:00
Roland Schilter
a6d3542c89 Merge pull request #2713 from weaveworks/2708-reset-nodes-when-scope-app-restarted
Reset nodes in frontend when scope-app restarted
2017-07-14 19:02:41 +02:00
Roland Schilter
a3cd4573b8 Merge pull request #2692 from weaveworks/nodejs-package-version-reset
Set package.json version to 0.0.0
2017-07-14 10:24:46 +02:00
Roland Schilter
5329efa528 Reset nodes in frontend when scope-app restarted
When the scope-app restarts, it no longer has a
reference to the previous node set. Therefore,
the delta update adds *all* nodes but does not
remove legacy ones.

`reset==true` tells the frontend to start fresh.

Fixes #2708
2017-07-13 14:28:17 +02:00
Roland Schilter
e9945e78cb Keep topo nav visible if subnav selected
Follow-up to 21a0093c but also displays parent topology if
an empty sub_topology is selected.
2017-07-12 18:53:33 +02:00
Roland Schilter
21a0093c08 Keep topology nav visible if selected
If the scope-app API unexpectedly restarts, it has no report
at hand (until it gets one from the probe) and sends node
count 0 to the frontend for all topologies. Once the report
arrives, it will send the proper count.

What happened was the frontend did hide Processes for a short
time till the node count recovered. This moved the topology
selection to the always visible Containers (hide_if_empty == false)
while keeping the graph as is.

Once the node count recovers, Processes comes back but the
selection is still at Containers.

We now keep the selected topology visible at all time even if
the API returns a node count of 0. This recovers nicely when
the correct node counts come in. Once the user selects a different
topology while and a backend response arrives, it disappears.

Fixes #2646
2017-07-12 17:12:43 +02:00
Roland Schilter
0d2a1e3eb1 Set package.json version to 0.0.0
The package version is irrelevant for the build process
and is not read anywhere.

The package is not published and causes confusion if the
bump is forgotten.
2017-07-10 13:36:32 +02:00
Filip Barl
a390c7633e Make graph layout zoom limits constant (#2678)
* Make zoom limits such that nodes are always between 1px and 200px big.

* Increased minimal node size from 1px to 3px.
2017-07-07 19:52:42 +02:00
Filip Barl
8f22d58cab Last line of defense against overlapping nodes in graph layout (#2688)
* Refresh the layout once more at the end if previous heuristics cause an overlap.

* Added mixpanel tracking.
2017-07-07 19:22:04 +02:00
Roland Schilter
202e1569e5 Fix yarn pack ignoring directory cli flag 2017-07-07 13:00:23 +02:00
Roland Schilter
c3ee9cda91 Yarn prefixes version with v when packing 2017-07-06 22:13:21 +02:00
Filip Barl
8f2d47ce4e Time travel redesign (#2651)
* Initial top level control.

* Added the jump buttons.

* Tiny styling adjustments.

* Massive renaming.

* Pause info

* Added slider marks.

* Improved messaging.

* Freeze all updates when paused.

* Repositioned for Configure button.

* Improved the flow.

* Working browsing through slider.

* Small styling.

* Hide time travel button behind the feature flag.

* Fixed actions.

* Elements positioning corner cases.

* Removed nodes delta buffering code.

* Fixed the flow.

* Fixed almost all API call cases.

* Final touches

* Fixed the tests.

* Fix resource view updates when time travelling.

* Added some comments.

* Addressed some of @foot's comments.
2017-07-06 16:06:55 +02:00