hcs-t4sg / questable

questable.vercel.app
2 stars 0 forks source link

Due dates #39

Closed ColeHarten closed 1 year ago

ColeHarten commented 1 year ago

I think that I basically finished the due date functionality. I ended up going about it in a slightly different way than at least what I thought the deliv said to. Rather than creating a new array in the database to hold the expired tasks so that assigned, completed, confirmed, and expired would be 4 disjoint arrays, I left the task in the same array. Then, when the student view queries the task from the database, it checks if the due date is past, if so, it locally adds it to an overdue array which can be shown separately from the confirmed/completed tasks. I think that this seems more intuitive and would simplify late turn is. Essentially, the student can still move the task from assigned to completed to confirmed without changing the overdue status. If we would prefer a disjoint array in the database, please let me know. I don' think it would be that difficult to implementl however, for the reasons I mentioned, I think this is more intuitive (and simpler). Additionally, I reworked some of the front end for the student view to make it all work.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
questable ✅ Ready (Inspect) Visit Preview Dec 19, 2022 at 8:23AM (UTC)
IsoPhoenix commented 1 year ago

branch deprecated, will merge the more updated one instead