Skip to content

WIP: Maps over JSON array for table creation

jmp157 requested to merge jmp157/bfitz.xyz:master into master

This is pretty much how it would look. If you look at the `/teaching/218s21/218s21.json' you'll see how the JSON array looks.

One thing you can potentially do is remove the release and due dates from each of the objects and increment it in the code, but I added them in in case you want to modify the due date for specific elements. But if that won't happen let me know and I can change the code to accommodate.

I didn't do all the table rows bc that's kinda tedious haha. But it would be pretty easy to make a python script that updates the JSON file when needed.

I didn't make it that far down, but for things with the "memo" icon, you can add an "assignment" field to their object with a link to that assignment. If you ever want to add new icons it would be pretty easy now to update all of them with those new icons.

I can continue committing to this PR if you like how it looks. Or you can just scrap it lol your call.

Merge request reports

Loading