Skip to content

Add SBML auto-export and fix silent HTTP errors#412

Merged
cjmyers merged 4 commits intofinalfrom
pr/sbml-auto-export
Mar 24, 2026
Merged

Add SBML auto-export and fix silent HTTP errors#412
cjmyers merged 4 commits intofinalfrom
pr/sbml-auto-export

Conversation

@travisformayor
Copy link
Copy Markdown
Contributor

SBOLCanvas only sent SBOL to the parent iframe. The parent also needs SBML for simulation, and HTTP errors in export calls were silently dropped.

  • Add SBML export pipeline via postMessage (2000ms debounce, shares model-change Observable with SBOL)
  • Send structured error messages to parent on export failure
  • Fix 5 methods in files.service.ts that silently swallowed HTTP errors

@travisformayor travisformayor self-assigned this Mar 24, 2026
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-412.westus2.5.azurestaticapps.net

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances SBOLCanvas’ embedded-mode integration by auto-exporting both SBOL and SBML to the parent iframe and by ensuring export-related HTTP failures are no longer silently ignored (and can be reported upstream).

Changes:

  • Introduces a shared model-change Observable and adds an SBML auto-export postMessage pipeline alongside the existing SBOL pipeline (with separate debounces).
  • Posts structured error messages to the parent window when SBOL/SBML export fails.
  • Updates several FilesService methods to propagate HTTP errors instead of swallowing them.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
SBOLCanvasFrontend/src/app/graph.service.ts Adds shared model-change stream and SBOL/SBML auto-export + error postMessage behavior when embedded.
SBOLCanvasFrontend/src/app/files.service.ts Stops swallowing HTTP errors in multiple methods by forwarding errors through returned Observables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-412.westus2.5.azurestaticapps.net

@travisformayor travisformayor marked this pull request as ready for review March 24, 2026 20:13
@cjmyers cjmyers merged commit ef27f09 into final Mar 24, 2026
4 checks passed
@cjmyers cjmyers deleted the pr/sbml-auto-export branch March 24, 2026 20:13
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.

3 participants