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)%} -
Line | Column | @@ -23,6 +22,10 @@{{error.value}} | {{error.message}} |
---|---|---|---|
No errors to display here. | +
These files are listed in the bundle's control file, but do not actually + exist in the bundle
+Control File Key | +Bundle File Name | +Message | +
---|---|---|
{{error.controlfilekey}} | +{{error.filename}} | +{{error.message}} | +