Skip to content

Regression: interpretations never load after script order change; PDF export falls back to print #3

Description

@makefacktory90-lgtm

Hi, thank you for sharing SoulMatrix.

The live page opens and calculates the matrix, but node interpretations are empty and the status stays on “Loading interpretation data from CSV...”.

Browser console shows:
ReferenceError: updateDbModeButton is not defined at src/js/ui_controller.js:919.

In src/soul_matrix.html, ui_controller.js is currently loaded before db_sync.js. But ui_controller.js calls updateDbModeButton() and then loadCSV() at top level, while both are declared in db_sync.js. The exception prevents loadCSV() from running, even though data/interpretations.csv returns HTTP 200.

Could you please load js/db_sync.js before js/ui_controller.js? This looks like a regression after the 20 Aug refactor.

One more thing about PDF export: pdf_exporter.js builds the readings from the same unloaded data, so the PDF readings are empty while this bug is present. Also, html2pdf is not included in the HTML, so the current export path falls back to window.print(). On popup-blocking browsers that can look as though the PDF button does nothing. It may help to either include a PDF library for direct download or label the button as browser print/save-to-PDF.

Thank you again!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions