Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Oct 17, 2025

What do these changes do?

This PR fixes initialization of some 3rd party libraries by converting their init() methods to return Promises and ensuring proper async/await handling.

reported by @matusdrobuliak66

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Oct 17, 2025
@odeimaiz odeimaiz requested a review from Copilot October 17, 2025 09:39
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Oct 17, 2025
@odeimaiz odeimaiz added this to the Imparable milestone Oct 17, 2025
@odeimaiz odeimaiz marked this pull request as ready for review October 17, 2025 09:39
Copy link
Contributor

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 fixes initialization issues with JavaScript wrapper libraries by converting their init() methods to return Promises and ensuring proper async/await handling. The changes move library initialization from synchronous calls in the Dashboard to properly awaited calls in the Application startup flow.

  • Convert IntlTelInput and DOMPurify wrapper initialization methods to return Promises
  • Move library initialization from Dashboard to Application with proper async/await pattern
  • Ensure libraries are fully loaded before application continues startup

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
osparc/wrapper/IntlTelInput.js Wraps init method in Promise to handle async library loading
osparc/wrapper/DOMPurify.js Wraps init method in Promise to handle async library loading
osparc/dashboard/Dashboard.js Removes synchronous DOMPurify initialization call
osparc/Application.js Adds proper async/await initialization for both wrapper libraries

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

@odeimaiz odeimaiz enabled auto-merge (squash) October 17, 2025 09:41
@odeimaiz odeimaiz changed the title 🐛 Fix: initialize libs 🐛 Fix: initialize 3rd party libs Oct 17, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2025

🧪 CI Insights

Here's what we observed from your CI run for 30faf37.

✅ Passed Jobs With Interesting Signals

Pipeline Job Signal Health on master Retries 🔍 CI Insights 📄 Logs
CI system-tests You had a 39% chance of failing… lucky you! 🎲 Flaky Configure an automatic retry View View

@odeimaiz odeimaiz merged commit 1856258 into ITISFoundation:master Oct 17, 2025
106 of 110 checks passed
matusdrobuliak66 pushed a commit that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants