From 8a9eef03206237c8b48356daf67c8a8292d66bf9 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Fri, 15 May 2026 08:27:56 -0700 Subject: [PATCH 01/16] Cargo.toml: drop redundant dev-dependencies wasm-bindgen and web-sys are already declared as runtime dependencies, and wasm-bindgen-test is unused (no #[wasm_bindgen_test] in the tree). Removing the duplicates keeps a single source of truth for the WASM bindings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Cargo.lock | 50 -------------------------------------------------- Cargo.toml | 5 ----- 2 files changed, 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f9cb7fc..96d6379 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,15 +116,6 @@ version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" -[[package]] -name = "cc" -version = "1.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13208fcbb66eaeffe09b99fffbe1af420f00a7b35aa99ad683dfc1aa76145229" -dependencies = [ - "shlex", -] - [[package]] name = "cfg-if" version = "1.0.0" @@ -959,16 +950,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "minicov" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27fe9f1cc3c22e1687f9446c2083c4c5fc7f0bcf1c7a86bdbded14985895b4b" -dependencies = [ - "cc", - "walkdir", -] - [[package]] name = "next_tuple" version = "0.1.0" @@ -1004,7 +985,6 @@ dependencies = [ "leptos_meta", "leptos_router", "wasm-bindgen", - "wasm-bindgen-test", "web-sys", ] @@ -1468,12 +1448,6 @@ dependencies = [ "syn", ] -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - [[package]] name = "slab" version = "0.4.9" @@ -1835,30 +1809,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "wasm-bindgen-test" -version = "0.3.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66c8d5e33ca3b6d9fa3b4676d774c5778031d27a578c2b007f905acf816152c3" -dependencies = [ - "js-sys", - "minicov", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-bindgen-test-macro", -] - -[[package]] -name = "wasm-bindgen-test-macro" -version = "0.3.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17d5042cc5fa009658f9a7333ef24291b1291a25b6382dd68862a7f3b969f69b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "wasm-streams" version = "0.4.2" diff --git a/Cargo.toml b/Cargo.toml index e2504db..da0833d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,5 @@ leptos_router = "0.8.2" wasm-bindgen = "0.2.100" web-sys = { version = "0.3.77", features = ["Document", "Window", "console"] } -[dev-dependencies] -wasm-bindgen = "0.2.100" -wasm-bindgen-test = "0.3.50" -web-sys = { version = "0.3.77", features = ["Document", "Window", "console"] } - [package.metadata.leptos] assets-dir="public" \ No newline at end of file From 797a34a77736f1b5b659f59f9437b7b75f7e2a3f Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Fri, 15 May 2026 08:27:56 -0700 Subject: [PATCH 02/16] Replace references to undefined CSS classes Three typography classes were referenced from .rs sources but never defined in style/tailwind.css, so they silently fell back to no styling: - announce_banner.rs used .p3 -> replaced with the defined .p body class. - documentation_training.rs used .link_large_mobile (mobile twin of .link_large) -> replaced with the defined .link_mobile. - project_introduction.rs used .p3_mobile -> replaced with the defined .p2_mobile, matching the desktop .p1 it was paired with. No new classes are introduced; this only swaps in existing definitions so the affected text actually picks up the intended typography on mobile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/components/announce_banner.rs | 2 +- src/components/documentation_training.rs | 4 ++-- src/components/project_introduction.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/announce_banner.rs b/src/components/announce_banner.rs index 46b01f3..a969bfb 100644 --- a/src/components/announce_banner.rs +++ b/src/components/announce_banner.rs @@ -5,7 +5,7 @@ pub fn AnnounceBanner() -> impl IntoView { view! {
Flag Icon - + {"UPDATE: "} {"Open Device Partnership Expands Open-Source Efforts; "} diff --git a/src/components/documentation_training.rs b/src/components/documentation_training.rs index c6ebe8d..d2d35ed 100644 --- a/src/components/documentation_training.rs +++ b/src/components/documentation_training.rs @@ -50,7 +50,7 @@ pub fn DocumentationTraining(#[prop(default = vec![])] links: Vec) -> i + } > - diff --git a/src/pages/home.rs b/src/pages/home.rs index 84c3514..a96ce03 100644 --- a/src/pages/home.rs +++ b/src/pages/home.rs @@ -1,4 +1,4 @@ -use crate::components::documentation_training::{DocLink, DocumentationTraining}; +use crate::components::documentation_training::DocumentationTraining; use crate::components::footer::Footer; use crate::components::header::Header; use crate::components::main::Main; @@ -9,35 +9,6 @@ use leptos::prelude::*; /// Default Home Page #[component] pub fn Home() -> impl IntoView { - // Documentation links for the DocumentationTraining section - let links = vec![ - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/why/why.html", - title: "Why ODP?", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/getting_started.html", - title: "Getting Started with ODP", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/welcome.html", - title: "Tutorials", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/specs/specifications.html", - title: "Specifications", - external: true, - }, - DocLink { - href: "/community", - title: "Contributing to ODP", - external: false, - }, - ]; - view! { impl IntoView {
- +
diff --git a/src/pages/projects.rs b/src/pages/projects.rs index 4ec5f01..926f743 100644 --- a/src/pages/projects.rs +++ b/src/pages/projects.rs @@ -1,4 +1,4 @@ -use crate::components::documentation_training::{DocLink, DocumentationTraining}; +use crate::components::documentation_training::DocumentationTraining; use crate::components::footer::Footer; use crate::components::header::Header; use crate::components::projects_component::ProjectsComponent; @@ -8,34 +8,6 @@ use leptos::prelude::*; /// Default Home Page #[component] pub fn Projects() -> impl IntoView { - let links = vec![ - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/why/why.html", - title: "Why ODP?", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/getting_started.html", - title: "Getting Started with ODP", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/welcome.html", - title: "Tutorials", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/specs/specifications.html", - title: "Specifications", - external: true, - }, - DocLink { - href: "/community", - title: "Contributing to ODP", - external: false, - }, - ]; - view! { impl IntoView {
- +
diff --git a/src/pages/unified_ec_services.rs b/src/pages/unified_ec_services.rs index 15e0801..9bae34f 100644 --- a/src/pages/unified_ec_services.rs +++ b/src/pages/unified_ec_services.rs @@ -1,4 +1,4 @@ -use crate::components::documentation_training::{DocLink, DocumentationTraining}; +use crate::components::documentation_training::DocumentationTraining; use crate::components::footer::Footer; use crate::components::header::Header; use crate::components::project_introduction::ProjectIntroduction; @@ -9,34 +9,6 @@ use leptos::prelude::*; /// Default Home Page #[component] pub fn WindowsEcServices() -> impl IntoView { - let links = vec![ - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/why/why.html", - title: "Why ODP?", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/getting_started.html", - title: "Getting Started with ODP", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/intro/welcome.html", - title: "Tutorials", - external: true, - }, - DocLink { - href: "https://opendevicepartnership.github.io/documentation/guide/specs/specifications.html", - title: "Specifications", - external: true, - }, - DocLink { - href: "/community", - title: "Contributing to ODP", - external: false, - }, - ]; - let project_title = "Unified Embedded Controller Interface"; let project_summary = ""; let project_what = r#"The Unified Windows EC Service interface defines runtime coordination between firmware components using async message-passing. @@ -78,7 +50,7 @@ pub fn WindowsEcServices() -> impl IntoView { big_image_url="/images/ECServicesBackground.png" small_image_url="/images/dark/ProjectIcon_ES_Patina_DarkMode.svg" /> - +