gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Can't back out of adding new project

Open mkroening opened this issue 1 year ago • 9 comments

On macOS, after clicking “Add new project” and selecting a directory, you are prompted to select a target branch. There is a “Back” button next to “Let's go!”, but it does not work. Even after restarting the app, I can't leave the screen.

Resetting the app with rm -rf ~/Library/Application\ Support/com.gitbutler.app works.

mkroening avatar Feb 05 '24 12:02 mkroening

I can't reproduce it on my side, is it still an issue?

OlegGulevskyy avatar Feb 12 '24 21:02 OlegGulevskyy

Yeah, I'm also having the same issue.

Kamaropoulos avatar Feb 14 '24 10:02 Kamaropoulos

I can't reproduce it on my side, is it still an issue?

Sorry for not responding. Yeah, this is still an issue. How can I help you reproduce this?

mkroening avatar Feb 14 '24 14:02 mkroening

I am not really sure, I was just shopping around for ways to contribute to GB and tried to reproduce it without any luck. I will try again later but if anything comes to mind, please don't hesitate. Maybe someone from GB team will have some thoughts and pointers as well?

OlegGulevskyy avatar Feb 14 '24 14:02 OlegGulevskyy

I've had a similar issue. One thing I've noticed is that even if I close the app, and open it back up, the app stays on the ProjectSetup page. image

I'm not familiar with the source code, but I wonder if it's because:

  1. "/" seems to be determined as the ProjectSetup page after attempting to set up a project
  2. Without history, the back button directs to "/" (source)

alexcameron89 avatar Feb 17 '24 15:02 alexcameron89

I noticed the same, the issue is still present as of Version 0.11.3 (20240419.070253) .

A workaround I employ is to hit "Let's go!", then try the Authentication with the "Auto" option. Since this usually takes longer than I am willing to wait, I go "Back" all the way until the UI drops into the worktree view of the newly added repository.

Byron avatar Apr 21 '24 13:04 Byron

I have an identical bug on latest .deb build on ubuntu... I got to the 'project setup' page after selecting a valid, but undesirable git repo to use, and tried to clik 'Back' and the back button doesn't work. closing and re-opening the app now brings me to the same screen with the same back button still not working. I dont want to preess continue, as its the 'wrong repo'. one of these worked [ linux ]: rm -rf ~/.config/com.gitbutler.app/ rm -rf ~/.cache/git-butler/ rm -rf ~/.local/share/git-butler/ rm -rf ~/.local/share/com.gitbutler.app/ rm -rf ~/.cache/com.gitbutler.app/

davidbuzz avatar Jul 13 '24 00:07 davidbuzz

From what I understand, when clicking “Add new project”, the new project is already created in the projects list. So when the root page is opened, by either "Back" or reopening GitButler, it will redirect to project.

So maybe a solution would be to delete the partially-added project when clicking "Back" (recently changed to "Cancel")?

Comnir avatar Aug 10 '24 09:08 Comnir

I don't have much experience with frontend/JS development, but I made an attempt to implement the suggestion - #4671

Comnir avatar Aug 10 '24 17:08 Comnir