From 22ef0cad3cfe4a0464b00624835372f2734ec154 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 10 Feb 2024 07:37:43 +0300 Subject: Improve error display for generic errors --- qc_app/static/css/styles.css | 18 ++++++++++- qc_app/templates/rqtl2/rqtl2-qc-job-error.html | 43 ++++++++++++++++++++------ 2 files changed, 51 insertions(+), 10 deletions(-) (limited to 'qc_app') diff --git a/qc_app/static/css/styles.css b/qc_app/static/css/styles.css index 79dab0e..67e8cb3 100644 --- a/qc_app/static/css/styles.css +++ b/qc_app/static/css/styles.css @@ -134,9 +134,13 @@ form fieldset:nth-child(odd) { } @media(min-width: 1250px) { - form, .explainer, .error-table { + form, .explainer { width: 65ch; } + + .error-table { + width: 85ch; + } } fieldset { @@ -202,3 +206,15 @@ form fieldset legend { max-height: 250px; overflow: scroll; } + +.error-table { + display: block; + overflow: scroll; + max-height: 250px; + margin: 1em 0; +} + +.error-table thead { + position: sticky; + top: 0; +} diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html index 49df061..e809e7c 100644 --- a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html +++ b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html @@ -4,10 +4,9 @@ {%block title%}R/qtl2 bundle: QC Job Error{%endblock%} {%macro errors_table(tableid, errors)%} - - +
+ + @@ -23,6 +22,10 @@ + {%else%} + + + {%endfor%}
{{caption}}
Line Column{{error.value}} {{error.message}}
No errors to display here.
@@ -42,11 +45,33 @@
We found the following generic errors in your R/qtl2 bundle:
- + +

Missing Files

+
+

These files are listed in the bundle's control file, but do not actually + exist in the bundle

+
+ + + + + + + + + + {%for error in (errorsgeneric | selectattr("type", "equalto", "MissingFile"))%} + + + + + + {%endfor%} + +
Control File KeyBundle File NameMessage
{{error.controlfilekey}}{{error.filename}}{{error.message}}
+ +

Other Generic Errors

+{{errors_table("tbl-errors-generic", errorsgeneric| selectattr("type", "ne", "MissingFile"))}} {%endif%} {%if errorsgeno | length > 0%} -- cgit v1.2.3