chore(web): remove htmx legacy code, fix cargo publish missing ui/dist#473
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoves legacy server-rendered web UI modules and assets (routes, helpers, CSS, JS), keeps logs SSE streaming only with a local html_escape helper, updates Cargo.toml to include ChangesWeb UI Modernization
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR removes the legacy htmx/server-side-rendered web UI in favour of a pre-built SPA served from
Confidence Score: 5/5Safe to merge — the change is a targeted deletion of dead code with a single functional fix to the cargo publish asset path. All deleted code is legacy server-side rendering being replaced by the SPA frontend. The one functional change ( No files require special attention. Important Files Changed
Reviews (7): Last reviewed commit: "fix(logs): remove html_escape from SSE s..." | Re-trigger Greptile |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/procs.rs (1)
576-596: 💤 Low valueRemove unnecessary
#[allow(dead_code)]and empty impl block.
ExtendedProcessStatsis a public struct actively returned byget_extended_stats()and consumed by the API routes. The#[allow(dead_code)]attribute has no effect on apub structwithpubfields since public items don't trigger dead-code warnings. The empty impl block is just noise.♻️ Suggested cleanup
/// Extended process stats with more detailed information -#[allow(dead_code)] #[derive(Debug, Clone)] pub struct ExtendedProcessStats { pub name: String, pub exe_path: Option<String>, pub cwd: Option<String>, pub environ: Vec<String>, pub status: String, pub cpu_percent: f32, pub memory_bytes: u64, pub virtual_memory_bytes: u64, pub uptime_secs: u64, pub start_time: u64, pub disk_read_bytes: u64, pub disk_write_bytes: u64, pub parent_pid: Option<u32>, pub thread_count: usize, pub user_id: Option<String>, } - -impl ExtendedProcessStats {}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/procs.rs` around lines 576 - 596, Remove the unnecessary #[allow(dead_code)] attribute and the empty impl block for ExtendedProcessStats: locate the public struct ExtendedProcessStats (used by get_extended_stats() and API routes), delete the leading #[allow(dead_code)] annotation and remove the empty impl ExtendedProcessStats {} block to clean up noise while preserving the pub fields and struct definition.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/procs.rs`:
- Around line 576-596: Remove the unnecessary #[allow(dead_code)] attribute and
the empty impl block for ExtendedProcessStats: locate the public struct
ExtendedProcessStats (used by get_extended_stats() and API routes), delete the
leading #[allow(dead_code)] annotation and remove the empty impl
ExtendedProcessStats {} block to clean up noise while preserving the pub fields
and struct definition.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 45f42d7b-0910-4871-b80d-a615c3227a41
⛔ Files ignored due to path filters (4)
Cargo.lockis excluded by!**/*.locksrc/web/assets/favicon.icois excluded by!**/*.icosrc/web/assets/htmx.min.jsis excluded by!**/*.min.jssrc/web/assets/logo.pngis excluded by!**/*.png
📒 Files selected for processing (12)
Cargo.tomlsrc/procs.rssrc/web/assets/htmx-sse.jssrc/web/assets/logs.jssrc/web/assets/style.csssrc/web/helpers.rssrc/web/mod.rssrc/web/routes/config.rssrc/web/routes/daemons.rssrc/web/routes/index.rssrc/web/routes/logs.rssrc/web/routes/mod.rs
💤 Files with no reviewable changes (9)
- src/web/routes/config.rs
- src/web/assets/htmx-sse.js
- src/web/helpers.rs
- src/web/assets/style.css
- src/web/routes/index.rs
- src/web/assets/logs.js
- src/web/routes/daemons.rs
- src/web/routes/mod.rs
- src/web/mod.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
fixes https://github.com/endevco/pitchfork/actions/runs/27100027149/job/79978936264
Summary by CodeRabbit
Refactor
Chores