fix(dashboard): favicon at /favicon.svg, and the crates at version 0.4.2
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m4s

- /favicon.svg and /favicon.ico serve the BreakPilot chevron (the portal's
  and the website's icon) with image/svg+xml; the page head links
  /favicon.svg. Both paths answered 404 before, only a hashed asset path
  carried the icon.
- The workspace crates move from 0.1.0 to 0.4.2, so the platform version
  handshake (/api/v1/platform/version) reports the release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-09-29 17:46:16 +02:00
1 parent 001ab17b47
commit 4e426a262f
12 files changed
+44 -20

No files matched your search

Generated
+9 -9
View File
@@ -663,7 +663,7 @@ dependencies = [
[[package]]
name = "compliance-agent"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"axum",
"base64",
@@ -714,7 +714,7 @@ dependencies = [
[[package]]
name = "compliance-core"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"aes-gcm",
"axum",
@@ -744,7 +744,7 @@ dependencies = [
[[package]]
name = "compliance-dashboard"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"async-trait",
"axum",
@@ -784,7 +784,7 @@ dependencies = [
[[package]]
name = "compliance-dast"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"base64",
"bollard",
@@ -810,7 +810,7 @@ dependencies = [
[[package]]
name = "compliance-graph"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"bson",
"chrono",
@@ -834,7 +834,7 @@ dependencies = [
[[package]]
name = "compliance-mcp"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"axum",
"bson",
@@ -858,7 +858,7 @@ dependencies = [
[[package]]
name = "compliance-smoke"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"axum",
"compliance-core",
@@ -985,7 +985,7 @@ dependencies = [
[[package]]
name = "control-map"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"serde",
"serde_json",
@@ -6793,7 +6793,7 @@ dependencies = [
[[package]]
name = "werkbank-exec"
version = "0.1.0"
version = "0.4.2"
dependencies = [
"compliance-core",
"compliance-dast",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-agent"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-core"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-dashboard"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
default-run = "compliance-dashboard"
+2 -2
View File
@@ -55,7 +55,6 @@ pub enum Route {
McpTokensPage {},
}
const FAVICON: Asset = asset!("/assets/favicon.svg");
const MAIN_CSS: Asset = asset!("/assets/main.css");
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
const VIS_NETWORK_JS: Asset = asset!("/assets/vis-network.min.js");
@@ -66,7 +65,8 @@ pub fn App() -> Element {
// Also sent as the X-Robots-Tag header; in the markup it is visible
// in the page source and honoured by crawlers that read only HTML.
document::Meta { name: "robots", content: "noindex, nofollow" }
document::Link { rel: "icon", href: FAVICON }
// The BreakPilot chevron, at a fixed path (served by the server).
document::Link { rel: "icon", r#type: "image/svg+xml", href: "/favicon.svg" }
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
document::Link { rel: "stylesheet", href: MAIN_CSS }
document::Script { src: VIS_NETWORK_JS }
@@ -117,6 +117,10 @@ pub fn server_start(app: fn() -> Element) -> Result<(), DashboardError> {
"/robots.txt",
get(|| async { "User-agent: *\nDisallow: /\n" }),
)
// The BreakPilot chevron at the paths browsers and tools ask
// for; `/favicon.ico` too, since browsers read an SVG there.
.route("/favicon.svg", get(favicon))
.route("/favicon.ico", get(favicon))
.route("/auth", get(auth_login))
.route("/auth/staff", get(auth_staff_login))
.route("/auth/callback", get(auth_callback))
@@ -212,6 +216,20 @@ async fn seed_default_mcp_servers(db: &Database, mcp_endpoint_url: Option<&str>)
}
}
/// The BreakPilot chevron, the icon the portal and the website use.
const FAVICON_SVG: &str = include_str!("../../assets/favicon.svg");
/// The favicon: the chevron as SVG, cacheable for a day.
async fn favicon() -> impl axum::response::IntoResponse {
(
[
(axum::http::header::CONTENT_TYPE, "image/svg+xml"),
(axum::http::header::CACHE_CONTROL, "public, max-age=86400"),
],
FAVICON_SVG,
)
}
#[cfg(test)]
mod tests {
use super::*;
@@ -225,4 +243,10 @@ mod tests {
assert_eq!(non_blank(Some(" ".into())), None);
assert_eq!(non_blank(None), None);
}
#[test]
fn the_favicon_is_the_breakpilot_chevron() {
assert!(FAVICON_SVG.contains("M12 44 L32 20 L52 44"));
assert!(FAVICON_SVG.contains("#4F46E5"));
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-dast"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-graph"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-mcp"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[dependencies]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "compliance-smoke"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
description = "Tiny Axum service exercising compliance-core M7.1 tenant gating. Run smoke.sh against it before merging anything that touches the auth/tenant path."
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "control-map"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
[lints]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "werkbank-exec"
version = "0.1.0"
version = "0.4.2"
edition = "2021"
description = "Shared dynamic-execution logic: soft-PLC provisioning + industrial-protocol probing, used by the compliance agent and the Werkbank runner."