You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two High-tier audit items the per-day sprint slices missed.
A4 (latent SQL-quoting bug):
The fallback `current_driver_id.clone().unwrap_or_else(|| "postgres".to_string())`
was duplicated at 7 call sites across browse.rs and row_ops.rs. If anything
ever produced a non-Postgres connection without setting current_driver_id,
quote_ident would silently corrupt SQL.
Collapsed to a single `App::driver_id(&self) -> &str` helper in app/mod.rs
that logs `tracing::warn!` on the fallback path so the bug becomes visible
the first time it triggers. Call sites now just `self.driver_id().to_string()`.
A5 (i18n correctness):
`set_status_page` reverse-engineered caller intent by sniffing localised
title strings:
if title.eq_ignore_ascii_case("failed") || title.to_lowercase().contains("error")
Breaks the moment a translation uses different vocabulary for "Failed" /
"Error" / "No connection". Replaced with an explicit `StatusKind` enum
(Info / Error / Disconnected) and `kind.icon()` returning the symbolic
icon name. All 4 callers updated to pass the kind explicitly:
- browse.rs `on_load_failed` → Error
- connection.rs `on_connected` → Info
- editor_tabs.rs `on_open_editor` → Disconnected
- editor_tabs.rs `show_welcome_or_grid_after_editor_close` → Info
Verification:
- cargo clippy --workspace --all-targets -- -D warnings: zero warnings
- cargo test --workspace --lib: 43 pass, 1 ignored
- cargo fmt --all -- --check: clean
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments