git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commit69669d62a3a9e4de1df35d6f113331d06e29ed4b
parenta05590111d
authorLucas Galante <[email protected]>
date2026-08-14 01:38
fix: pass sec_focused in the accounts page test

573bf43 added the `sec_focused: &[bool]` parameter to every page's `view` for
the ctrl-nav section highlight, and updated the audio and packages tests, but
missed this one — so the crate's tests have not compiled since (E0061 plus an
E0277 from `&mut layout` landing in the `sec_focused` slot), which also broke
`cargo test --workspace`.

Accounts builds a single spanned section and reads `sec_focused.first()`, so
`&[false]` matches the shape audio/packages already use.

Co-Authored-By: Claude <[email protected]>

 src/pages/accounts.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/accounts.rs b/src/pages/accounts.rs
index e02677e..b2557b0 100644
--- a/src/pages/accounts.rs
+++ b/src/pages/accounts.rs
@@ -767,7 +767,7 @@ mod tests {
         let mut state = AccountsState::default_mock();
         state.loaded = true;
         let mut layout = AdaptiveGrid::new(260.0, 20.0);
-        let pc = view(&mut state, 10.0, 20.0, 800.0, 600.0, &mut layout, &mut cce_ui::context::UiContext::new());
+        let pc = view(&mut state, 10.0, 20.0, 800.0, 600.0, &[false], &mut layout, &mut cce_ui::context::UiContext::new());
         println!("PC BUTTONS COUNT: {}", pc.buttons.len());
         for (i, (btn, _, _)) in pc.buttons.iter().enumerate() {
             let base = btn.base();