-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validation errors interface (make long codelists collapsible) #22
Comments
536a951 renames the panel and adds the introductory sentence. |
See #4 (comment) for a spreadsheet with a list of error messages/types to group by. |
Note from #32 (comment) :
|
Can we leave value blank (since a missing field can have no value) and append the missing field to path? e.g.
We could either have them collapsed to begin with and allow the user to expand them, or we could replace the list of values with a link to codelist's entry in the reference documentation, e.g. country. I don't have a particular preference either way, happy for you to go with whatever is easiest to implement and maintain. |
Is making the error lists collapsible still on the to-do list? Whilst testing with the data from Brazil, I sometimes had upward of 1,000 errors which meant a lot of scrolling! |
Todo list:
Is this all for this issue? |
Your suggestion sounds good for the defaults. It would be great to get some input from @codemacabre on a good UI for expanding/collapsing as the buttons feel a bit clunky and I don't know how to improve it. From a quick check, I see two more issues outstanding:
|
Ticking off backticks comment, as that already has it's own issue: #35 |
Ticking off show/hide comment, as that is moved to #65 |
Just realised - this is fine when we only show JSON paths. When we start showing spreadsheet cells or GeoJSON paths (#56 & #57 ) we'll have to come back to this anyway. For spreadsheet cells we can't add to end of path and for GeoJSON that might get complicated. Can we stick to having the value column, which should show the id of missing field? And the path column can show the location information, just like all the other tables? |
I think that's fine, but let's rename the value column to 'missing field'. |
Show/Hide links, correct duplicate CSS id Check right variables #22
Ready for testing on live |
Changes look good. Just one outstanding task in #22 (comment). Edit: I've renamed the issue to reflect the outstanding task. |
The current validation errors interface has a lot of repetition for errors of the same type:
I think that it would be good to group errors by type, in a similar way to the additional checks are grouped (see #13):
My thinking is that for errors with fewer than 3 occurrences, the errors table should be expanded by default. Otherwise, it should be collapsed by default.
Fonts, font sizes and colours etc. are all placeholders. I think there is probably a more elegant way of doing the expanding/collapsing of the error tables too.
The text was updated successfully, but these errors were encountered: