From c01cf9ddc0a372ba7f534ff729f2c50790880eee Mon Sep 17 00:00:00 2001 From: mpadge Date: Thu, 25 Apr 2024 14:13:24 +0200 Subject: [PATCH] update text for 'No stage' issues --- DESCRIPTION | 2 +- codemeta.json | 2 +- quarto/reviews.qmd | 21 ++++++++++++++++++--- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6850e95..d71ab0e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dashboard Title: What the Package Does (One Line, Title Case) -Version: 0.1.9 +Version: 0.1.9.001 Authors@R: person(given = "First", family = "Last", diff --git a/codemeta.json b/codemeta.json index 67befd0..0933e8e 100644 --- a/codemeta.json +++ b/codemeta.json @@ -6,7 +6,7 @@ "name": "dashboard: What the Package Does (One Line, Title Case)", "codeRepository": "https://github.com/ropensci-review-tools/dashboard", "license": "https://spdx.org/licenses/MIT", - "version": "0.1.9", + "version": "0.1.9.001", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", diff --git a/quarto/reviews.qmd b/quarto/reviews.qmd index 8a23117..bd099ec 100644 --- a/quarto/reviews.qmd +++ b/quarto/reviews.qmd @@ -96,9 +96,24 @@ the following controls: - "Sort By" to sort results either by the Submission Stage ("stage", 0-5), or "urgency", as described below. -Some rows in the table are highlighted to visually indicate degrees of urgency -according to the scheme defined in the following sub-section. Rows with no -highlight may be considered up-to-date, and require no action. +```{r table-explanation, echo = FALSE, results = 'asis'} +txt <- paste ( + "Some rows in the table are highlighted to visually indicate degrees", + "of urgency according to the scheme defined in the following", + "sub-section. Rows with no highlight may be considered up-to-date,", + "and require no action." +) +has_no_stage <- any (rev_dat$stage_num < 0) +if (has_no_stage) { + txt <- paste ( + txt, + "Submissions which have not yet been given a 'Stage' label are", + "listed below as '(No stage)', and highlighted with the highest", + "urgency level." + ) +} +cat (txt) +``` ```{r rev-dat-prepro} # Final pre-processing to add 'holding' column, and an 'urgency_rev' column so