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 Frontend Code and Fix Cryo-EM issue #90

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Commits on Feb 8, 2024

  1. Refactor code structure and enhance Moorhen visualization tool

    Reorganized the code structure by renaming and relocating several components to their appropriate directories for better code readability and maintainability. Furthermore, the visualization tool, Moorhen, was enhanced by appending the pdbCode to its URL, improving its functionality by directly visualizing specific structures.
    Dialpuri committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    e4dddb2 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Improve error handling in fetch_from_pdb function

    The fetch_from_pdb function now returns an explicit Promise rejection when an error occurs. Before, the function was catching errors but not handling them. This change leads to more meaningful error message and overall improved error handling.
    Dialpuri committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    42ef011 View commit details
    Browse the repository at this point in the history
  2. Replace TableDataEntry with ResultsEntry in Home.tsx

    The useState for tableData in Home.tsx has been changed from TableDataEntry[] to ResultsEntry[]. This change is based on the modification of the data being stored in the state. It will ensure the correct type is used for easier future development and reduce runtime type errors.
    Dialpuri committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    55d582a View commit details
    Browse the repository at this point in the history
  3. Enhance debug output and add cell size validation

    The structure reading function now provides more detailed output for improved debug clarity. In addition, cell size is verified before gemmi molecule creation. Specifically, if the cell size is 1x1x1 units, it is inflated to 300x300x300 units.
    Dialpuri committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    6451e41 View commit details
    Browse the repository at this point in the history
  4. Added updated WASM blob

    Dialpuri committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    9bf2719 View commit details
    Browse the repository at this point in the history
  5. Improve error handling in fetch_from_pdb.ts

    This commit is focused around proper error handling. In fetch_from_pdb.ts, the catch block of the Promise has been modified to return a rejected Promise with the actual error object instead of a static string. This provides more detailed and dynamic error information.
    Dialpuri committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    9fe0138 View commit details
    Browse the repository at this point in the history