We need to make alternative types of viewer available for datasets, project files and job inputs/outputs.
Examples are:
HTML and JSON (where viewing can be handled by the browser)
external viewer apps such as the pose viewer
Multiple types of viewer may be available for some types of file. We need a way of registering these.
Handling (1.) is probably fairly simple. When on the Project File Actions page "View as HTML" or "View as JSON" should be available and these open the contents in a new browser tab. We can probably hack this in as a special case for a short term fix.
For a more general solution we need to determine how we map viewers to types (presumably though some client side config?) and provide some rank of suitability e.g. so that view as HTML comes before view as Text.
We need to make alternative types of viewer available for datasets, project files and job inputs/outputs. Examples are:
Multiple types of viewer may be available for some types of file. We need a way of registering these.
Handling (1.) is probably fairly simple. When on the Project File Actions page "View as HTML" or "View as JSON" should be available and these open the contents in a new browser tab. We can probably hack this in as a special case for a short term fix.
For a more general solution we need to determine how we map viewers to types (presumably though some client side config?) and provide some rank of suitability e.g. so that view as HTML comes before view as Text.