Wire dashboard + new worktree button to fork from default_branch #48
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/048-wire-dashboard-new-worktree-button-to-fork-fro"
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?
Wire dashboard + new worktree button to fork from default_branch
Along the way:
Touches 7 files:
ckeditor/src/app_layout/dashboard_dispatch.rs,ckeditor/src/app_layout/panel_content.rs,ckeditor/src/logging.rs,ckeditor/src/main.rs,ckeditor/src/panels/zero_buffer.rs,ckeditor/src/project.rsand 1 more.Happy with this. I ran the suite against the branch and it is green,
ckeditor/src/worktree_command.rsincluded.@ -99,0 +109,4 @@////// Must be called after the logger has been initialised, otherwise the panic/// message is dropped on the floor by the global no-op logger.pub fn install_panic_hook() {install_panic_hookis public. Does anything outside the crate call it, or is it pub because that was easier? Every public item is a promise.@ -37,3 +41,3 @@/// Create a worktree via git (async). If `start_ai`, store as pending so/// we spawn claude when `WorktreeCreated` arrives.fn wt_create(&mut self, name: &str, start_ai: bool, _ctx: &egui::Context) {fn wt_create(wt_createreads, decides and writes in one function. The deciding part is the piece I would want to test on its own. Worth splitting?Split. The decision in
wt_createis a pure function now, with its own tests inckeditor/src/worktree_command.rs.Nothing outside calls
install_panic_hook. It is pub(crate) inckeditor/src/logging.rsnow.