Remove unused metadata fields from DetailTemplate struct
Intent: Strip four fields (updated_at, head_sha, merge_base_sha, merge_commit_sha) from the Askama template struct so the Rust compiler no longer requires them and the template cannot reference stale data.
Affected files: crates/pika-news/src/web.rs
@@ -305,13 +305,9 @@ struct DetailTemplate {
branch_name: String,
title: String,
target_branch: String,
- updated_at: String,
branch_state: String,
tutorial_status: String,
ci_status: String,
- head_sha: String,
- merge_base_sha: String,
- merge_commit_sha: Option<String>,
Four fields are dropped from DetailTemplate:
updated_at: Stringhead_sha: Stringmerge_base_sha: Stringmerge_commit_sha: Option<String>
These backed the .branch-meta-grid UI block that is being removed in the template. Removing them from the struct ensures a compile-time guarantee that no template path still references them.