From 4304b0f336ddba7b4ec6780795059ff2066d105b Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 17:33:17 +0000 Subject: comments: keep only what the code cannot show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stripped every comment that described what an item does, documented its arguments or fields, or cited the design docs (§n, I-n, m-n, decision n). 2247 comments down to 83. What survives: the section dividers that segment the large modules, the secret-handling warnings, the agent wire-frame directions, and the few notes without which the code they attach to reads as redundant, reorderable, or unsound. --- src/http/render.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/http/render.rs') diff --git a/src/http/render.rs b/src/http/render.rs index f049a25..f3e4669 100644 --- a/src/http/render.rs +++ b/src/http/render.rs @@ -1,7 +1,5 @@ use askama::Template; -/// Everything the shared chrome needs. Embedded in each page context because -/// askama inheritance passes the whole struct down. #[derive(Debug, Clone)] pub struct Page { pub title: String, @@ -19,7 +17,6 @@ pub struct Page { pub nav_subscriptions: &'static str, pub nav_audit: &'static str, pub nav_settings: &'static str, - /// True when a password gate is configured, so the chrome offers a logout. pub gated: bool, } @@ -116,7 +113,6 @@ pub struct ReviewDetail { pub base_version: String, pub has_base: bool, pub panels: Vec, - /// First introductions show the whole recipe instead of a diff (§7.1b). pub recipe: String, pub srcinfo: String, pub has_srcinfo: bool, @@ -134,8 +130,6 @@ pub struct ReviewHead { pub risk: String, pub signals: Vec, pub missing_deps: Vec, - /// §10.3: "approving this marks N packages stale" — the packages of ours - /// whose own recipes name one of the packages this candidate produces. pub dependents: Vec, pub revision: i64, pub aur_commit: String, @@ -196,9 +190,6 @@ pub struct Attention { pub blocked: Vec, } -/// §8.4: an approval whose build failed. The index is still serving the older -/// version and nothing about the package looks wrong from the outside, so this -/// row exists to be impossible to miss. #[derive(Debug, Clone)] pub struct UnbuiltRow { pub pkgbase: String, @@ -221,7 +212,6 @@ pub struct NoticeRow { #[derive(Debug, Clone)] pub struct StaleRow { pub pkgbase: String, - /// The dependency that moved (or `aur` for a downgrade row). pub dependency: String, pub built_with: String, pub now: String, @@ -261,7 +251,6 @@ pub struct PackageDetail { pub summary: String, pub can_withdraw: bool, pub stale: Vec, - /// "v2 approved, build failed, index still serving v1" (§8.4). pub unbuilt: Vec, pub deps_in: Vec, pub deps_out: Vec, @@ -287,7 +276,6 @@ pub struct Builds { pub recent: Vec, } -/// The same table on its own, for the htmx fragment refresh. #[derive(Template)] #[template(path = "builds_table.html")] pub struct BuildsTable { @@ -379,10 +367,6 @@ pub struct SettingRow { pub value: String, } -/// Static assets. Two files, both vendored, both served from `include_bytes!` -/// so the binary is self-contained and there is no install step and no bundler -/// (§13). htmx is the only JavaScript this app ships; it is served precompressed -/// because the budget that matters is what a browser actually downloads. pub fn static_asset(name: &str, accept_gzip: bool) -> crate::http::Res { use crate::http::Res; match name { -- cgit v1.2.3