Commit Graph

442 Commits

Author SHA1 Message Date
Simon Howe
df1efff19b Force a layout after a toggle to viz-mode 2016-08-03 08:51:06 +02:00
Simon Howe
f83e0f1a48 Remove a lot of un-used code that I still want to keep 2016-08-03 08:51:06 +02:00
Simon Howe
29e67683b3 New selection model.
- highlight whole row
- don't do anything when selecting text
2016-08-03 08:50:37 +02:00
Simon Howe
d0b99969ea Grid-mode tuning!
- Change scrolling behaviour to lock headers in place
- Enable filtering (hitting enter in the search bar) in grid-mode
- Little more top-margin for k8s (can have 3 topos) + taller rows.
- Trying out rank-color + node.relatives in the grid-mode
- First pass at selecting rows.
  - Needs a bit more a fiddle, colors + click areas
- Store grid sort direction (asc/desc) in url state
- Simplify node selection to one method. (over-ride existing card)
  - Remove clicking on name directly (links) to overlay new cards for now.
- Playing w/ grid-mode-toggle icons and labels
- Improves rendering in ff, change of shortcut keys for grid-mode-toggle
- Playing w/ clearer selection colors for grid-mode
- Slight change to selection-ui
- Fixes showNodeInTopology button visibility on the details-panel
  - Was using an old heuristic. Table-mode allows you to open child cards
    before the parent.
- Make it clear what the default sort is in tables
  - E.g. always show a sorting caret
- Sort grid-mode columns, first meta then metrics
- dancing-nodes rememdy #1: pause updates onRowHover
- Splits relatives out into their own columns
- Take into account scrollbar width for grid-mode col header position
- Tooltips on table column headers
- grid-mode: fixes first column headers (proc/container/c-by-image)
- Disable pause-on-hover, too aggresive
- reduce label column width a bit (33pc -> 25pc) for big tables
- Filter grid-mode onSearchChange
  - Rather than previous behaviour of waiting for an <enter>
- Show label_minor on pseudo nodes, that might not have much other info
- grid-mode: further reduce width of id column.
- Fixes go tests, properly moves parents into node-summary
- Fixes sorting of string columns w/ missing fields.
  - E.g. uptime. Where -1e-10 > '3days' doesn't work.
2016-08-03 08:50:37 +02:00
Simon Howe
fa502ae6ad Removes the combined table-topo-view 2016-08-03 08:46:17 +02:00
Simon Howe
c51e290127 Node grid view
More graphs!

Rank is not support by dagre any longer..

Quick go at using facebook's fixed-data-table

Kind of working, kind of interesting.

Hack on the details-panel table, supports sorting etc already!

No, this one! Hacks on the details panel's table.

Hovering on the table works! (highlights nodes)

wip get sorting going

Working on sorting, not behaving!

Pulling out methods to fns

Kind of demoable

More hacks to make it demoable
2016-08-03 08:37:17 +02:00
Simon
e7a0a96de2 Merge pull request #1485 from weaveworks/loading-indicator
Loading indicator
2016-08-03 08:22:22 +02:00
Simon Howe
19f08ee81f Review feedback on loading-indicator 2016-08-02 22:09:08 +02:00
David Kaltschmidt
50fe1f8af2 Hide logo when in frame 2016-08-01 15:19:09 +02:00
Simon Howe
6e3bec8c70 Pulls loading out into new cmp, adds delayed show for loading 2016-07-28 17:59:48 +02:00
Simon Howe
fba40de231 Typo and removing some more mutatey sounding verbs 2016-07-28 16:28:55 +02:00
Simon Howe
50a1c11eaa New and improved loading messages.
Are these getting better or worse...
2016-07-28 16:28:55 +02:00
Simon Howe
9a77b0d619 Less apologetic ui messages 2016-07-28 16:28:55 +02:00
Simon Howe
74e0540a00 More personal loading messages 2016-07-28 16:28:55 +02:00
Simon Howe
b92a990b2e Restore log error message 2016-07-28 16:28:55 +02:00
Simon Howe
335cc1154a Smooth fade-out of node-loading message 2016-07-28 16:28:54 +02:00
Simon Howe
04f4071fd3 Handle loading message for empty topos correctly.
It was showing infinite loading...
2016-07-28 16:28:54 +02:00
Simon Howe
7dfae47c85 No title case on the loading messages 2016-07-28 16:28:12 +02:00
Simon Howe
7d14a787be Adds a loading indicator for the initial node-load
- Sometimes can take a second to get the initial nodes
- Not doing the transition between topos atm as its a bit distracting
  popping up and down.
2016-07-28 16:28:12 +02:00
Simon Howe
9a0feb3eb0 Adds basic "loading topologies" indicator for initial load.
Which can take a while sometimes.
2016-07-28 16:28:11 +02:00
Simon
ca43cb158c Merge pull request #1647 from weaveworks/1403-terminal-us-intl-kb-support
Support single/double quote key on us-intl keyboards in terminal
2016-07-20 13:34:30 +02:00
Simon Howe
b8ed8aebf8 Support all us-intl dead keys 2016-07-20 13:17:11 +02:00
Matthias Radestock
d6d5fec960 reduce horizontal gap between nodes in topology views
Fixes #1688
2016-07-17 18:50:12 +01:00
Simon Howe
55bed7b7b6 A couple more tweaks to the network-bar position.
- Center it vertically properly.
2016-07-12 18:29:15 +02:00
Simon Howe
6a79938939 Correct label position for nodes that don't have networks. 2016-07-12 16:10:56 +02:00
Simon Howe
6f8dc22ca3 Move network bar above the label for now.
Positioning the bar in the middle of flowing text is a bit tricky.
2016-07-12 16:09:10 +02:00
Simon Howe
f46025fe10 Fixes network bars position when a node is selected.
Bar position should be a function of node size!

Note: This is still an estimated position though it looks fine. Would be
nice to take into account size of labels (foreignObjects). The
transforms (for "undoing" the canvas zoom level) are a bit hectic here
and would be really nice to pull out and put in a wrapper...)
2016-07-12 15:45:35 +02:00
Simon
2ea04aa159 Merge pull request #1648 from weaveworks/1402-fixes-terminal-line-wrapping
Fixes terminal wrapping by syncing docker/term.js terminal widths.
2016-07-11 10:49:56 +02:00
Simon Howe
4b41c8bb23 Fixes terminal wrapping by syncing docker/term.js terminal widths.
Impl. by locking the term.js width to 80 which is what the docker one
is. We need to implement resizing on both the BE and FE to avoid weird
wrapping issues.
2016-07-06 15:06:02 +02:00
Simon Howe
d506429d8f Support single/double quote key on us-intl keyboards in terminal
Doesn't support the accenting capabilities of this key but gives you
single/double quotes back which is a long way. If you need accented keys
for filenames etc you'll have to use other kb tricks.
2016-07-06 11:24:40 +02:00
Simon Howe
f11c559499 Force some known column widths to prevent truncation of others
Port/count won't exceed a certain width so slim those down to free up
space for the IPs.

This can be extended to CPU/memory in the future but that needs a little
more refactoring in the number renderers
2016-07-05 12:26:10 +02:00
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
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