Yashasv-Prajapati / Docify

5 stars 2 forks source link

Feature/cs3 183 view last uml page #174

Closed nishad-dhuri-05 closed 1 month ago

nishad-dhuri-05 commented 1 month ago

Added view latest uml option. Also made some fixes to the uml generate route.

linear[bot] commented 1 month ago
CS3-183 View Last UML Page

1. Make a Page that shows the user the last UML for a particular project. 2. Give the option to user to view the last generated UML in the three dot drop-down in the project card by going to that page. 3. The branch name for the last UML generated is saved in the db in the project schema, you simply have to fetch the branch name from db and then use Github APIs similar to depedency_checker Page.tsx component. 4. In other words, you have to fetch the image url from Github and show it on our page. Maybe take help from atharva02.cj, he has done it for the first part, when the UML is first generated. To simplify this, do not make a new Page.tsx component, in the Page.tsx component of the /uml/projectId/page.tsx simply check if the output.png exists in the .docify-assets in the particular branch_name and if it does show that, else call the API handler that makes it, Look at file app/code_coverage/projectId/page.tsx