Commit Graph

78 Commits

Author SHA1 Message Date
David Kaltschmidt
4fd53e3ae9 Refresh should keep topology options
fixes #457
2015-09-08 00:11:18 +02:00
David Kaltschmidt
b698006e04 Apply topology options to detail API
Fixes #454
2015-09-07 18:21:58 +02:00
David Kaltschmidt
27caf0af41 Add dropdown field for topology options, save topology option in url state
- fix nodes reset after topology option change
- set topology on click
- explicitly set default topology options
- set default topo options when topos are received
- prevent JS error on too many nodes layout abort
2015-09-07 14:25:49 +00:00
David Kaltschmidt
398fb7a6ba fix JS error on missing edge target
* replace mergeDeep with merge on node updates to set adjacency to
  updated value
* added json-loader to make json import of websocket frames easier
* console message for this was `Cannot read property 'id' of undefined`
2015-09-04 15:44:11 +02:00
David Kaltschmidt
44e62e3c19 color nodes by rank 2015-09-04 11:31:17 +02:00
David
0eccd9a6b9 Merge pull request #430 from weaveworks/413-trim-node-title
Trim node titles in graph
2015-09-03 09:45:19 +02:00
David Kaltschmidt
a439c7ca97 trim node titles in graph via JS
fix for #413

Sadly, the title attribute to show something on hover does not work in
SVG. So we might need another solution for that.
2015-09-02 18:53:04 +02:00
David Kaltschmidt
e08d533b72 truncate details table titles as well 2015-09-02 18:09:36 +02:00
David Kaltschmidt
3fd98df8ac add row keys to keep react happy 2015-09-02 18:05:26 +02:00
David Kaltschmidt
9b8a314742 Trim long container names and labels in details
fixes #418
2015-09-02 17:45:07 +02:00
David Kaltschmidt
e8ec3ed5fc fix nodes immutable after socket opens
fix for PR #410
2015-09-02 16:38:24 +02:00
David Kaltschmidt
2e50f6ae76 add test to check for detail pane titles 2015-09-02 16:00:28 +02:00
David Kaltschmidt
b17d958b07 use immutable objects for storing nodes
makes checking for topology changes easier, which triggers fewer
re-renders
fix JS store tests with Immutables
only update graph if topology changed
2015-09-02 16:00:28 +02:00
David Kaltschmidt
1dccca2be7 fixed action name typo and added test 2015-08-28 13:10:58 +02:00
Tom Wilkie
bd217b10db 'Trying to reconnect..' in UI even though its connected 2015-08-25 09:51:32 +00:00
David Kaltschmidt
9c7dea8e2f cache render engines for consistent renderings
* one render engine per topology
* improves switching back and forth between topos
* might increase memory use
* roughly fixes #160
2015-08-24 18:19:14 +02:00
Tom Wilkie
91627f8cc3 Stop the rendered graph from dancing. 2015-08-24 18:19:14 +02:00
Tom Wilkie
498bfd4b18 Make pseudo nodes clickable. 2015-08-24 14:05:01 +00:00
David Kaltschmidt
392f8ce69b fix file list for circle deployment, add JS lint
* lint will be done in build step and fail with error
2015-08-24 12:41:17 +02:00
David Kaltschmidt
e518bedecb Update the JS tooling
* get rid of gulp
* use webpack-dev-server to serve app.js
* express serves static files
* 2 webpack configs: local and production
* for development with backend, websocket URL is injected
* remove unneeded static files
2015-08-24 12:41:17 +02:00
Tom Wilkie
9289b6626a Review feedback 2015-08-18 11:21:02 +00:00
Tom Wilkie
e7ab9816cd Use node:0.10 as the ui build image, and upgrade karma and karma webpack 2015-08-17 16:26:22 +00:00
Tom Wilkie
efeba4a2ed Use rebuild-image script from tools.git
- Add some extra files to build image
- Add make to UI build container
2015-08-17 16:26:06 +00:00
David Kaltschmidt
10c70595fb Make all URL request paths relative 2015-08-11 09:50:33 +00:00
David Kaltschmidt
dfd158cceb close details when changing topologies
fixes #297
2015-07-14 16:16:09 +02:00
Tom Wilkie
14470aa107 Use container name (minus version) as id in containers-by-image view.
Also:
- build a custom URL matcher to cope with container image names having a encoded forward slash in them.
- escape node ids in the UI when constructing URLs.
- add a test which fetches all the nodes of all topologies, and update report fixture to have slash in container image names.
2015-07-01 12:53:47 +00:00
David Kaltschmidt
934082bca1 fail make static on build JS build errors
fixes #277
2015-06-25 17:12:08 +02:00
David Kaltschmidt
ea2d3f51de fixed tests after removing group state 2015-06-17 10:18:45 +02:00
David Kaltschmidt
3728682878 Removed unused grouping and explorer code 2015-06-16 18:28:19 +02:00
David Kaltschmidt
1085a7fcd9 include roboto in build
no need for internet connection anymore
include roboto via materialize

see http://materializecss.com/

roboto licensed under APLv2, see
https://github.com/google/roboto/blob/master/LICENSE
2015-06-16 18:02:52 +02:00
David Kaltschmidt
82d622b164 changed browserSync port from 3000 to 4042 2015-06-16 16:25:25 +02:00
David
6281eff85a Merge pull request #241 from weaveworks/client-coverage
Add JS test coverage reporting to client/
2015-06-16 16:07:10 +02:00
David Kaltschmidt
3dcd3e527f start with closed websocket, so that icon loads 2015-06-16 15:49:36 +02:00
David Kaltschmidt
24bd8d1908 use karma-coverage and istanbul 2015-06-16 15:41:27 +02:00
David Kaltschmidt
35e5335359 keep nodes cache intact while websocket is closed 2015-06-16 15:15:46 +02:00
David Kaltschmidt
ad5bfb67ec added info about logging to client/README 2015-06-15 18:18:06 +02:00
David Kaltschmidt
c87cc872ee clear nodes cache when websocket closes connection
* also show reconnection status

fixes #162
2015-06-15 18:10:02 +02:00
David
5627658a2e Merge pull request #222 from weaveworks/redesign-grouping
Grouping redesign
2015-06-15 10:50:55 +02:00
David Kaltschmidt
cdccd5d2c0 render grouped topologies menu sent by backend 2015-06-15 10:37:24 +02:00
David Kaltschmidt
816e1e9e99 layout of sub-topologies
* uses injected static topology, see web-api-utils.js
2015-06-12 11:37:49 +02:00
David Kaltschmidt
b9563f35d7 Styled pseudonodes pale and remove interaction 2015-06-12 09:23:32 +02:00
David Kaltschmidt
49c1493c79 replaced console.log with debug package 2015-06-11 20:57:13 +02:00
David Kaltschmidt
e89265ee2f suppress uglifier warnings
an exclude pattern would be nice, but no dice :(
2015-06-11 20:55:52 +02:00
David Kaltschmidt
033b4572ae removed unused topologies.js, fixes #146 2015-06-11 19:32:40 +02:00
David
fa9e5a3aa3 Merge pull request #216 from weaveworks/show-gone-details
Display a n/a header in details if nodes are gone
2015-06-11 19:27:26 +02:00
David Kaltschmidt
eb8a56bb1f show N/A if node disappears on remove 2015-06-11 19:19:54 +02:00
David Kaltschmidt
0f5e55db53 Display a n/a header in details if nodes are gone
fixes #193
2015-06-11 14:06:20 +02:00
David Kaltschmidt
03da5afb6b only clear nodes on topo or grouping change
fixes #133
2015-06-11 13:18:06 +02:00
David Kaltschmidt
e69d7ff98c test to show back browsing is broken
after selecting a node
2015-06-11 12:44:28 +02:00
Tom Wilkie
e1092d2ac2 Add report issue link 2015-06-09 16:29:22 +00:00