fix(report): gate admin-queue helpers behind standalone (LC-22 / LC-334) #349
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/lets-chat!349
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lc-22-routes-reports-appstate-drift"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI's clippy on main now fails with -D dead-code because the admin-queue
helpers in routes/report.rs (build_report_views, render_reports_oob,
label_for, excerpt) have no callers in the saas build: their only call
sites (routes/admin.rs + ws.rs::render_admin_reports) are #[cfg(standalone)]
but the helpers were unguarded.
Mirror the gate on the helpers + their standalone-only view imports
(AdminReportsOob, ReportView). The submit-side handlers (get_report_modal,
post_report, broadcast_reports_changed) stay in both builds because they
are wired in routes/mod.rs unconditionally.
LC-334 shipped a few hours before the LC-22 cutover landed; the saas
clippy run did not surface this in CI before main accepted both. Fix
forward.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com