Yashasv-Prajapati / Docify

5 stars 2 forks source link

Feature/cs3 108 select type of project on import project #95

Closed anushthaPrakash closed 3 months ago

anushthaPrakash commented 3 months ago
Screenshot 2024-03-12 165236 Screenshot 2024-03-12 165219

issue URL : https://linear.app/t05-cs305/issue/CS3-108/select-type-of-project-on-import-project

linear[bot] commented 3 months ago
CS3-108 Select Type of Project on Import Project

Expected behaviour 1. When import is clicked beside any project in /new page -> a pop up modal should appear which asks the user the type of Project to choose, having two buttons, Continue and Cancel. **Also warn the user that only Java and Python projects are supported for now and running any of our features on projects which are not in Java or Python will result in unexpected behaviour.** After selecting the Project Type 1. Continue is clicked -> Call the API handler made in issue [CS3-94](https://linear.app/t05-cs305/issue/CS3-94/import-project-nextjs-api)(for now you can keep any name in the URL of fetch/axios request but make sure to pass the correct body and other headers), and after success redirect to /dashboard page. On failure send to /error page. 2. Cancel is clicked -> Remove the pop up modal and do nothing, stay on the /new page. **Use shadcn components for UI**