Skip to content

Feedback on HTTP events - #188

Merged
Leo-Marbehan merged 7 commits into
mainfrom
feature/http-events-feedback
Oct 12, 2025
Merged

Leo-Marbehan merged 7 commits into
mainfrom
feature/http-events-feedback

Conversation

@Leo-Marbehan

@Leo-Marbehan Leo-Marbehan commented Aug 31, 2025

Copy link
Copy Markdown
Collaborator

Feedback on HTTP events

To do

Modifications

  • Add SnackBarComponent and SnackBarService to show error, warning, success and info snack bars easily.
  • Use new service for existing snack bar feedback.
  • Add loading and snackbar for :
    • Input data import,
    • Simulation import,
    • Simulation export,
    • Simulation delete.

@Leo-Marbehan Leo-Marbehan self-assigned this Aug 31, 2025
@Leo-Marbehan Leo-Marbehan linked an issue Aug 31, 2025 that may be closed by this pull request
@Leo-Marbehan
Leo-Marbehan force-pushed the feature/http-events-feedback branch from b7fd0f4 to 9da2492 Compare September 9, 2025 22:09
@Leo-Marbehan
Leo-Marbehan force-pushed the feature/http-events-feedback branch from 9da2492 to 5a92ff0 Compare September 28, 2025 13:39
@Leo-Marbehan Leo-Marbehan mentioned this pull request Sep 28, 2025
2 tasks
@Leo-Marbehan
Leo-Marbehan force-pushed the feature/http-events-feedback branch from 5a92ff0 to c4ea190 Compare September 30, 2025 01:01
@Leo-Marbehan
Leo-Marbehan marked this pull request as ready for review September 30, 2025 01:01
@Leo-Marbehan

Copy link
Copy Markdown
Collaborator Author

As for last PR I deployed to TestPyPI :

python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple multimodalsim-viewer==0.1.4.1

document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.URL.revokeObjectURL(url);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

To prevent memory leak in case of error, wouldn't it be better to move revokeObjectURL into the the finally block?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good idea!

}

exportSimulation(simulationId: string, event: Event) {
async exportSimulation(simulationId: string, event: Event) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could the type hint Event be more specific? For example, is it always a MouseEvent?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The type hinted by ESLint in the template is PointerEvent so I used it!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Well apparently the compiler does not like PointerEvent so I used MouseEvent as you suggested!

@pamun1 pamun1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry for the late review. Everything looks good to me. Please take a look at my (minor) suggestions in the comments. Let me know if you have any questions.

@Leo-Marbehan

Copy link
Copy Markdown
Collaborator Author

Sorry for the late review. Everything looks good to me. Please take a look at my (minor) suggestions in the comments. Let me know if you have any questions.

I applied you suggestion and merged! Thank you for your reviews!

@Leo-Marbehan
Leo-Marbehan merged commit 2e237c8 into main Oct 12, 2025
6 checks passed
Leo-Marbehan added a commit that referenced this pull request Oct 19, 2025
# Feedback on HTTP events (#188)

## Modifications

- Add `SnackBarComponent` and `SnackBarService` to show error, warning, success and info snack bars easily.
- Use new service for existing snack bar feedback.
- Add loading and snackbar for : 
  - Input data import,
  - Simulation import,
  - Simulation export,
  - Simulation delete.
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.

Feedback on HTTP events

2 participants