Skip to content

Commit e2421b1

Browse files
crhea93lwasser
authored andcommitted
Minor update to spacing in Open Reviews table
1 parent bb82d29 commit e2421b1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

peer-review/peer-review-status-dashboard.qmd

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
---
1+
---
22
title: "pyOpenSci Current Review Status"
3-
format:
3+
format:
44
dashboard:
5-
scrolling: true
5+
scrolling: true
66
execute:
77
echo: false
8-
---
8+
---
99

1010

1111
```{python}
1212
#| echo: false
13-
#|
13+
#|
1414
import os
1515
from pathlib import Path
1616
@@ -31,7 +31,7 @@ warnings.filterwarnings("ignore")
3131
# Make tables nicer
3232
pd.set_option("display.max_colwidth", None)
3333
current_date = datetime.today().date()
34-
today = current_date.strftime("%d %B %Y")
34+
today = current_date.strftime("%d %B %Y")
3535
```
3636

3737
*Last updated: **`{python} today`** *
@@ -44,12 +44,12 @@ def clean_and_order(df, DROP_COLS, order):
4444
def get_status_df(df, status):
4545
return df[df["active_status"] == status].reset_index(drop=True)
4646
47-
DROP_COLS = ["date_accepted", "labels", "editor", "status", "active_status"]
47+
DROP_COLS = ["date_accepted", "labels", "editor", "status", "active_status"]
4848
ORDER = ["Name", "Description", "Days Open", "Date Opened","Last Comment", "Last User to Comment", "Issue", "Categories", "eic"]
4949
5050
label_map = {
5151
"pre-review": [
52-
"New Submission!",
52+
"New Submission!",
5353
"0/pre-review-checks"],
5454
"seeking editor": ["0/seeking-editor"],
5555
"seeking reviewers": ["2/seeking-reviewers"],
@@ -194,7 +194,7 @@ open_reviews["Last Comment"] = open_reviews["Last Comment"].dt.date
194194

195195
```{python}
196196
#| echo: false
197-
#|
197+
#|
198198
# Determine overall review stage each item is in
199199
review_status_ct = open_reviews["active_status"].value_counts().reset_index()
200200
review_status_ct.rename(columns={"labels": "status"}, inplace=True)
@@ -280,15 +280,18 @@ show(new_submissions)
280280
show(open_presubmissions)
281281
```
282282

283-
## Row {height=4%}
283+
## Row {height=1%}
284284

285285
```{python}
286286
#| title: "Open Reviews Sorted by Last Comment Date"
287-
print("Reviews that have been quiet for the longest period of time are at the top.")
287+
from IPython.display import Markdown, display
288288
289+
display(Markdown(
290+
"Reviews that have been quiet for the longest period of time are at the top."
291+
))
289292
open_reviews = open_reviews.sort_values("Last Comment", ascending=True)
290293
291-
new_order = ["Name", "editor", "Last Comment", "Last User to Comment", "eic", "Issue", "active_status", "Description", "Date Opened"]
294+
new_order = ["Name", "editor", "Last Comment", "Last User to Comment", "eic", "Issue", "active_status", "Description", "Date Opened"]
292295
293296
show(open_reviews[new_order])
294297
```

0 commit comments

Comments
 (0)