-
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
Show JSON values nicely #73
Conversation
ghost
commented
Dec 15, 2022
•
edited by ghost
Loading
edited by ghost
- Additional fields: Report examples and child fields (add quotes to string values, copy-edits) #20
- Additional checks interface (add quotes to string values, make result table columns consistent) #13
@lgs85 @duncandewhurst Can you review this one on dev server? Basically anywhere we show JSON values - JSON schema checks, python checks, additional fields checks - it's going through a new template system. This puts " around strings, makes lists actually be lists and makes long lists hidden by default. Can you check and make sure this looks good, and there aren't unintended side affects? (The style of show hide links doesn't look great, but it looks like the other ones we currently have and that's already being dealt with in #65 ) |
Messaged
Whoops, a one character typo got in - will be fixed here or in another PR
If we are saying there should be exceptions to trying to show JSON values nicely, can we be clear about what they are?
|
If we're showing a JSON value from the data, then we should show it 'raw', i.e. not formatted as a bulleted list. It would still be good to hide/collapse long values, but not to format them. If we're showing a JSON value from the schema (like an enum) then I think it's OK to format that as a bulleted list. I didn't realise that the list of codes was a JSON value.
Yes.
Hiding it would be good, but not formatting it as a bulleted list. |
I think some discussion would be good. I'm not clear how we would hide/collapse long values without some kind of formatting and if strings should still be shown quoted (I'm guessing yes, but technically showing raw would mean no). (I suspect this one is going to take more time to sort out than I have left in the sprint, sorry.) |
Try to get this in: Just have quotes around strings, leave lists as raw JSON and don't try and collapse them. |
@duncandewhurst @lgs85 Please review and if you are happy pass to @Lathrisk for code review, then merge |
Looks good to me, but I think I missed the opportunity for @Lathrisk to review! |