fn apply_tab_reordered( wstore: &WaveStore, workspace_id: &str, tab_id: &str, new_index: u32, ) -> Result<(), Box<dyn Error>>