Add pop up for create new project option beside the project selection drop down
Use case and problem description:
- To create a project, user has to click on create project option in the dropdown and weird alert is being displayed to ask the project name and while creating the projects, system is not checking if the project with the same name exists or not. This could be a huge issue in terms of data storage and data duplication.
Solution:
-
Give users an input option next to the select project dropdown that will be used to input the project name and create button to verify if the project is not already existing and create it.
-
Removed the Create Project option as a drop down in the project list
-
Added new template to creating a project. New file named: CreateProjectPopup.svelete
-
Updated api.js file's createProject() function to return message instead of null
-
Updated devika.py file's create_project() to check if the project already exists with the given name.
- If the project with the given name already exists, User will be notified that the Project already exists
- If the project with the given is not present, System will create one and notify user accordingly
-
Updated ControlPanel.svelte file to remove the Create Project option from the dropdown and to add an input bar beside the dropdown.
Here the full working path:
Project Creation:
Initial Screen:
Enter the Project Name:
Click on Create
Project Created Notification
Project Selected
Testing with the same project name:
Enter the same name as before
Project already exists notification
#24
#24 merged!
@rajakumar05032000 current system allows duplicate projects to be created in the backend although duplicates are hidden in the project selector. I've verified #24 pull request and it's also allowing duplicates. This pull request contains a logic to check the duplicate projects while creating.
Why would you do in create project a new search on what projects there are and go through them all, Is there no function or db request to see what all current project are?
you can create a project with the same name not a problem currently. also, your PR doesn't align with the current main. currently closing it cause newUI is coming