Language-Research-Technology / crate-o

Crate-O is a browser-based editor for Research Object Crates (RO-Crate)
https://language-research-technology.github.io/crate-o/
GNU General Public License v3.0
6 stars 2 forks source link

Bug: Unable to navigate away from file entity using either breadcrumb trail or explicit entity links. #107

Closed alex-ip closed 10 months ago

alex-ip commented 10 months ago

After clicking on a file entity to add a description, users are unable to return to the parent entity or navigate to any entity other than the selected file.

image_720

Also, when clicking on any of the entities in the "All Entities" area, the entity is added to the end of the breadcrumb trail.

image

alex-ip commented 10 months ago

Resolved by @moisbo and @alvinsw. The issue was caused by a failure to preview .py files when in dev mode. The ,py files were not recognised by the previewer because .py is not included in the AINA/IETF official mime list, and also not in the list maintained by the apache and nginx projects. The solution was to add a button so that the user could preview an unrecognised file as plain text.