Skip to content

Conversation

@lzeiml
Copy link
Collaborator

@lzeiml lzeiml commented Nov 13, 2025

💡 What is the current behavior?

Some functions related to toast, message and modal need to be adjusted to call the relevant defineCustomElement().

GitHub Issue Number: #2263, #2060

🆕 What is the new behavior?

  • added defineCustomElement for ix-angular/standalone functions
  • added defineCustomElement for ix-react functions
  • added defineCustomElement for ix-vue functions
  • ModalService from ix-angular/standalone can now be used
  • added utility functions for ix-react and ix-vue

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented
  • 🗺️ Internationalization (i18n) - no hard coded strings
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully
  • 📕 Add or update a Storybook story
  • 📄 Documentation was reviewed/updated siemens/ix-docs
  • 🧪 Unit tests were added/updated and pass (pnpm test)
  • 📸 Visual regression tests were added/updated and pass (Guide)
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: 997d061

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lzeiml lzeiml changed the title Toast, Message, Modal fix for ix-angular/standalone Toast, Message, Modal fix for ix-angular/standalone, ix-react, ix-vue Nov 13, 2025
@lzeiml
Copy link
Collaborator Author

lzeiml commented Nov 14, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces fixes for Toast, Message, and Modal components across Angular, React, and Vue packages, primarily by ensuring web components are defined before use. The changes look good and address the described issues. I've added a few comments with suggestions to improve maintainability and type safety by reducing code duplication and using stricter types. Specifically, I've pointed out areas in the Angular services where boilerplate can be reduced and consistency can be improved.

@lzeiml lzeiml marked this pull request as ready for review November 14, 2025 09:39
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
20.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

2 participants