Commit 06fc52a
authored
Frontend full redesign (#128)
* server: allow cross origin ws calls when STATSVIZ_DEBUG=1
This is needed during frontend development
* server: send plot config as first ws message.
Also, wrap metrics to simplify decoding in the frontend.
* server: allow printing websocket errors while developing
* go.mod: bump gorilla/websocket and rogpeppe/go-internal
* Align tests
* Improve TestUnusedRuntimeMetrics
* Add dependabot.yml
* Update CONTRIBUTING.md
* static: use vite to build assets
Assets directory is 1.5MB uncompressed
475kB compressed.
We compressed the go:embed'ed filesystem so that the final binary size
doesn't increase too much.
Add scripts to create the dist hash and to diff it
CI: bump actions, add assets check workflow
Package.json: remove jquery and bootstrap/js, use smaller plotly bundle.
Add maximize/minimize plot.
* static: regenerate assets
* static: collapsable side-bar
* static: force plots update when on ui actions
* static: move stuff in ui.js
* static: cleanup event handlers
* static: regenerate assets zip
* static: remove unused plot cards
* static: use ring buffer for stats and add handle ui in nav.js
* static: use Float64Buffer
* static: move stuff in plotConfig.js
* static: StatsManager
* static: use private Class fields when necessary
* static: lighten app.js by moving websocket stuff to socket.js
* static: forEach -> map
* static: use correct icons for minimize/maximize plot
* static: remove unused variables
* static: simplify app.js by carving PlotManager out of it
* static: responsive plot dimensions
* static: fix theme switch on plots and github logo
* static: regenerate assets zip
* Update examples_test.go
* Update examples_test.go
* static: cosmetics
* static: plots background padding and color
* static: give plots a default height
Without that default height, plots were being created first empty and
grew afterwards, which was not aesthetically pleasing
* internal/plot: cosmetics
* internal/plot: cosmetics
* internal/plots: use metricIndices helper
* static: merge useMetric with mapMetricsToIndices
* internal/plot: plot configuration supports tags
* internal/plot: rework plot registry
* static: use Plotly.relayout when switching theme
* static: regenerate assets
* Cosmetics
* internal/plot: remove unused parameter
* internal/plot: simplify plot registering
* Cosmetics
* internal/plot: rewrite in a more declarative way
* internal/plot: remove usedMetrics from global state
* internal/plot: cosmetics
* internal/plots: add plots tags
* internal/static: style plot tags
* internal/static: smaller buttons
* internal/static: remove sidebar and move everything on top navbar
* internal/static: improve navbar
* internal/static: minimal navbar
* internal/static: reduce gap
* internal/static: navbar cosmetics
* internal/static: polish css html
* internal/static: don't update hidden plots
* internal/plot: add GC (Scavenger) plot
* internal/static: show plots unless all its tags are disabled
* internal/static: add 'CPU' plot tag
* internal/plot: CPU plots (gc, scavenger and overall)
* internal/plot: make 'mutex wait' a bar plot
* internal/static: add /cpu/classes/gc/total to 'cpu overall' plot
* internal/plot: add a 'garbage collection' plot
* internal/plot: improve plot tooltips
* internal/plot: add alloc/free rates plot
* internal/static: regenerate assets
* Update README.md
* Polish and document usage of STATSVIZ_DEBUG
* Update README.md
* Update CHANGELOG1 parent 0141254 commit 06fc52a
File tree
64 files changed
+4116
-2337
lines changed- .github
- scripts
- workflows
- internal
- plot
- static
- css
- js
- libs
- css
- js
- webfonts
- public
- scripts
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+4116
-2337
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
23 | | - | |
| 18 | + | |
| 19 | + | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
32 | 49 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 50 | + | |
36 | 51 | | |
37 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
38 | 55 | | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
41 | 59 | | |
42 | | - | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
| |||
0 commit comments