Skip to content

feat: port DataFile diagnostics UI and ModelFile page from MUIO v5.5#398

Open
parthdagia05 wants to merge 1 commit intoEAPD-DRB:mainfrom
parthdagia05:feature/391-datafile-diagnostics-port
Open

feat: port DataFile diagnostics UI and ModelFile page from MUIO v5.5#398
parthdagia05 wants to merge 1 commit intoEAPD-DRB:mainfrom
parthdagia05:feature/391-datafile-diagnostics-port

Conversation

@parthdagia05
Copy link
Copy Markdown

Linked issue

Existing related work reviewed

Overlap assessment

Why this PR should proceed

Summary

  • What changed:
    • Added readModelFile() and readLogFile() frontend fetch helpers to Osemosys.Class.js
    • Updated DataFile page with LOG FILE button, MODEL FILE button (with modals), and scenario toggle-all control
    • Updated DataFile.Model.js constructor to accept and store modelFile
    • Added Html.renderModelFile() helper
    • Created standalone ModelFile page (Controller/ModelFile.js, Model/ModelFile.Model.js, View/ModelFile.html) that parses GMPL model, converts to LaTeX, and renders equations with MathJax
    • Added MathJax 3 CDN with AMS package to index.html
    • Added /ModelFile route to Routes.Class.js
  • Why: Port upstream MUIO v5.5 diagnostics UI into MUIOGO as specified in [Task] Port the DataFile model/log diagnostics from MUIO v5.5 #391 and parent [Task] Absorb selected MUIO v5.5 changes on origin/main #388

Validation

  • Tests added/updated (or not applicable) — no existing test suite for frontend; manual validation performed
  • Validation steps documented
    • Started app locally with python app.py on Python 3.12
    • Verified /readModelFile endpoint returns 200
    • Verified /readLogFile endpoint returns 404 gracefully (no log file yet — expected)
    • Navigated to #/ModelFile — standalone page renders model equations with MathJax (Objective, Activity, Capacity sections visible with LaTeX formatting)
  • Evidence attached — ModelFile page screenshot confirmed during development

Documentation

  • Docs updated in this PR (or not applicable) — no doc changes needed; features are self-discoverable UI elements

Scope check

  • No unrelated refactors
  • Implemented from a feature branch
  • Change is deliverable without upstream OSeMOSYS/MUIO dependency
  • Base repo/branch is EAPD-DRB/MUIOGO:main (not upstream)

Exception rationale

@parthdagia05 parthdagia05 force-pushed the feature/391-datafile-diagnostics-port branch from 7c5871a to 2d9aea6 Compare April 1, 2026 17:25
@parthdagia05
Copy link
Copy Markdown
Author

@SeaCelo Could you review this PR.

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.

[Task] Port the DataFile model/log diagnostics from MUIO v5.5

1 participant