Skip to content
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

Refactor of visualizer code structure #39

Merged
merged 14 commits into from
Jun 27, 2024
Merged

Refactor of visualizer code structure #39

merged 14 commits into from
Jun 27, 2024

Conversation

haydenmccormick
Copy link
Collaborator

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:

  • All top-level functions which render tab content (documents & annotations) are now in render.py, and are simplified for better readability
  • All helper functions (e.g. url2posix/get_abstract_view_type) are now in utils.py, and are only referenced by functions in render.py.

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.

@haydenmccormick haydenmccormick requested a review from keighrim June 7, 2024 14:02
@haydenmccormick haydenmccormick merged commit 6778625 into main Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant