aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / crates / site-builder / src / components / still_building.rs
| 1 | //! The #StillBuilding campaign page is authored in seeded Omega. |
| 2 | use maud::{html, Markup, PreEscaped}; |
| 3 | |
| 4 | pub const TITLE: &str = "If you built it with AI, you built it | AienOS"; |
| 5 | pub const DESCRIPTION: &str = "#StillBuilding: people who build with AI get judged for it, and it has been measured. Show the work, say how you made it, and keep leveling up. Sources linked."; |
| 6 | pub const URL: &str = "https://www.aienos.com/still-building/"; |
| 7 | pub const PAGE: &str = include_str!("../../../../om/still-building-page/main.html"); |
| 8 | |
| 9 | pub fn render_page() -> Markup { html! { (PreEscaped(PAGE)) } } |
| 10 | |
| 11 | #[cfg(test)] |
| 12 | mod tests { |
| 13 | use super::*; |
| 14 | use sha2::{Digest, Sha256}; |
| 15 | #[test] |
| 16 | fn still_building_artifacts_match_recorded_hashes() { |
| 17 | for (bytes, receipt) in [ |
| 18 | (PAGE.as_bytes(), include_str!("../../../../om/still-building-page/main.html.sha256")), |
| 19 | (include_bytes!("../../../../public/assets/still-building.css").as_slice(), include_str!("../../../../om/still-building-page/still-building.css.sha256")), |
| 20 | ] { |
| 21 | assert_eq!(format!("{:x}", Sha256::digest(bytes)), receipt.split_whitespace().next().unwrap()); |
| 22 | } |
| 23 | } |
| 24 | #[test] |
| 25 | fn still_building_cites_sources_and_discloses() { |
| 26 | for href in [ |
| 27 | "https://doi.org/10.1073/pnas.2426766122", |
| 28 | "https://hbr.org/2025/08/research-the-hidden-penalty-of-using-ai-at-work", |
| 29 | "https://www.microsoft.com/en-us/research/publication/after-organizational-ai-acceptance-ai-bias-fades-but-a-junior-penalty-persists-in-code-review/", |
| 30 | "https://www.npr.org/2025/09/05/nx-s1-5529404/anthropic-settlement-authors-copyright-ai", |
| 31 | "/learn/", |
| 32 | ] { |
| 33 | assert!(PAGE.contains(&format!("href=\"{href}\"")), "missing {href}"); |
| 34 | } |
| 35 | for text in ["#StillBuilding", "The concerns are real", "my AI agents drafted this page", "adds no tracking of its own", "href=\"/privacy/\"", "I'll ask in public before I share anything"] { |
| 36 | assert!(PAGE.contains(text), "missing {text}"); |
| 37 | } |
| 38 | assert!(!PAGE.contains("<script") && !PAGE.contains("<img")); |
| 39 | assert!(!PAGE.contains('\u{2014}') && !PAGE.contains('\u{2013}')); |
| 40 | } |
| 41 | } |