clamsproject / mmif-visualizer

A web site to visualize MultiMedia Interchange Format json
Apache License 2.0
2 stars 1 forks source link

Refactor of visualizer code structure #39

Closed haydenmccormick closed 2 months ago

haydenmccormick commented 2 months ago

This refactor mainly aims to simplify and restructure utils.py, which currently handles almost all rendering and helper code for most of the tab content (this is very unwieldy and difficult to read). The new structure is:

Additionally, if a tab causes an error to be thrown it no longer halts website creation entirely, but instead renders the error in the tab content.