KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
419 stars 35 forks source link

Maybe initialise git when creating a new project. #253

Open Irev-Dev opened 1 year ago

Irev-Dev commented 1 year ago

Related to #159

When users create a new project we're actually creating a new directory with a single file main.kc in it. This gives a us an opportunity to initialise a git repo at the same time, but maybe this is a bad idea because we don't have immediate plans to support more git features and could be overwhelming to MEs who no nothing about SWE, and this is just another thing on top.

One way we could smooth over this is 1) Only show the toggle for initing repos for users that already have git installed, that way from the start we only show to users who know what git is. 2) Then for users that have git install and have opted into initialising repos, we can (maybe) add a button/action that opens a terminal window cded into the current project dir, so there an easy path to get to git commit ... for users who know what they're doing without any git UI features in the app.

I put "maybe" in 2) because I'm not sure how easy that is to do from tauri and on different OS If we were to do this, all of it would be hidden in the web-app

Irev-Dev commented 1 year ago

@franknoirot and I were talking about this in a slack thread. https://kittycadworkspace.slack.com/archives/C04KFV6NKL0/p1692031454573319

Do you think this is a good idea @jessfraz? It feels like a good call from a local first perspective and respecting power users, but a bad idea because it's really not necessary right now.

franknoirot commented 1 year ago

Independent of if we do this now or later:

So even if we do this we only really support "auto-save" for Git power users for a while, but it unlocks us being able to do the following in the future:

Irev-Dev commented 1 year ago

"Install Git and add to projects" to show that we're about to install some software

Installing git ourselves sounds troublesome, I'm not sure how easy it is with different OS. My inclination is to just point them to https://git-scm.com/downloads, but that's without having looked into it.