{"messages":[{"content":"You are a constitutional council ranking individual git commits for ownership allocation.\n\nCompare these two commits. Decide which contributed more lasting value to the project.\n\nJudge substance, not spectacle:\n- Prefer correct, lasting design and real bugfixes over churn, formatting, renames, or generated noise.\n- Prefer clarity and necessity over sheer line count. A small precise change can beat a large diffuse one.\n- Do not favor a side merely because its patch is longer or noisier.\n- Weight what the change does for the project, not the contributor's name.\n\nReturn ONLY a JSON object: {\"winner\": \"A\" or \"B\", \"ratio\": \"N:M\", \"explanation\": \"...\"}\nThe explanation must cite concrete differences in the patches (1-3 sentences).\n\nSide A — contributor: tommy-mor\nSide A — commit message:\n[8f6be6d0] Add copy button for garden rankings (markdown clipboard) (#168)\n\n* Add garden ranking markdown copy button via POST /ui\n\nIntroduce HtmlUiAction::CopyGardenRank that rebuilds the visible child\nranking and returns JsBuilder clipboard JS (fetch → eval), matching\nCopyThread. Place a copy control on garden ranking headings; clipboard\ntext is a concise markdown numbered list with unranked bullets.\n\nCo-authored-by: tommy \n\n* Fix paren balance in garden ranking copy browser test\n\nCo-authored-by: tommy \n\n---------\n\nCo-authored-by: Cursor Agent \n\nSide A — unified diff (full patch):\ndiff --git a/agents.md b/agents.md\nindex 7d6fea5791f7c95677e17e8975a14df83f998fd6..1dc989e4b23071f2eef69f2479c9a1ca2bd04b32 100644\n--- a/agents.md\n+++ b/agents.md\n@@ -40,6 +40,8 @@ Strict **CSP** that blocks `eval` would break the current app. Other projects ma\n \n - **Non-morph `POST /ui` responses:** **`SetGardenPin`** returns **`303 See Other`** and **`Set-Cookie`** (same as **`POST /theme`**). Garden pin/unpin is a normal **`
`** — browser navigation applies cookies reliably (see **`test/browser_garden_pin.clj`**). Each **`__rpc__`** payload includes **`form_action: \"/ui\"`**; **`post_ui_html`** rejects mismatches to bind tokens to the UI endpoint.\n \n+- **`CopyGardenRank`:** Browser copy control on garden ranking headings. Returns **`text/javascript`** via **`JsBuilder::clipboard_write_text_and_label_btn`** (same **`fetch` → `eval`** loop as **`CopyThread`**). Payload includes **`room`**, **`parent_path`**, **`depth`**, **`copy_btn_id`**, and optional **`external_hosts`** (for **`/-/`** host-root indexes). Clipboard text is a concise markdown numbered list of display paths (plus unranked bullets).\n+\n - **`VoteComparePost`:** On success returns **`text/javascript`** that **morphs** **`#vote-edge-history-region`** (recomputed **`
    `** — ratios match **`left`/`right`** query order, bullets, sorted by strength toward **`left`** then newer) and **`.vote-compare-nav`** (fresh next-pair link). The compare **`GET`** page uses **`layout_full_bleed_chromeless`** (no breadcrumbs, no **`#controls`**, no **`slug-pin-hud`**; **`view-vote-compare-fullscreen`** full-width **`body`**). **`__rpc__`** carries **`form_action: \"/ui\"`**; **`thread_tag`** and ratio fields come from the same form as **`$form`** holes. **Guests** on a shared pair see the compose UI with **`post vote`** as a link to **`/login?next=`** (class **`vote-compare-login-cta`**); after OAuth / username selection they return to that matchup. An unauthenticated **`VoteComparePost`** (forged/stale form) still JS-redirects to the same **`/login?next=`** target.\n \n - **`ThreadGraduate` / `GraduateThread`:** Private-room forum threads with **Manage** can be published to the public site under the same tag. The writer replays non-redacted ingests into **`room: public`** (chronological order), then appends a durable **`ThreadGraduated`** marker. Graduated private threads show a banner linking to public **`/t/:tag`**, block further private posts, and cannot be graduated twice. CLI: **`npx slugsocial private forum graduate `**; RPC: **`ThreadGraduate`**.\ndiff --git a/server/src/api/ui_html.rs b/server/src/api/ui_html.rs\nindex b4a0c9e87e462050bd52728e49e0d6781bf1cfc8..611956d0a46062b49ce350be176e4be139312ff0 100644\n--- a/server/src/api/ui_html.rs\n+++ b/server/src/api/ui_html.rs\n@@ -24,9 +24,9 @@ use crate::{\n external_resolver_status_markup, fragment_new_thread_slot, login_to_post_hint_markup,\n parse_html_ui_from_form, room_members_section_markup, thread_feed_html,\n thread_feed_html_for_room, thread_feed_region_markup, thread_ui_collapse_redacted_post,\n- thread_ui_copy_thread,\n- thread_ui_expand_post_full, thread_ui_expand_redacted_post, ui_js_warn, user_can_post_room,\n- user_can_view_room, HtmlUiAction, JsBuilder, ThreadNav,\n+ garden_ui_copy_rank, thread_ui_copy_thread, thread_ui_expand_post_full,\n+ thread_ui_expand_redacted_post, ui_js_warn, user_can_post_room, user_can_view_room,\n+ HtmlUiAction, JsBuilder, ThreadNav,\n },\n reducer::{scope_from_room_wire, ScopeId},\n state::AppState,\n@@ -575,6 +575,25 @@ async fn dispatch_ui_action(\n let viewer = session.map(|s| s.username.as_str());\n thread_ui_copy_thread(state, &room, &thread_tag, ©_btn_id, viewer).await\n }\n+ HtmlUiAction::CopyGardenRank {\n+ room,\n+ parent_path,\n+ depth,\n+ copy_btn_id,\n+ external_hosts,\n+ } => {\n+ let viewer = session.map(|s| s.username.as_str());\n+ garden_ui_copy_rank(\n+ state,\n+ &room,\n+ &parent_path,\n+ depth,\n+ ©_btn_id,\n+ external_hosts,\n+ viewer,\n+ )\n+ .await\n+ }\n HtmlUiAction::GraduateThread { room, thread_tag } => {\n let Some(session) = session else {\n return js_redirect(\"/login\").into_response();\ndiff --git a/server/src/html/garden/copy.rs b/server/src/html/garden/copy.rs\nnew file mode 100644\nindex 0000000000000000000000000000000000000000..271ea87c34c99e23ab1b0d8572632fdc41380b78\n--- /dev/null\n+++ b/server/src/html/garden/copy.rs\n@@ -0,0 +1,199 @@\n+//! Copy garden rankings to the clipboard as concise markdown (POST /ui + JsBuilder eval).\n+\n+use crate::form_template::template_json_compact;\n+use crate::html::forum::ThreadNav;\n+use crate::html::js_string_literal;\n+use crate::html::ui_action::HtmlUiAction;\n+use crate::html::{JsBuilder, ui_js_warn};\n+use crate::path_types::ItemId;\n+use crate::reducer::scope_from_room_wire;\n+use crate::scope_rank::{\n+ build_children_rankings, build_rankings_for_item_set, external_root_host_items,\n+ resolve_scope_recursive, ChildrenRankings,\n+};\n+use crate::state::AppState;\n+use maud::{html, Markup};\n+\n+use super::access::user_can_view_room;\n+use super::item::item_display_path;\n+use crate::reducer::{ContentState, ScopeId};\n+\n+const COPY_BTN_ID: &str = \"garden-rank-copy\";\n+\n+/// `POST /ui` + `__rpc__` from an inline button; response body is `eval`'d (same as forum copy).\n+fn garden_ui_fetch_onclick(rpc_compact_json: &str) -> String {\n+ format!(\n+ \"fetch('/ui',{{method:'POST',headers:{{'Content-Type':'application/x-www-form-urlencoded'}},body:new URLSearchParams({{__rpc__:{}}}).toString(),credentials:'same-origin'}}).then(r=>r.text()).then(eval);return false\",\n+ js_string_literal(rpc_compact_json)\n+ )\n+}\n+\n+/// Concise markdown for ranked child groups (numbered lists + unranked bullets).\n+pub(crate) fn format_garden_rank_markdown(rankings: &ChildrenRankings) -> String {\n+ let mut out = String::new();\n+ let multi = rankings.component_rankings.len() > 1;\n+ for (ci, comp) in rankings.component_rankings.iter().enumerate() {\n+ if ci > 0 {\n+ out.push('\\n');\n+ }\n+ if multi {\n+ out.push_str(&format!(\"### ordering {}\\n\\n\", ci + 1));\n+ }\n+ for (i, r) in comp.ranked.iter().enumerate() {\n+ out.push_str(&format!(\n+ \"{}. {}\\n\",\n+ i + 1,\n+ item_display_path(r.item.as_str())\n+ ));\n+ }\n+ }\n+ if !rankings.unranked_items.is_empty() {\n+ if !out.is_empty() {\n+ out.push('\\n');\n+ }\n+ for name in &rankings.unranked_items {\n+ out.push_str(&format!(\"- {}\\n\", item_display_path(name.as_str())));\n+ }\n+ }\n+ out\n+}\n+\n+fn rankings_for_copy(\n+ state_content: &crate::reducer::ContentState,\n+ parent_path: &str,\n+ depth: usize,\n+ external_hosts: bool,\n+) -> ChildrenRankings {\n+ if external_hosts {\n+ let hosts = external_root_host_items(state_content);\n+ return build_rankings_for_item_set(state_content, &hosts);\n+ }\n+ let parent = ItemId::parse(parent_path.trim())\n+ .unwrap_or_else(|| ItemId::ontology_root())\n+ .normalized_storage();\n+ let depth = depth.clamp(1, 5);\n+ if depth > 1 {\n+ let items = resolve_scope_recursive(state_content, &[parent.as_str().to_string()], depth);\n+ build_rankings_for_item_set(state_content, &items)\n+ } else {\n+ build_children_rankings(state_content, &parent)\n+ }\n+}\n+\n+pub(crate) async fn garden_ui_copy_rank(\n+ state: &AppState,\n+ room: &str,\n+ parent_path: &str,\n+ depth: usize,\n+ copy_btn_id: &str,\n+ external_hosts: bool,\n+ viewer: Option<&str>,\n+) -> axum::response::Response {\n+ let room = room.trim();\n+ let scope = scope_from_room_wire(room);\n+ if let ScopeId::Room(ref rid) = scope {\n+ let reduced = state.reduced.read().await;\n+ if !user_can_view_room(&reduced, rid, viewer) {\n+ return ui_js_warn(\"forbidden\");\n+ }\n+ }\n+\n+ let reduced = state.reduced.read().await;\n+ let empty = ContentState::default();\n+ let content = match &scope {\n+ ScopeId::Public => reduced.public(),\n+ ScopeId::Room(_) => reduced.content_for_scope(&scope).unwrap_or(&empty),\n+ };\n+ let rankings = rankings_for_copy(content, parent_path, depth, external_hosts);\n+ let text = format_garden_rank_markdown(&rankings);\n+ drop(reduced);\n+\n+ if text.is_empty() {\n+ return ui_js_warn(\"nothing to copy\");\n+ }\n+\n+ JsBuilder::new()\n+ .clipboard_write_text_and_label_btn(&text, copy_btn_id, \"copied\")\n+ .into_response()\n+}\n+\n+pub(super) fn garden_rank_copy_button_markup(\n+ nav: &ThreadNav,\n+ parent_path: &str,\n+ depth: usize,\n+ external_hosts: bool,\n+) -> Markup {\n+ let rpc = template_json_compact(&HtmlUiAction::CopyGardenRank {\n+ room: nav.room_wire.clone(),\n+ parent_path: parent_path.to_string(),\n+ depth,\n+ copy_btn_id: COPY_BTN_ID.to_string(),\n+ external_hosts,\n+ })\n+ .expect(\"CopyGardenRank serializes\");\n+ html! {\n+ button type=\"button\" id=(COPY_BTN_ID) class=\"post-nav-btn ont-rank-copy-btn\" title=\"Copy ranking as markdown\"\n+ onclick=(garden_ui_fetch_onclick(&rpc)) {\n+ \"copy\"\n+ }\n+ }\n+}\n+\n+#[cfg(test)]\n+mod tests {\n+ use super::*;\n+ use crate::path_types::ItemId;\n+ use crate::ranking::RankedItem;\n+ use crate::scope_rank::ScopedComponent;\n+\n+ #[test]\n+ fn markdown_single_component_and_unranked() {\n+ let rankings = ChildrenRankings {\n+ component_rankings: vec![ScopedComponent {\n+ pairs: 1,\n+ ranked: vec![\n+ RankedItem {\n+ item: ItemId::parse(\"~/a\").unwrap(),\n+ score: 0.9,\n+ },\n+ RankedItem {\n+ item: ItemId::parse(\"~/b\").unwrap(),\n+ score: 0.1,\n+ },\n+ ],\n+ }],\n+ unranked_items: vec![ItemId::parse(\"~/c\").unwrap()],\n+ };\n+ assert_eq!(\n+ format_garden_rank_markdown(&rankings),\n+ \"1. ~/a\\n2. ~/b\\n\\n- ~/c\\n\"\n+ );\n+ }\n+\n+ #[test]\n+ fn markdown_multi_component_headers() {\n+ let rankings = ChildrenRankings {\n+ component_rankings: vec![\n+ ScopedComponent {\n+ pairs: 1,\n+ ranked: vec![RankedItem {\n+ item: ItemId::parse(\"~/a\").unwrap(),\n+ score: 1.0,\n+ }],\n+ },\n+ ScopedComponent {\n+ pairs: 1,\n+ ranked: vec![RankedItem {\n+ item: ItemId::parse(\"~/b\").unwrap(),\n+ score: 1.0,\n+ }],\n+ },\n+ ],\n+ unranked_items: vec![],\n+ };\n+ assert_eq!(\n+ format_garden_rank_markdown(&rankings),\n+ \"### ordering 1\\n\\n1. ~/a\\n\\n### ordering 2\\n\\n1. ~/b\\n\"\n+ );\n+ }\n+}\ndiff --git a/server/src/html/garden/mod.rs b/server/src/html/garden/mod.rs\nindex ee8696727e5473fe1fa913b8a7b9f3cb9c32d12f..69012a2c1d069e47fa611d63d3bd2a329fd6255d 100644\n--- a/server/src/html/garden/mod.rs\n+++ b/server/src/html/garden/mod.rs\n@@ -2,6 +2,7 @@\n \n mod access;\n mod browse;\n+mod copy;\n mod external;\n mod item;\n mod item_page;\n@@ -13,6 +14,7 @@ mod vote;\n #[cfg(test)]\n mod tests;\n \n+pub(crate) use copy::garden_ui_copy_rank;\n pub(crate) use external::external_resolver_status_markup;\n pub(crate) use pin::{encode_pin_cookie_value, GARDEN_PIN_COOKIE};\n pub(crate) use vote::vote_compare_post_success_js;\ndiff --git a/server/src/html/garden/render.rs b/server/src/html/garden/render.rs\nindex ca546693ecb2bb9ae5fb370f02b860c943f604b9..eed80e807d77e6b4eeeb0c3f38d6372e91ad2852 100644\n--- a/server/src/html/garden/render.rs\n+++ b/server/src/html/garden/render.rs\n@@ -25,6 +25,7 @@ use crate::{\n use super::{\n access::content_for_garden_view,\n browse::{garden_layout_meta, scoped_bc_path_for, GardenBrowsePath},\n+ copy::garden_rank_copy_button_markup,\n external::{external_frame_allowed, external_source_href, github_resolver_controls},\n item::{child_depth_from_uri, item_code_label, item_display_path, item_href},\n item_page::{build_item_page_view_model, sibling_nav_markup},\n@@ -196,6 +197,15 @@ pub(super) async fn render_scope_view(\n \" \"\n span class=\"muted\" { (format!(\"(depth {})\", model.child_depth)) }\n }\n+ @if total_children > 0 {\n+ \" \"\n+ (garden_rank_copy_button_markup(\n+ &nav,\n+ &item_display_path(&model.item),\n+ model.child_depth,\n+ false,\n+ ))\n+ }\n @if total_children >= 2 {\n \" \"\n a class=\"ont-vote-children-btn\" href=(vote_pool_href(&nav, &model.item)) {\ndiff --git a/server/src/html/garden/routes.rs b/server/src/html/garden/routes.rs\nindex 8a0499576d9093dbac0fffa1cf2ed88187e14acb..31b61355b1ec75645d405e16ab6abf8205c66380 100644\n--- a/server/src/html/garden/routes.rs\n+++ b/server/src/html/garden/routes.rs\n@@ -28,6 +28,7 @@ use crate::{\n use super::{\n access::{content_for_garden_view, room_not_found_page, room_scope_has_garden_content, user_can_view_room},\n browse::{GardenBrowsePath, scoped_bc_path_external},\n+ copy::garden_rank_copy_button_markup,\n item::{item_display_path, item_href},\n render::render_scope_view,\n };\n@@ -52,7 +53,13 @@ pub async fn garden_index(\n html! {\n @let root_path = OntologyPath::root();\n nav class=\"breadcrumb\" { (bc_path(&root_path)) }\n- h2 { \"paths\" }\n+ h2 {\n+ \"paths\"\n+ @if !(child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty()) {\n+ \" \"\n+ (garden_rank_copy_button_markup(&nav, \"~/\", 1, false))\n+ }\n+ }\n @if child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty() {\n p class=\"muted\" { \"no items yet\" }\n } @else {\n@@ -137,7 +144,13 @@ pub async fn external_garden_index(\n \"view-ontology view-ontology-light\",\n html! {\n nav class=\"breadcrumb\" { (bc_path_external(&ext_path)) }\n- h2 { \"external paths\" }\n+ h2 {\n+ \"external paths\"\n+ @if !(child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty()) {\n+ \" \"\n+ (garden_rank_copy_button_markup(&nav, \"\", 1, true))\n+ }\n+ }\n p class=\"muted\" { \"Items outside slug.social use the \" code { \"-/\" } \" prefix followed by the full \" code { \"https://…\" } \" URL (legacy \" code { \"-/host/path\" } \" still works).\" }\n @if child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty() {\n p class=\"muted\" { \"no external items indexed yet\" }\n@@ -272,7 +285,13 @@ pub async fn room_external_garden_index(\n \"view-ontology view-ontology-light\",\n html! {\n nav class=\"breadcrumb\" { (scoped_bc_path_external(&ext_path, &nav)) }\n- h2 { \"external paths\" }\n+ h2 {\n+ \"external paths\"\n+ @if !(child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty()) {\n+ \" \"\n+ (garden_rank_copy_button_markup(&nav, \"\", 1, true))\n+ }\n+ }\n @if child_rankings.component_rankings.is_empty() && child_rankings.unranked_items.is_empty() {\n p class=\"muted\" { \"no external items indexed yet\" }\n } @else {\ndiff --git a/server/src/html/mod.rs b/server/src/html/mod.rs\nindex d7014fc7f934e5b0c7fb47ebf00cb4ef50d306c2..645d54f2e117ba901e02ed958ada6ff69a78ae34 100644\n--- a/server/src/html/mod.rs\n+++ b/server/src/html/mod.rs\n@@ -37,8 +37,8 @@ pub(crate) use forum::{\n user_can_post_room, user_can_view_room,\n };\n pub(crate) use garden::{\n- encode_pin_cookie_value, external_resolver_status_markup, vote_compare_post_success_js,\n- GARDEN_PIN_COOKIE,\n+ encode_pin_cookie_value, external_resolver_status_markup, garden_ui_copy_rank,\n+ vote_compare_post_success_js, GARDEN_PIN_COOKIE,\n };\n pub use garden::{\n external_garden_index, external_ontology_path, garden_index, ontology_path,\ndiff --git a/server/src/html/ui_action.rs b/server/src/html/ui_action.rs\nindex 5cf3168fb74e7654215cd9ff8942c6ed63fd0002..7dc3db062954370b5504fc311c0ab24bab569f80 100644\n--- a/server/src/html/ui_action.rs\n+++ b/server/src/html/ui_action.rs\n@@ -118,6 +118,18 @@ pub enum HtmlUiAction {\n thread_tag: String,\n copy_btn_id: String,\n },\n+ /// Copy garden child ranking as a concise markdown list to the clipboard.\n+ CopyGardenRank {\n+ room: String,\n+ /// Parent item path (storage or display). Ignored when `external_hosts` is true.\n+ parent_path: String,\n+ #[serde(default = \"default_garden_rank_depth\")]\n+ depth: usize,\n+ copy_btn_id: String,\n+ /// When true, copy rankings for external host roots (`/-/` index), not parent children.\n+ #[serde(default)]\n+ external_hosts: bool,\n+ },\n /// Publish a private-room thread to the public forum (Manage only).\n GraduateThread {\n room: String,\n@@ -125,6 +137,10 @@ pub enum HtmlUiAction {\n },\n }\n \n+fn default_garden_rank_depth() -> usize {\n+ 1\n+}\n+\n #[derive(Debug, Error)]\n pub enum HtmlUiParseError {\n #[error(\"missing __rpc__ field\")]\n@@ -272,4 +288,57 @@ mod tests {\n }\n );\n }\n+\n+ #[test]\n+ fn copy_garden_rank_round_trip() {\n+ let template = serde_json::json!({\n+ \"action\": \"copy_garden_rank\",\n+ \"room\": \"public\",\n+ \"parent_path\": \"~/topic\",\n+ \"depth\": 2,\n+ \"copy_btn_id\": \"garden-rank-copy\",\n+ });\n+ let mut form = HashMap::new();\n+ form.insert(\n+ UI_RPC_FIELD.to_string(),\n+ serde_json::to_string(&template).unwrap(),\n+ );\n+ let a = parse_html_ui_from_form(&form).unwrap();\n+ assert_eq!(\n+ a,\n+ HtmlUiAction::CopyGardenRank {\n+ room: \"public\".into(),\n+ parent_path: \"~/topic\".into(),\n+ depth: 2,\n+ copy_btn_id: \"garden-rank-copy\".into(),\n+ external_hosts: false,\n+ }\n+ );\n+ }\n+\n+ #[test]\n+ fn copy_garden_rank_defaults_depth_and_external_hosts() {\n+ let template = serde_json::json!({\n+ \"action\": \"copy_garden_rank\",\n+ \"room\": \"public\",\n+ \"parent_path\": \"~/\",\n+ \"copy_btn_id\": \"garden-rank-copy\",\n+ });\n+ let mut form = HashMap::new();\n+ form.insert(\n+ UI_RPC_FIELD.to_string(),\n+ serde_json::to_string(&template).unwrap(),\n+ );\n+ let a = parse_html_ui_from_form(&form).unwrap();\n+ assert_eq!(\n+ a,\n+ HtmlUiAction::CopyGardenRank {\n+ room: \"public\".into(),\n+ parent_path: \"~/\".into(),\n+ depth: 1,\n+ copy_btn_id: \"garden-rank-copy\".into(),\n+ external_hosts: false,\n+ }\n+ );\n+ }\n }\ndiff --git a/server/tests/integration_ui.rs b/server/tests/integration_ui.rs\nindex d242abff5769cc704b3c8070d7456e5788c31a45..6b1475b773106a2dd3f326475c9fb4cc727f6b4b 100644\n--- a/server/tests/integration_ui.rs\n+++ b/server/tests/integration_ui.rs\n@@ -490,3 +490,71 @@ async fn test_vote_compare_post_rejects_over_max_ratio() {\n );\n }\n \n+#[tokio::test]\n+async fn test_copy_garden_rank_returns_clipboard_js_with_markdown() {\n+ let (addr, _tmp, _log, _handle) = create_test_server().await;\n+ let client = reqwest::Client::new();\n+ let bearer = test_bearer();\n+\n+ let seed = rpc_batch(\n+ &client,\n+ addr,\n+ Some(&bearer),\n+ serde_json::json!([{\n+ \"Post\": {\n+ \"room\": \"public\",\n+ \"thread_tag\": \"copy-rank-ui\",\n+ \"text\": \"# copy-rank-ui\\n\\n~/copy-a {a}\\n~/copy-b {b}\\n~/copy-c {c}\\n{vote}\\n~/copy-a 2:1 ~/copy-b\\n\",\n+ \"return_rank_diff\": false\n+ }\n+ }]),\n+ )\n+ .await;\n+ assert_eq!(seed[\"results\"][0][\"ok\"], true, \"seed: {:?}\", seed);\n+\n+ let page = client\n+ .get(format!(\"http://{addr}/~\"))\n+ .send()\n+ .await\n+ .unwrap();\n+ assert!(page.status().is_success());\n+ let html = page.text().await.unwrap();\n+ assert!(\n+ html.contains(\"id=\\\"garden-rank-copy\\\"\") && html.contains(\"copy_garden_rank\"),\n+ \"garden index should include copy button + action payload\"\n+ );\n+\n+ let rpc = serde_json::json!({\n+ \"action\": \"copy_garden_rank\",\n+ \"room\": \"public\",\n+ \"parent_path\": \"~/\",\n+ \"depth\": 1,\n+ \"copy_btn_id\": \"garden-rank-copy\",\n+ })\n+ .to_string();\n+ let resp = client\n+ .post(format!(\"http://{addr}/ui\"))\n+ .header(\"Authorization\", format!(\"Bearer {bearer}\"))\n+ .form(&[(\"__rpc__\", rpc.as_str())])\n+ .send()\n+ .await\n+ .unwrap();\n+ assert_eq!(resp.status(), reqwest::StatusCode::OK);\n+ assert_eq!(\n+ resp.headers()\n+ .get(reqwest::header::CONTENT_TYPE)\n+ .and_then(|v| v.to_str().ok()),\n+ Some(\"text/javascript; charset=utf-8\")\n+ );\n+ let js = resp.text().await.unwrap();\n+ assert!(\n+ js.contains(\"navigator.clipboard.writeText\") && js.contains(\"garden-rank-copy\"),\n+ \"expected clipboard JsBuilder snippet, got: {js}\"\n+ );\n+ assert!(\n+ js.contains(\"1. ~/copy-a\") && js.contains(\"2. ~/copy-b\") && js.contains(\"- ~/copy-c\"),\n+ \"expected concise markdown ranking in clipboard payload, got: {js}\"\n+ );\n+ assert!(js.contains(\"\\\"copied\\\"\"), \"expected button label flip to copied\");\n+}\n+\ndiff --git a/test/browser_public_garden.clj b/test/browser_public_garden.clj\nindex 5dd49f1f70c870e25a2a9f5348f0bdb85647e897..8ceb532c664f9fc3d6f66a451e5ea5eaa1671007 100644\n--- a/test/browser_public_garden.clj\n+++ b/test/browser_public_garden.clj\n@@ -73,6 +73,7 @@\n (core/with-playwright [pw]\n (core/with-browser [browser (core/launch-chromium pw {:headless true :channel \"chrome\"})]\n (core/with-context [ctx (core/new-context browser)]\n+ (core/context-grant-permissions! ctx [\"clipboard-read\" \"clipboard-write\"])\n (core/with-page [pg (core/new-page-from-context ctx)]\n (page/navigate pg (str base-url \"/login\"))\n (is (wait-for-text pg \"body\" \"@alice\" 15000) \"alice session after login\")\n@@ -84,7 +85,12 @@\n (is (wait-for-text pg \"body\" \"~/br-pub-b\" 10000) \"ranked list shows ~/br-pub-b\")\n (is (wait-for-text pg \"body\" \"unranked\" 10000) \"unranked section present\")\n (is (wait-for-text pg \"body\" \"~/br-pub-c\" 10000)\n- \"unranked list shows ~/br-pub-c\"))))))\n+ \"unranked list shows ~/br-pub-c\")\n+ (is (wait-for-text pg \"#garden-rank-copy\" \"copy\" 5000)\n+ \"garden ranking copy button visible\")\n+ (locator/click (page/locator pg \"#garden-rank-copy\"))\n+ (is (wait-for-text pg \"#garden-rank-copy\" \"copied\" 10000)\n+ \"copy button flips to copied after POST /ui eval\"))))))\n \n (finally\n (when-some [s @!server] (common/kill-server s))\n\n\nSide B — contributor: tommy-mor\nSide B — commit message:\n[893a2007] fullscreen?\n\nSide B — unified diff (full patch):\ndiff --git a/agents.md b/agents.md\nindex d9a924d2f77c444d9b112bbf37a480b963ace4f0..1f66ddbeddd1e40310947c7eb474c1ac4858bc42 100644\n--- a/agents.md\n+++ b/agents.md\n@@ -37,9 +37,9 @@ Strict **CSP** that blocks `eval` would break the current app. Other projects ma\n \n - **Non-morph `POST /ui` responses:** **`SetGardenPin`** returns **`303 See Other`** and **`Set-Cookie`** (same as **`POST /theme`**). Garden pin/unpin is a normal **``** — browser navigation applies cookies reliably (see **`test/browser_garden_pin.clj`**). Each **`__rpc__`** payload includes **`form_action: \"/ui\"`**; **`post_ui_html`** rejects mismatches to bind tokens to the UI endpoint.\n \n-- **`VoteComparePost`:** On success returns **`text/javascript`** that **morphs** **`#vote-compare-preview`** (new ingest card) and **`#vote-edge-history-region`** (recomputed edge list). Uses **`RpcResult::PostOk`**’s **`post_id`** / **`post_index`** for the card. **`__rpc__`** carries **`form_action: \"/ui\"`**; **`thread_tag`** and ratio fields come from the same form as **`$form`** holes.\n+- **`VoteComparePost`:** On success returns **`text/javascript`** that **morphs** **`#vote-compare-preview`** (new ingest card), **`#vote-edge-history-region`** (recomputed **`
      `** — ratios match **`left`/`right`** query order, bullets, sorted by strength toward **`left`** then newer). The compare **`GET`** page uses **`layout_full_bleed_chromeless`** (no breadcrumbs, no **`#controls`**, no **`slug-pin-hud`**; **`view-vote-compare-fullscreen`** full-width **`body`**). **`__rpc__`** carries **`form_action: \"/ui\"`**; **`thread_tag`** and ratio fields come from the same form as **`$form`** holes.\n \n-- **Garden pin / compare voting:** Cookie **`slug_garden_pin`** via **`set_garden_pin`**. Pairwise UI: **`GET /vote/compare?…`** / **`GET /r/:room_key/vote/compare?…`**. HUD: **`#slug-pin-hud`** when **`layout`** passes garden metadata on **`body`**; the label is **`POST /ui`** **`set_garden_pin`** **`clear:true`** (**`slug_ui.js`**), not a permalink to the item.\n+- **Garden pin / compare voting:** Cookie **`slug_garden_pin`** via **`set_garden_pin`**. Pairwise UI: **`GET /vote/compare?…`** / **`GET /r/:room_key/vote/compare?…`** (fullscreen **`GET`** page: no HUD; other garden pages). HUD (**`#slug-pin-hud`**): only when **`layout`** passes garden metadata on **`body`**; the label is **`POST /ui`** **`set_garden_pin`** **`clear:true`** (**`slug_ui.js`**), not a permalink to the item.\n \n **Rule of thumb:** New **CLI or API** verbs → `RpcCommand`. New **in-page morph or form-driven** behavior that only makes sense in the browser → `HtmlUiAction`. If both need the same operation, implement the real work once (e.g. call shared RPC helpers from `post_ui_html`) and keep the wire shapes separate.\n \ndiff --git a/server/src/api/ui_html.rs b/server/src/api/ui_html.rs\nindex 5aa6a86326ba3545d261322c010e02fe86ee1c57..696e7b3605e2e68aee0351116c494c2958506add 100644\n--- a/server/src/api/ui_html.rs\n+++ b/server/src/api/ui_html.rs\n@@ -254,7 +254,17 @@ async fn dispatch_ui_action(\n };\n n\n };\n- let js = vote_compare_post_success_js(state, &nav, &left_id, &right_id).await;\n+ let js = vote_compare_post_success_js(\n+ state,\n+ &nav,\n+ &room,\n+ &thread_tag,\n+ &left_id,\n+ &right_id,\n+ pid.as_str(),\n+ post_index,\n+ )\n+ .await;\n Response::builder()\n .status(StatusCode::OK)\n .header(header::CONTENT_TYPE, \"text/javascript; charset=utf-8\")\ndiff --git a/server/src/html/garden.rs b/server/src/html/garden.rs\nindex 121d9498e8cb93d4d001dc1bbce23d74fbb958f5..41f9e9c64a80a55a9d3ece2a6a1f592cf5e8d8dd 100644\n--- a/server/src/html/garden.rs\n+++ b/server/src/html/garden.rs\n@@ -22,17 +22,17 @@ use crate::{\n },\n events::ThreadCapability,\n path_types::ItemId,\n- reducer::{ContentState, ReducerState, ScopeId},\n+ reducer::{scope_from_room_wire, ContentState, ReducerState, ScopeId},\n scope_rank::{build_children_rankings, ChildrenRankings},\n state::AppState,\n timeago,\n };\n \n use super::{\n- bc_path, bc_path_external, bc_segment, cli_panel, layout, now_ms, ratio_pct,\n- render_linkified_with_embeds_in_scope, theme_from_jar, theme_next_from_uri,\n+ bc_path, bc_path_external, bc_segment, cli_panel, layout, layout_full_bleed_chromeless, now_ms,\n+ ratio_pct, render_linkified_with_embeds_in_scope, theme_from_jar, theme_next_from_uri,\n breadcrumb_path::{ExternalOntologyPath, OntologyPath},\n- forum::{ThreadNav},\n+ forum::{ingest_entry_markup, ThreadNav},\n };\n \n /// `GET /vote/compare` — pairs `left` / `right` query params with optional `thread`.\n@@ -89,25 +89,62 @@ fn canonical_edge_items(a: &ItemId, b: &ItemId) -> (ItemId, ItemId) {\n }\n }\n \n-/// Votes whose endpoints are exactly this unordered pair, oldest first.\n-fn votes_for_edge(content: &ContentState, a: &ItemId, b: &ItemId) -> Vec {\n+/// All votes whose endpoints are exactly this unordered pair (unsorted).\n+fn edge_vote_entries_for_pair(content: &ContentState, a: &ItemId, b: &ItemId) -> Vec {\n let (lo, hi) = canonical_edge_items(a, b);\n let lo_s = lo.as_str();\n let hi_s = hi.as_str();\n- let mut out: Vec = content\n+ content\n .item_votes\n .get(&lo)\n .into_iter()\n .flat_map(|q| q.iter())\n .filter(|v| {\n- let touches = (v.a.as_str() == lo_s && v.b.as_str() == hi_s)\n- || (v.a.as_str() == hi_s && v.b.as_str() == lo_s);\n- touches\n+ (v.a.as_str() == lo_s && v.b.as_str() == hi_s)\n+ || (v.a.as_str() == hi_s && v.b.as_str() == lo_s)\n })\n .cloned()\n- .collect();\n- out.sort_by_key(|v| v.ts);\n- out\n+ .collect()\n+}\n+\n+fn ratios_for_compare_page(v: &crate::reducer::VoteData, page_left: &ItemId, page_right: &ItemId) -> (i32, i32) {\n+ let pl = page_left.as_str();\n+ let pr = page_right.as_str();\n+ match (v.a.as_str(), v.b.as_str()) {\n+ (a, b) if a == pl && b == pr => (v.ratio_left, v.ratio_right),\n+ (a, b) if a == pr && b == pl => (v.ratio_right, v.ratio_left),\n+ _ => (v.ratio_left, v.ratio_right),\n+ }\n+}\n+\n+fn left_share_normalized(ratio_left: i32, ratio_right: i32) -> f64 {\n+ let l = ratio_left.max(0) as f64;\n+ let r = ratio_right.max(0) as f64;\n+ let sum = l + r;\n+ if sum <= 0.0 {\n+ 0.5\n+ } else {\n+ l / sum\n+ }\n+}\n+\n+/// Stronger preference for **`page_left` first**; ties **newer first**.\n+fn sort_votes_for_compare_display(\n+ mut votes: Vec,\n+ page_left: &ItemId,\n+ page_right: &ItemId,\n+) -> Vec {\n+ votes.sort_by(|va, vb| {\n+ let (ratio_left_a, ratio_right_a) = ratios_for_compare_page(va, page_left, page_right);\n+ let (ratio_left_b, ratio_right_b) = ratios_for_compare_page(vb, page_left, page_right);\n+ let sa = left_share_normalized(ratio_left_a, ratio_right_a);\n+ let sb = left_share_normalized(ratio_left_b, ratio_right_b);\n+ match sb.partial_cmp(&sa).unwrap_or(std::cmp::Ordering::Equal) {\n+ std::cmp::Ordering::Equal => vb.ts.cmp(&va.ts),\n+ o => o,\n+ }\n+ });\n+ votes\n }\n \n /// Number of vote ingests recorded for this unordered pair in `content` (same scope as ranking).\n@@ -144,39 +181,40 @@ fn vote_edge_history_markup(\n content: &ContentState,\n left: &ItemId,\n right: &ItemId,\n- nav: &ThreadNav,\n ) -> maud::Markup {\n- let votes = votes_for_edge(content, left, right);\n- let (lo, hi) = canonical_edge_items(left, right);\n+ let votes = edge_vote_entries_for_pair(content, left, right);\n+ let votes = sort_votes_for_compare_display(votes, left, right);\n+ let legend_left = item_display_path(left.as_str());\n+ let legend_right = item_display_path(right.as_str());\n html! {\n @if votes.is_empty() {\n p class=\"muted vote-edge-empty\" { \"no votes on this pair in this scope yet\" }\n } @else {\n- h3 class=\"vote-edge-history-title\" { \"votes on this edge\" }\n- ol class=\"vote-edge-history\" {\n+ h3 class=\"vote-edge-history-title\" {\n+ \"votes on this edge\"\n+ span class=\"vote-edge-history-axis muted\" { \" · \" (legend_left) \" : \" (legend_right) }\n+ }\n+ ul class=\"vote-edge-history\" {\n @for v in &votes {\n- @let (ratio_lo, ratio_hi) = if v.a == lo && v.b == hi {\n- (v.ratio_left, v.ratio_right)\n- } else {\n- (v.ratio_right, v.ratio_left)\n- };\n- @let pct = ratio_pct(ratio_lo, ratio_hi);\n- @let left_class = if lo.as_str() == left.as_str() { \"ratio-left current\" } else { \"ratio-left\" };\n- @let right_class = if hi.as_str() == left.as_str() { \"ratio-right current\" } else { \"ratio-right\" };\n- li class=\"vote-edge-history-row\" {\n+ @let (r_left, r_right) = ratios_for_compare_page(v, left, right);\n+ @let pct = ratio_pct(r_left, r_right);\n+ @let row_tip = format!(\n+ \"{}:{} counts toward {} (left of bar) vs {} (right of bar); #{} · @{}\",\n+ r_left,\n+ r_right,\n+ legend_left,\n+ legend_right,\n+ v.thread_tag,\n+ v.principal,\n+ );\n+ li class=\"vote-edge-history-row\" title=(row_tip) {\n div class=\"vote-edge-meta\" {\n- a href=(nav.garden_item_href(&lo)) {\n- code { (item_display_path(lo.as_str())) }\n- }\n- span class=\"vote-edge-ratio\" { (format!(\"{}:{}\", ratio_lo, ratio_hi)) }\n- a href=(nav.garden_item_href(&hi)) {\n- code { (item_display_path(hi.as_str())) }\n- }\n+ span class=\"vote-edge-ratio\" { (format!(\"{}:{}\", r_left, r_right)) }\n span class=\"muted\" { \" · #\" (v.thread_tag) \" · @\" (v.principal) }\n }\n- div class=\"ratio-bar vote-edge-bar\" {\n- div class=(left_class) style={(format!(\"width: {:.3}%;\", pct))} {}\n- div class=(right_class) style={(format!(\"width: {:.3}%;\", 100.0 - pct))} {}\n+ div class=\"ratio-bar vote-edge-bar\" aria-hidden=\"true\" {\n+ div class=\"ratio-left\" style={(format!(\"width: {:.3}%;\", pct))} {}\n+ div class=\"ratio-right\" style={(format!(\"width: {:.3}%;\", 100.0 - pct))} {}\n }\n @if !v.body.trim().is_empty() {\n div class=\"vote-edge-reason muted\" { (v.body.trim()) }\n@@ -192,14 +230,33 @@ fn vote_edge_history_markup(\n pub(crate) async fn vote_compare_post_success_js(\n state: &AppState,\n nav: &ThreadNav,\n+ room_wire: &str,\n+ thread_tag: &str,\n left: &ItemId,\n right: &ItemId,\n+ post_id: &str,\n+ post_idx: Option,\n ) -> String {\n let reduced = state.reduced.read().await;\n+ let scope = scope_from_room_wire(room_wire);\n+ let Some(ing) = reduced.ingests_by_id.get(post_id).cloned() else {\n+ drop(reduced);\n+ return \"console.warn('vote compare: new post not found');\".to_string();\n+ };\n+ let idx = match post_idx {\n+ Some(i) => i,\n+ None => reduced\n+ .try_thread_post_index_chronological(&scope, thread_tag, post_id)\n+ .unwrap_or(0),\n+ };\n+ let viewer = None::<&str>;\n+ let now = now_ms();\n let content = content_for_garden_view(&reduced, &nav.scope());\n- let edge_history = vote_edge_history_markup(content, left, right, nav);\n+ let edge_history = vote_edge_history_markup(content, left, right);\n+ let card = ingest_entry_markup(nav, thread_tag, idx, &ing, viewer, now, &reduced);\n drop(reduced);\n let mut b = JsBuilder::new();\n+ b = b.morph_inner_selector(\"#vote-compare-preview\", card);\n b = b.morph_inner_selector(\"#vote-edge-history-region\", edge_history);\n b.build()\n }\n@@ -1259,7 +1316,7 @@ async fn vote_compare_inner(\n .filter(|t| !t.is_empty())\n .unwrap_or_else(|| pick_autothread_for_vote_pair(content, &left, &right));\n let thread_tags = vote_thread_tags_for_pair(content, &left, &right);\n- let edge_history = vote_edge_history_markup(content, &left, &right, &nav);\n+ let edge_history = vote_edge_history_markup(content, &left, &right);\n drop(reduced);\n \n let title = format!(\"vote — {} vs {}\", item_display_path(left.as_str()), item_display_path(right.as_str()));\n@@ -1282,15 +1339,6 @@ async fn vote_compare_inner(\n .expect(\"vote compare rpc json\");\n \n let body = html! {\n- nav class=\"breadcrumb\" {\n- a href=\"/\" { \"slug.social\" }\n- @let vote_bc_href = if nav.room_path_prefix_for_vote_compare().is_empty() {\n- \"/vote/compare\".to_string()\n- } else {\n- format!(\"{}/vote/compare\", nav.room_path_prefix_for_vote_compare())\n- };\n- (bc_segment(\"vote\", &vote_bc_href, true))\n- }\n section class=\"vote-compare-shell\" {\n h2 { \"compare\" }\n div class=\"vote-compare-pair\" {\n@@ -1305,6 +1353,10 @@ async fn vote_compare_inner(\n div id=\"vote-edge-history-region\" {\n (edge_history)\n }\n+ div class=\"vote-compare-preview-wrap\" {\n+ h3 { \"your vote (after post)\" }\n+ div id=\"vote-compare-preview\" class=\"vote-compare-preview\" {}\n+ }\n @if can_post {\n form id=\"vote-compare-form\" method=\"POST\" action=\"/ui\" {\n input type=\"hidden\" name=(UI_RPC_FIELD) value=(rpc_json);\n@@ -1342,16 +1394,12 @@ async fn vote_compare_inner(\n }\n };\n \n- let (gr, gp) = garden_layout_meta(&nav);\n- let page = layout(\n+ let page = layout_full_bleed_chromeless(\n &title,\n- \"view-ontology view-ontology-light view-vote-compare\",\n+ \"view-ontology view-ontology-light view-vote-compare view-vote-compare-fullscreen\",\n body,\n- None,\n theme_from_jar(&jar),\n &theme_next_from_uri(&uri),\n- Some(&gr),\n- Some(&gp),\n );\n Html(page.into_string()).into_response()\n }\n@@ -1388,10 +1436,40 @@ mod tests {\n }));\n }\n \n+ #[test]\n+ fn vote_edge_compare_sorts_rows_by_strength_for_page_left() {\n+ use super::{\n+ content_for_garden_view, edge_vote_entries_for_pair, ratios_for_compare_page,\n+ sort_votes_for_compare_display,\n+ };\n+ use crate::path_types::ItemId;\n+ let mut reduced = ReducerState::default();\n+ apply_ingest(\n+ &mut reduced,\n+ 1,\n+ \"@00000000-0000-0000-0000-000000000000:test:local/test\\n\\\n+ ~/topic {root}\\n\\\n+ ~/topic/a {alpha}\\n\\\n+ ~/topic/b {beta}\\n\\\n+ ~/topic/a 1:9 ~/topic/b {weak for a}\\n\\\n+ ~/topic/a 8:2 ~/topic/b {strong for a}\\n\",\n+ );\n+ let content = content_for_garden_view(&reduced, &ScopeId::Public);\n+ let page_left = ItemId::parse(\"~/topic/a\").unwrap().normalized_storage();\n+ let page_right = ItemId::parse(\"~/topic/b\").unwrap().normalized_storage();\n+ let raw = edge_vote_entries_for_pair(content, &page_left, &page_right);\n+ assert_eq!(raw.len(), 2);\n+ let sorted = sort_votes_for_compare_display(raw, &page_left, &page_right);\n+ let (r0, _) = ratios_for_compare_page(&sorted[0], &page_left, &page_right);\n+ assert_eq!(r0, 8, \"stronger left weight should sort first\");\n+ let (r1, _) = ratios_for_compare_page(&sorted[1], &page_left, &page_right);\n+ assert_eq!(r1, 1);\n+ }\n+\n #[test]\n fn edge_vote_count_for_pair_matches_votes_for_edge_len() {\n use super::{\n- content_for_garden_view, edge_vote_count_for_pair, votes_for_edge,\n+ content_for_garden_view, edge_vote_count_for_pair, edge_vote_entries_for_pair,\n };\n use crate::path_types::ItemId;\n let mut reduced = ReducerState::default();\n@@ -1410,9 +1488,9 @@ mod tests {\n let b = ItemId::parse(\"~/topic/b\").unwrap().normalized_storage();\n assert_eq!(\n edge_vote_count_for_pair(content, &a, &b),\n- votes_for_edge(content, &a, &b).len()\n+ edge_vote_entries_for_pair(content, &a, &b).len()\n );\n- assert_eq!(votes_for_edge(content, &a, &b).len(), 2);\n+ assert_eq!(edge_vote_entries_for_pair(content, &a, &b).len(), 2);\n }\n \n #[test]\ndiff --git a/server/src/html/mod.rs b/server/src/html/mod.rs\nindex 40c15debe91a708da24dc1dec2ece2a852dd6381..f57b66f510dfaade1b656990fb2cbb30d16e5bf1 100644\n--- a/server/src/html/mod.rs\n+++ b/server/src/html/mod.rs\n@@ -304,6 +304,28 @@ pub(super) fn layout(\n layout_embed_controls(title, view, body, views, theme, theme_next, garden_room_wire, garden_path_prefix, true)\n }\n \n+/// Minimal document shell: no bottom controls, no garden HUD data attributes (`data-garden-room` /\n+/// `data-garden-prefix` empty). For routes that own the full viewport (e.g. vote compare).\n+pub(super) fn layout_full_bleed_chromeless(\n+ title: &str,\n+ view: &str,\n+ body: Markup,\n+ theme: &str,\n+ theme_next: &str,\n+) -> Markup {\n+ layout_embed_controls(\n+ title,\n+ view,\n+ body,\n+ None,\n+ theme,\n+ theme_next,\n+ None,\n+ None,\n+ false,\n+ )\n+}\n+\n fn layout_embed_controls(\n title: &str,\n view: &str,\ndiff --git a/server/static/theme_default.css b/server/static/theme_default.css\nindex 9178f0629cfb868348740e6dea1626dc6afb8345..a441c4f79d8cf88f5a8240f9992f47dbbd1ab46b 100644\n--- a/server/static/theme_default.css\n+++ b/server/static/theme_default.css\n@@ -1054,6 +1054,26 @@ body.view-vote-compare #vote-explain:focus {\n body.view-vote-compare #vote-compare-form button[type=\"submit\"] {\n margin-top: 6px;\n }\n+\n+body.view-vote-compare-fullscreen {\n+ max-width: none;\n+ width: 100%;\n+ margin-left: 0;\n+ margin-right: 0;\n+ padding: clamp(8px, 2.5vw, 28px);\n+ padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));\n+ padding-top: max(8px, env(safe-area-inset-top, 0px));\n+ min-height: 100vh;\n+ min-height: 100dvh;\n+ box-sizing: border-box;\n+}\n+body.view-vote-compare-fullscreen .vote-compare-shell {\n+ max-width: none;\n+ width: 100%;\n+ box-sizing: border-box;\n+ margin: 0;\n+}\n+\n .vote-edge-history-title {\n font-size: 12px;\n letter-spacing: 0.06em;\n@@ -1061,9 +1081,15 @@ body.view-vote-compare #vote-compare-form button[type=\"submit\"] {\n color: var(--meta);\n margin: 16px 0 8px;\n }\n-ol.vote-edge-history {\n+.vote-edge-history-axis {\n+ text-transform: none;\n+ letter-spacing: normal;\n+ font-size: 13px;\n+}\n+ul.vote-edge-history {\n margin: 0;\n- padding-left: 1.2em;\n+ padding-left: 1.35em;\n+ list-style-type: disc;\n }\n li.vote-edge-history-row {\n margin: 10px 0;\ndiff --git a/server/static/theme_retro.css b/server/static/theme_retro.css\nindex f2d0ddee113995817a7f9bfa8500b2f5e7d81cf4..373f15bbd75b62604cdd14b9f0fadda2d6176991 100644\n--- a/server/static/theme_retro.css\n+++ b/server/static/theme_retro.css\n@@ -176,3 +176,21 @@ nav.breadcrumb.ont-sibling-nav span.ont-sibling-nav-group-sep {\n border-right: none;\n border-top: none;\n }\n+\n+body.view-vote-compare-fullscreen {\n+ max-width: none;\n+ width: 100%;\n+ margin: 0;\n+ padding: clamp(8px, 2.5vw, 20px);\n+ padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));\n+ padding-top: max(8px, env(safe-area-inset-top, 0px));\n+ min-height: 100vh;\n+ min-height: 100dvh;\n+ box-sizing: border-box;\n+}\n+body.view-vote-compare-fullscreen .vote-compare-shell {\n+ max-width: none;\n+ width: 100%;\n+ box-sizing: border-box;\n+ margin: 0;\n+}\ndiff --git a/server/static/theme_retro_craft.css b/server/static/theme_retro_craft.css\nindex efaeed06d01fd835df0621f4c621c8f034c8b536..0871e3126c656ba534306cdc3f405f802d10b589 100644\n--- a/server/static/theme_retro_craft.css\n+++ b/server/static/theme_retro_craft.css\n@@ -785,6 +785,24 @@ body.view-ontology.view-vote-compare .vote-compare-shell {\n border-radius: 3px;\n box-shadow: 0 1px 0 rgba(26, 24, 20, 0.06);\n }\n+body.view-ontology.view-vote-compare.view-vote-compare-fullscreen .vote-compare-shell {\n+ max-width: none;\n+ width: 100%;\n+ min-height: calc(100dvh - clamp(20px, 5vw, 56px));\n+ margin: 0;\n+ box-sizing: border-box;\n+}\n+body.view-vote-compare-fullscreen {\n+ max-width: none !important;\n+ width: 100%;\n+ margin: 0 !important;\n+ padding: clamp(6px, 2vw, 1.75rem);\n+ padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));\n+ padding-top: max(6px, env(safe-area-inset-top, 0px));\n+ min-height: 100vh;\n+ min-height: 100dvh;\n+ box-sizing: border-box;\n+}\n body.view-ontology.view-vote-compare .vote-compare-shell > h2 {\n margin-top: 0;\n font-size: 0.7rem;\n@@ -910,9 +928,16 @@ body.view-ontology .vote-edge-history-title {\n color: #5c574e;\n margin: 0 0 0.5rem;\n }\n-body.view-ontology ol.vote-edge-history {\n+body.view-ontology .vote-edge-history-axis {\n+ text-transform: none;\n+ letter-spacing: normal;\n+ font-size: 0.82rem;\n+ font-weight: 400;\n+}\n+body.view-ontology ul.vote-edge-history {\n margin: 0;\n- padding-left: 1.1rem;\n+ padding-left: 1.25rem;\n+ list-style-type: disc;\n }\n body.view-ontology li.vote-edge-history-row {\n margin: 0.65rem 0;\ndiff --git a/test/browser_vote_compare.clj b/test/browser_vote_compare.clj\nindex 26fcff8bceb0c10bcd5ddfdae1aa145b56b7a0d1..78fc40c160c84478ab8ee0d953b9ed878b4c712f 100644\n--- a/test/browser_vote_compare.clj\n+++ b/test/browser_vote_compare.clj\n@@ -72,13 +72,13 @@\n (is (wait-for-text pg \"body\" \"@alice\" 15000) \"alice session after login\")\n (page/navigate pg cmp-url)\n (is (wait-for-text pg \".vote-compare-shell\" \"compare\" 15000) \"vote compare shell\")\n- (is (wait-for-text pg \"ol.vote-edge-history\" \"seed edge vote\" 15000)\n+ (is (wait-for-text pg \"ul.vote-edge-history\" \"seed edge vote\" 15000)\n \"edge history lists canonical-order vote\")\n (locator/fill (page/locator pg \"#vote-explain\") \"because playwright says so\")\n (locator/click (page/locator pg \"#vote-compare-form button[type=submit]\"))\n (is (wait-for-text pg \"#vote-compare-preview\" \"because playwright\" 20000)\n \"preview region morphs new post card\")\n- (is (wait-for-text pg \"ol.vote-edge-history\" \"because playwright\" 20000)\n+ (is (wait-for-text pg \"ul.vote-edge-history\" \"because playwright\" 20000)\n \"new vote appears in edge history after morph\"))))))\n \n (finally\n","role":"user"}],"model":"openai/gpt-chat-latest"}