Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace Folder Initialization to Distinguish Between Empty and Non-empty Directories #41

Open
1 task
kedarchandrayan opened this issue Apr 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kedarchandrayan
Copy link
Member

kedarchandrayan commented Apr 10, 2024

Description

In the current version of Sirji, it is not aware of existing files in the workspace folder, unless specified in the problem statement. Due to this, it defaults to a greenfield development rather than building up on the existing code.

To better accommodate both scenarios (new projects and continuation of existing projects), Sirji should be enhanced to recognize whether a selected workspace folder is empty or not and respond appropriately:

  • Case 1: Empty Workspace Folder

    • If the workspace folder is selected and found to be empty, treat it as the beginning of a new greenfield development project. This scenario is suitable for users wishing to start a fresh project.
  • Case 2: Non-empty Workspace Folder

    • If the workspace folder is selected and found to have existing files and folders, prompt the user with a confirmation message. This message should inform them that they are about to work in a non-empty workspace. It is essential to alert the user to prevent unintentional modification of existing files.

Expected Behavior After Enhancement:

  • If the user confirms the dialogue about a non-empty workspace, Sirji should proceed with accessing the existing files, allowing the user to build upon them.
  • If the workspace is empty or the user confirms starting anew, the project will be treated as a greenfield development.

Tasks

  • Confirmation UI - TODO elaborate
@kedarchandrayan kedarchandrayan added the enhancement New feature or request label Apr 10, 2024
@kedarchandrayan kedarchandrayan changed the title Workspace Folder Initialization Workspace Folder Initialization to Distinguish Between Empty and Non-empty Directories Apr 18, 2024
@kedarchandrayan kedarchandrayan moved this to Future in Sirji Roadmap Apr 20, 2024
@kedarchandrayan kedarchandrayan moved this from Backlog to Week of April 22 in Sirji Roadmap Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Improve Reliability
Development

No branches or pull requests

4 participants