Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard overhaul #186

Merged
merged 23 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ef30679
orbit/nginx snippets: rename dashboard to activity log
charliemirabile Sep 5, 2024
08b4163
radius: clean up dashboard inline html
michael-burke4 Jul 30, 2024
135bc18
orbit/container-compose: denis db visible to orbit
michael-burke4 Aug 2, 2024
2d0a590
radius: Add new course dashboard
michael-burke4 Aug 2, 2024
0217a6b
orbit: wire up oopsie buttons to submit form with post request
charliemirabile Sep 6, 2024
bf37d68
orbit: radius: dashboard: confirm before oopsie
charliemirabile Oct 14, 2024
200e6f8
orbit db: add oopsie table
michael-burke4 Sep 11, 2024
ed8dcd4
orbit: radius: dashboard: save oopsies in table
charliemirabile Sep 10, 2024
9fe4ad6
radius: factor out oopsie button into its own function
charliemirabile Oct 14, 2024
0e1283b
radius: Make oopsie button reflect oopsie status
michael-burke4 Sep 17, 2024
1d7caf4
radius: create assignment table scaffolding
charliemirabile Oct 14, 2024
0ff5e77
radius: factor main table row into body function
charliemirabile Oct 14, 2024
158a5d4
orbit: add rows for the remaining submission components
charliemirabile Oct 14, 2024
b6c0162
orbit: conditional assignment table body
charliemirabile Oct 14, 2024
3b4f357
mailman: add gradeable table to mailman db
michael-burke4 Sep 19, 2024
341edee
mailman: add status to submission table
michael-burke4 Sep 23, 2024
5a4f913
mailman: mark all submissions as 'unrecognized'
michael-burke4 Sep 23, 2024
8e29cb5
mailman: record initial and final subs in gradeable
michael-burke4 Sep 22, 2024
edeac78
mailman: record peer reviews in gradeable db
michael-burke4 Sep 22, 2024
ceb37cb
orbit: assignment table indicates assigned reviewees
michael-burke4 Sep 23, 2024
7755dc0
radius: replace placeholders in table with submission info
michael-burke4 Sep 24, 2024
4a00af8
radius: display assignment info
michael-burke4 Sep 24, 2024
8341650
radius: hide rows in table until deadline passes
charliemirabile Oct 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
radius: create assignment table scaffolding
add more table header entries to represent the fields that will be in an
assignment submission, and introduce a new function to generate a row for
a submission, and use to create one for the initial submission.
  • Loading branch information
charliemirabile committed Oct 14, 2024
commit 1d7caf4a3c7f56f981bc881776ef98413e73a156
25 changes: 22 additions & 3 deletions orbit/radius.py
Original file line number Diff line number Diff line change
@@ -437,6 +437,24 @@ def oops_button_hover(self):
case OopsStatus.UNAVAILABLE:
return "You have already used your oopsie"

def gradeable_row(self, item_name, rightmost_col):
return f"""
<tr>
<th>
{item_name}
</th>
<td>
-
</td>
<td>
-
</td>
<th>
{rightmost_col}
</th>
</tr>
"""

def oopsie_button(self):
return f"""
<button {'disabled' if self.oopsieness != OopsStatus.AVAILABLE else ''}
@@ -451,11 +469,12 @@ def __str__(self):
<table>
<caption><h3>{self.name}</h3></caption>
<tr>
<th>Total Score: -</th>
<th>Timestamp</th>
<th>Submission ID</th>
<th>Request an 'Oopsie'</th>
</tr>
<tr>
<th>{self.oopsie_button()}</th>
</tr>
{self.gradeable_row('Initial Submission', self.oopsie_button())}
</table>
<br>
"""