From edea0aac2a46c2dcfa300a6b60fc79b1465cd279 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Feb 2026 09:50:14 +0000 Subject: [PATCH] refactor: extract 3,432 lines of embedded HTML to include_str!() Move HTML content from Rust raw string literals into proper .html files, replacing each _html.rs with a 1-line include_str!() call. - runtime-dashboard: dashboard.html (511), actors.html (739), distribution.html (746) - simulation-dashboard: dashboard.html (1,436) Enables proper HTML syntax highlighting and linting in editors. Authored by Claude, lovingly guided by Zachery Aaron Shores-Chmielewski --- crates/runtime-dashboard/src/actors.html | 794 ++++++++ crates/runtime-dashboard/src/actors_html.rs | 796 +------- crates/runtime-dashboard/src/dashboard.html | 640 ++++++ .../runtime-dashboard/src/dashboard_html.rs | 642 +----- .../runtime-dashboard/src/distribution.html | 767 ++++++++ .../src/distribution_html.rs | 769 +------- .../simulation-dashboard/src/dashboard.html | 1715 ++++++++++++++++ .../src/dashboard_html.rs | 1717 +---------------- 8 files changed, 3920 insertions(+), 3920 deletions(-) create mode 100644 crates/runtime-dashboard/src/actors.html create mode 100644 crates/runtime-dashboard/src/dashboard.html create mode 100644 crates/runtime-dashboard/src/distribution.html create mode 100644 crates/simulation-dashboard/src/dashboard.html diff --git a/crates/runtime-dashboard/src/actors.html b/crates/runtime-dashboard/src/actors.html new file mode 100644 index 0000000..40a7121 --- /dev/null +++ b/crates/runtime-dashboard/src/actors.html @@ -0,0 +1,794 @@ + + + + + +Swactor Runtime – Actors + + + +
+
+

+ Swactor Runtime Dashboard + + REPLAY +

+ +
+
+ + + +
+
+
+
+
+ +
+ +
+

Actor Stats

+
+
0
Total Actors
+
0
Avg Mailbox
+
0
Max Mailbox
+
0
Active Workers
+
+
+ + +
+

Mailbox Depth Distribution

+ +
+ + +
+

Actors per Worker

+ +
+ + +
+

All Actors

+
+ + + + + +
+
+ + + + + + + + + + + + +
Address Worker Mailbox Msgs Last MsgDepth
+
+
+ + +
+ + +
+
+

Actor

+ +
+
+
Address
+
Worker
+
Mailbox
+
Messages
+
Last Type
+
Status
+
+
Mailbox History
+ +
+ + + + diff --git a/crates/runtime-dashboard/src/actors_html.rs b/crates/runtime-dashboard/src/actors_html.rs index 7b0f011..9bb9170 100644 --- a/crates/runtime-dashboard/src/actors_html.rs +++ b/crates/runtime-dashboard/src/actors_html.rs @@ -1,795 +1 @@ -pub const ACTORS_HTML: &str = r##" - - - - -Swactor Runtime – Actors - - - -
-
-

- Swactor Runtime Dashboard - - REPLAY -

- -
-
- - - -
-
-
-
-
- -
- -
-

Actor Stats

-
-
0
Total Actors
-
0
Avg Mailbox
-
0
Max Mailbox
-
0
Active Workers
-
-
- - -
-

Mailbox Depth Distribution

- -
- - -
-

Actors per Worker

- -
- - -
-

All Actors

-
- - - - - -
-
- - - - - - - - - - - - -
Address Worker Mailbox Msgs Last MsgDepth
-
-
- - -
- - -
-
-

Actor

- -
-
-
Address
-
Worker
-
Mailbox
-
Messages
-
Last Type
-
Status
-
-
Mailbox History
- -
- - - - -"##; +pub const ACTORS_HTML: &str = include_str\!("actors.html"); diff --git a/crates/runtime-dashboard/src/dashboard.html b/crates/runtime-dashboard/src/dashboard.html new file mode 100644 index 0000000..aa61a39 --- /dev/null +++ b/crates/runtime-dashboard/src/dashboard.html @@ -0,0 +1,640 @@ + + + + + +Swactor Runtime Dashboard + + + +
+
+

+ Swactor Runtime Dashboard + + REPLAY +

+ +
+
+ + + +
+
+
+
+
+ + +
+
+

Worker Utilization

+
+
+ \u25A0 processing + \u25A0 delivery + \u25A0 spawns + \u25A0 overhead +
+
+ +
+

Stats

+
+
0
Actors
+
0
Messages
+
0
Workers
+
0
Mailbox
+
+
+ +
+

Actors

+
+ + + +
AddressWorker
+
+
+ +
+

Worker Details

+
+
+ +
+

Activity Log

+
+ + + +
SeqTimeLevelWorkerMessageFields
+
+
+
+ + + + diff --git a/crates/runtime-dashboard/src/dashboard_html.rs b/crates/runtime-dashboard/src/dashboard_html.rs index 1917297..66a9f12 100644 --- a/crates/runtime-dashboard/src/dashboard_html.rs +++ b/crates/runtime-dashboard/src/dashboard_html.rs @@ -1,641 +1 @@ -pub const DASHBOARD_HTML: &str = r##" - - - - -Swactor Runtime Dashboard - - - -
-
-

- Swactor Runtime Dashboard - - REPLAY -

- -
-
- - - -
-
-
-
-
- - -
-
-

Worker Utilization

-
-
- \u25A0 processing - \u25A0 delivery - \u25A0 spawns - \u25A0 overhead -
-
- -
-

Stats

-
-
0
Actors
-
0
Messages
-
0
Workers
-
0
Mailbox
-
-
- -
-

Actors

-
- - - -
AddressWorker
-
-
- -
-

Worker Details

-
-
- -
-

Activity Log

-
- - - -
SeqTimeLevelWorkerMessageFields
-
-
-
- - - - -"##; +pub const DASHBOARD_HTML: &str = include_str\!("dashboard.html"); diff --git a/crates/runtime-dashboard/src/distribution.html b/crates/runtime-dashboard/src/distribution.html new file mode 100644 index 0000000..38e3d38 --- /dev/null +++ b/crates/runtime-dashboard/src/distribution.html @@ -0,0 +1,767 @@ + + + + + +Swactor Runtime – Distribution + + + +
+
+

+ Swactor Runtime Dashboard + +

+ +
+
+ Waiting for data... +
+
+ +
+ +
+ +
Click a node for ego-centric view. Double-click to reset.
+
+
+ + +
+
+

Distribution Stats

+
+
0
Members
+
0
Alive
+
0
Suspect
+
0
Dead
+
0
Cache
+
0
RT Size
+
0
Directory
+
0
Repair Q
+
0
Probes
+
+
+ +
+

Members

+
+ + + +
StateNode IDAddressInc
+
+
+
+ + +
+
+

LRU Cache

+
+ + + +
ActorNode
+
+
+
+

Recent Probes

+
+ + + + + + + +
StateNodeAddress
+
+
+
+

Routing Buckets

+ +
+
+
+ + + + diff --git a/crates/runtime-dashboard/src/distribution_html.rs b/crates/runtime-dashboard/src/distribution_html.rs index d9931e3..4a5f280 100644 --- a/crates/runtime-dashboard/src/distribution_html.rs +++ b/crates/runtime-dashboard/src/distribution_html.rs @@ -1,768 +1 @@ -pub const DISTRIBUTION_HTML: &str = r##" - - - - -Swactor Runtime – Distribution - - - -
-
-

- Swactor Runtime Dashboard - -

- -
-
- Waiting for data... -
-
- -
- -
- -
Click a node for ego-centric view. Double-click to reset.
-
-
- - -
-
-

Distribution Stats

-
-
0
Members
-
0
Alive
-
0
Suspect
-
0
Dead
-
0
Cache
-
0
RT Size
-
0
Directory
-
0
Repair Q
-
0
Probes
-
-
- -
-

Members

-
- - - -
StateNode IDAddressInc
-
-
-
- - -
-
-

LRU Cache

-
- - - -
ActorNode
-
-
-
-

Recent Probes

-
- - - - - - - -
StateNodeAddress
-
-
-
-

Routing Buckets

- -
-
-
- - - - -"##; +pub const DISTRIBUTION_HTML: &str = include_str\!("distribution.html"); diff --git a/crates/simulation-dashboard/src/dashboard.html b/crates/simulation-dashboard/src/dashboard.html new file mode 100644 index 0000000..d4874be --- /dev/null +++ b/crates/simulation-dashboard/src/dashboard.html @@ -0,0 +1,1715 @@ + + + + + +Simulation Dashboard + + + +
+

Simulation Dashboard

+ +
+
+ Loading traces... +
+
+
+
+ +
+
Computing layout...
+
+
+
+ +

+
+
+
+
+
+ +
+ + +
+
+
+

Stats

+
+
0
Nodes
+
0
Edges
+
0
Messages
+
0/0
Round
+
+
+
+

Worker Logs

+
+
+
+

Event Log

+
+ + + +
SeqRoundThreadNodeEventDetails
+
+
+
+
+
+
+
+

Convergence Curve

+ +
+
+

Propagation Heatmap

+
+ +
+
+
+
+

Load Distribution

+ +
+
+
+
+
+ + + + diff --git a/crates/simulation-dashboard/src/dashboard_html.rs b/crates/simulation-dashboard/src/dashboard_html.rs index 6885af1..c58f01b 100644 --- a/crates/simulation-dashboard/src/dashboard_html.rs +++ b/crates/simulation-dashboard/src/dashboard_html.rs @@ -1,1716 +1 @@ -pub const DASHBOARD_HTML: &str = r##" - - - - -Simulation Dashboard - - - -
-

Simulation Dashboard

- -
-
- Loading traces... -
-
-
-
- -
-
Computing layout...
-
-
-
- -

-
-
-
-
-
- -
- - -
-
-
-

Stats

-
-
0
Nodes
-
0
Edges
-
0
Messages
-
0/0
Round
-
-
-
-

Worker Logs

-
-
-
-

Event Log

-
- - - -
SeqRoundThreadNodeEventDetails
-
-
-
-
-
-
-
-

Convergence Curve

- -
-
-

Propagation Heatmap

-
- -
-
-
-
-

Load Distribution

- -
-
-
-
-
- - - - -"##; +pub const DASHBOARD_HTML: &str = include_str!("dashboard.html");