KamandPrompt / CodeManiacs

IIT Mandi Online Judge
MIT License
23 stars 58 forks source link

Create a platform for editing problems and test cases #26

Closed Vishal1541 closed 5 years ago

Vishal1541 commented 5 years ago

The admin login system can be implemented and integrated later. As of now, the problem description can be submitted through http://localhost:3000/question/submit. We need a platform for modifying the already created problems (editing prob desc, uploading/ modifying the test cases). Create a page http://localhost:3000/admin to list all the existing problems. Eg. Codechef panel: cc_admin Clicking on any problem link should open a page http://localhost:3000/admin/edit? to modify the data. First section should contain all the fields that were there in while submitting the new question. Eg. Codeforces panel: cf_admin Second section for uploading and modifying the test cases. Eg. Hackerearth panel: hackerearth_admin

Milind712000 commented 5 years ago

I feel that a new page displaying a list of questions isn't required as we already have a problemset page The edit page is almost the submit page and display page combined except:

I can modify the submit page to double as an edit page or I can create a new page(most of the code will be same as the submit page)

Vishal1541 commented 5 years ago

@Milind712000 we can use the same problem set page with the route /admin , but create a new page for editing the problems/ test cases. Once the admin click on any of the problem, he'll we directed to this edit page. This page has route /admin/edit? . Also, keep the fonts and elements styling small on this edit page.