summaryrefslogtreecommitdiffstats
path: root/src/http/render.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
committeraur-build <aur-build@localhost>2026-11-23 13:44:20 +0000
commit4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (patch)
treec61c2274e3810669cef8319cf9980cbbe031f840 /src/http/render.rs
parent053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (diff)
downloadaur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.tar.gz
aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.zip
usecase,http,pipeline,ops: keep the contract, drop the argument
A workflow's doc now says what it guarantees and stops defending its existence: `subscribe` resolves the repo row, `approve` queues what the approval buys, a per-item failure comes back as a value instead of a panic. The history of which front end used to open-code it is gone. The last census-war notes go with it — three places that explained why a name in a test string was not a caller.
Diffstat (limited to 'src/http/render.rs')
-rw-r--r--src/http/render.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/http/render.rs b/src/http/render.rs
index bc2ad3d..95e6de1 100644
--- a/src/http/render.rs
+++ b/src/http/render.rs
@@ -23,7 +23,7 @@ mod page {
}
}
-/// The render model's shared header. Every template and route handler that fills it lives inside `http`; the outside readers are the page tests.
+/// The render model's shared header.
#[cfg(feature = "test-support")]
pub use page::Page;
@@ -31,8 +31,6 @@ pub use page::Page;
pub(crate) use page::Page;
impl Page {
- /// Built by the route handlers, which are in this module; nothing outside
- /// `http` constructs a page header.
pub(crate) fn new(title: &str, csrf: String) -> Self {
Self {
title: title.into(),
@@ -161,7 +159,7 @@ mod panel {
}
}
-/// A diff panel in the render model. The tests that assert on its body drive a real review and cannot move into the module.
+/// A diff panel in the render model.
#[cfg(feature = "test-support")]
pub use panel::Panel;
@@ -169,7 +167,6 @@ pub use panel::Panel;
pub(crate) use panel::Panel;
impl Panel {
- /// Built by the route handlers, which are in this module.
pub(crate) fn new(title: &str, body: String) -> Self {
Self { title: title.into(), empty: body.trim().is_empty(), empty_note: "no change".into(), body }
}
@@ -313,9 +310,8 @@ pub(crate) struct BuildLite {
}
#[derive(Debug, Clone)]
-/// A row of the builds table as the templates render it. Filled and read
-/// entirely inside `http`; the `BuildRow` other modules name is `db::builds::BuildRow`,
-/// a different type that happens to share the name.
+/// A row of the builds table as the templates render it — not the same type as
+/// the `db::builds::BuildRow` other modules name.
pub(crate) struct BuildRow {
pub id: String,
pub id_short: String,