Skip to content

feat: Add dynamic theming support to WatsonxAI icon#8935

Merged
Cristhianzl merged 2 commits into
mainfrom
cz/fix-ibm-icon
Jul 8, 2025
Merged

feat: Add dynamic theming support to WatsonxAI icon#8935
Cristhianzl merged 2 commits into
mainfrom
cz/fix-ibm-icon

Conversation

@Cristhianzl
Copy link
Copy Markdown
Member

@Cristhianzl Cristhianzl commented Jul 8, 2025

This pull request introduces support for dynamic theming in the WatsonxAI icon component, allowing it to adapt its color based on the application's dark mode state. The changes involve integrating a dark mode store and modifying the WatsonxAI component to use a conditional fill color.

Dynamic theming updates:

  • Dark mode integration: Added useDarkStore to retrieve the application's dark mode state and pass it as a prop to the WatsonxAI component. The isdark value determines whether the icon should use a light or dark fill color. (src/frontend/src/icons/IBMWatsonx/index.tsx, src/frontend/src/icons/IBMWatsonx/index.tsxR1-R11)
  • Conditional fill color: Updated the WatsonxAI component to dynamically set the fill attribute of the SVG based on the isdark prop using the stringToBool utility function. (src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx, src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsxR1-R14)

Code enhancements:

  • Utility function usage: Imported and utilized the stringToBool function to convert the isdark string value into a boolean for conditional rendering. (src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx, src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsxR1-R14)
  • Logging for debugging: Added console.log statements to log the isdark prop and state for debugging purposes. (src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx, [1]; src/frontend/src/icons/IBMWatsonx/index.tsx, [2]
image image

Summary by CodeRabbit

  • New Features
    • The Watsonx AI icon now automatically adapts its color for dark mode, enhancing visibility and appearance based on your theme settings.

… prop value

📝 (index.tsx): Import useDarkStore hook and pass isdark prop to SvgWatsonxAI component
♻️ (index.tsx): Remove unnecessary console.log statement
@Cristhianzl Cristhianzl requested a review from mfortman11 July 8, 2025 17:23
@Cristhianzl Cristhianzl self-assigned this Jul 8, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 8, 2025

Walkthrough

The changes introduce dark mode support for the WatsonxAI icon component. The icon now dynamically adjusts its fill color based on the application's dark mode state, which is retrieved using a global store hook and passed as a prop to the SVG component.

Changes

Files Change Summary
src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx Updated SVG to accept an isdark prop and set the fill color conditionally; added SVG attributes.
src/frontend/src/icons/IBMWatsonx/index.tsx Modified to use dark mode state from global store and pass it as isdark prop to the SVG icon.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant WatsonxAiIcon
    participant useDarkStore
    participant SvgWatsonxAI

    App ->> WatsonxAiIcon: Render
    WatsonxAiIcon ->> useDarkStore: Get dark mode state
    useDarkStore -->> WatsonxAiIcon: Return dark (boolean)
    WatsonxAiIcon ->> SvgWatsonxAI: Render with isdark prop
    SvgWatsonxAI ->> SvgWatsonxAI: Set fill color based on isdark
Loading

Suggested labels

size:L, lgtm

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cz/fix-ibm-icon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 8, 2025
@github-actions github-actions Bot added the enhancement New feature or request label Jul 8, 2025
@dosubot dosubot Bot added the javascript Pull requests that update Javascript code label Jul 8, 2025
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 8, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 8, 2025

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 71%
73.58% (117/159) 57.46% (77/134) 59.52% (25/42)

Unit Test Results

Tests Skipped Failures Errors Time
45 0 💤 0 ❌ 0 🔥 2.579s ⏱️

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 8, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24db0cd and 0ef16cc.

📒 Files selected for processing (2)
  • src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx (1 hunks)
  • src/frontend/src/icons/IBMWatsonx/index.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
`src/frontend/**/*.{ts,tsx}`: Use React 18 with TypeScript for all UI components and frontend logic.

src/frontend/**/*.{ts,tsx}: Use React 18 with TypeScript for all UI components and frontend logic.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/index.tsx
`src/frontend/**/*.{ts,tsx,js,jsx,css,scss}`: Use Tailwind CSS for styling all frontend components.

src/frontend/**/*.{ts,tsx,js,jsx,css,scss}: Use Tailwind CSS for styling all frontend components.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/index.tsx
  • src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx
`src/frontend/src/icons/**/*.{ts,tsx,js,jsx}`: Use Lucide React for icons in frontend components.

src/frontend/src/icons/**/*.{ts,tsx,js,jsx}: Use Lucide React for icons in frontend components.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/index.tsx
  • src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx
`src/frontend/src/icons/*/*`: Create a new directory for your icon in `src/front...

src/frontend/src/icons/*/*: Create a new directory for your icon in src/frontend/src/icons/YourIconName/ and add your SVG as a React component (e.g., YourIconName.jsx) that uses the isdark prop to support both light and dark mode.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/icons.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/index.tsx
  • src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx
`src/frontend/src/icons/*/index.tsx`: Create an `index.tsx` in your icon directory that exports your icon using `forwardRef` and passes the `isdark` prop.

src/frontend/src/icons/*/index.tsx: Create an index.tsx in your icon directory that exports your icon using forwardRef and passes the isdark prop.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/icons.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/index.tsx
`src/frontend/src/icons/*/*.jsx`: Always support both light and dark mode for custom icons by using the `isdark` prop in your SVG component.

src/frontend/src/icons/*/*.jsx: Always support both light and dark mode for custom icons by using the isdark prop in your SVG component.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/icons.mdc)

List of files the instruction was applied to:

  • src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/{components,hooks}/**/*.{ts,tsx} : Implement dark mode support in components and hooks where needed.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/*.jsx : Always support both light and dark mode for custom icons by using the `isdark` prop in your SVG component.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Custom SVG icon components in React should always support both light and dark mode by accepting an 'isdark' prop and adjusting colors accordingly.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Verify the icon appears correctly in the UI in both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/* : Create a new directory for your icon in `src/frontend/src/icons/YourIconName/` and add your SVG as a React component (e.g., `YourIconName.jsx`) that uses the `isdark` prop to support both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: All changes must be tested in both light and dark mode before committing.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: All changes must be tested in both light and dark mode to ensure consistent appearance and functionality.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: When implementing a new component icon in Langflow, ensure the icon name is clear, recognizable, and used consistently across both backend (Python 'icon' attribute) and frontend (React/TypeScript mapping).
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/index.tsx : Create an `index.tsx` in your icon directory that exports your icon using `forwardRef` and passes the `isdark` prop.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Use a utility like 'stringToBool' to reliably interpret the 'isdark' prop when toggling SVG colors for light/dark mode support.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: Dark mode support should be implemented using a dedicated Zustand store (e.g., useDarkStore), and toggled via a custom hook (e.g., useDarkMode) that exposes isDark and toggle.
src/frontend/src/icons/IBMWatsonx/index.tsx (13)
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/*.jsx : Always support both light and dark mode for custom icons by using the `isdark` prop in your SVG component.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Custom SVG icon components in React should always support both light and dark mode by accepting an 'isdark' prop and adjusting colors accordingly.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/{components,hooks}/**/*.{ts,tsx} : Implement dark mode support in components and hooks where needed.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/index.tsx : Create an `index.tsx` in your icon directory that exports your icon using `forwardRef` and passes the `isdark` prop.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/* : Create a new directory for your icon in `src/frontend/src/icons/YourIconName/` and add your SVG as a React component (e.g., `YourIconName.jsx`) that uses the `isdark` prop to support both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: Dark mode support should be implemented using a dedicated Zustand store (e.g., useDarkStore), and toggled via a custom hook (e.g., useDarkMode) that exposes isDark and toggle.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/icons/**/*.{ts,tsx,js,jsx} : Use Lucide React for icons in frontend components.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Verify the icon appears correctly in the UI in both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: All changes must be tested in both light and dark mode before committing.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Export custom icon components in React using React.forwardRef to ensure proper ref forwarding and compatibility with parent components.
Learnt from: dolfim-ibm
PR: langflow-ai/langflow#8394
File: src/frontend/src/icons/Docling/index.tsx:4-6
Timestamp: 2025-06-16T11:14:04.200Z
Learning: The Langflow codebase consistently uses `React.PropsWithChildren<{}>` as the prop type for all icon components using forwardRef, rather than `React.SVGProps<SVGSVGElement>`. This is an established pattern across hundreds of icon files in src/frontend/src/icons/.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Use a utility like 'stringToBool' to reliably interpret the 'isdark' prop when toggling SVG colors for light/dark mode support.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/components/**/*FlowGraph.tsx : Use React Flow for flow graph visualization components.
src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx (6)
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Custom SVG icon components in React should always support both light and dark mode by accepting an 'isdark' prop and adjusting colors accordingly.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/*.jsx : Always support both light and dark mode for custom icons by using the `isdark` prop in your SVG component.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/* : Create a new directory for your icon in `src/frontend/src/icons/YourIconName/` and add your SVG as a React component (e.g., `YourIconName.jsx`) that uses the `isdark` prop to support both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Use a utility like 'stringToBool' to reliably interpret the 'isdark' prop when toggling SVG colors for light/dark mode support.
Learnt from: dolfim-ibm
PR: langflow-ai/langflow#8394
File: src/frontend/src/icons/Docling/index.tsx:4-6
Timestamp: 2025-06-16T11:14:04.200Z
Learning: The Langflow codebase consistently uses `React.PropsWithChildren<{}>` as the prop type for all icon components using forwardRef, rather than `React.SVGProps<SVGSVGElement>`. This is an established pattern across hundreds of icon files in src/frontend/src/icons/.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/index.tsx : Create an `index.tsx` in your icon directory that exports your icon using `forwardRef` and passes the `isdark` prop.
🧬 Code Graph Analysis (2)
src/frontend/src/icons/IBMWatsonx/index.tsx (2)
src/frontend/src/stores/darkStore.ts (1)
  • useDarkStore (7-53)
src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx (1)
  • SvgWatsonxAI (3-30)
src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx (1)
src/frontend/src/utils/utils.ts (1)
  • stringToBool (794-794)
🪛 Biome (1.9.4)
src/frontend/src/icons/IBMWatsonx/index.tsx

[error] 7-7: Don't use '{}' as a type.

Prefer explicitly define the object shape. '{}' means "any non-nullable value".

(lint/complexity/noBannedTypes)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Filter Paths
  • GitHub Check: autofix
🔇 Additional comments (4)
src/frontend/src/icons/IBMWatsonx/WatsonxAI.jsx (2)

1-1: Import statement looks good.

The import follows the established pattern for using utility functions in icon components.


5-7: Dark mode implementation follows best practices.

The conditional fill color logic correctly implements dark mode support:

  • Uses stringToBool utility as recommended in the coding guidelines
  • Proper color contrast: white (#ffffff) for dark mode, dark (#0A0A0A) for light mode
  • Additional SVG attributes enhance the icon's rendering consistency

The PR summary mentions console.log statements for debugging, but they're not visible in the provided code. Please verify if these debug statements were removed or if they exist elsewhere.

src/frontend/src/icons/IBMWatsonx/index.tsx (2)

1-1: Dark mode store integration follows established pattern.

The import correctly uses the useDarkStore hook as recommended in the coding guidelines.


9-10: Dark mode state handling is implemented correctly.

The implementation properly:

  • Retrieves dark mode state from the store
  • Converts boolean to string for the isdark prop
  • Passes the prop to the SVG component

This follows the established pattern and integrates well with the SVG component's conditional styling.

Comment on lines 5 to 7
export const WatsonxAiIcon = forwardRef<
SVGSVGElement,
React.PropsWithChildren<{}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Fix the type definition to be more specific.

The static analysis warning about using {} as a type is valid. This should be more explicit.

Apply this diff to improve type safety:

-export const WatsonxAiIcon = forwardRef<
-  SVGSVGElement,
-  React.PropsWithChildren<{}>
->((props, ref) => {
+export const WatsonxAiIcon = forwardRef<
+  SVGSVGElement,
+  React.SVGProps<SVGSVGElement>
+>((props, ref) => {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export const WatsonxAiIcon = forwardRef<
SVGSVGElement,
React.PropsWithChildren<{}>
export const WatsonxAiIcon = forwardRef<
SVGSVGElement,
React.SVGProps<SVGSVGElement>
>((props, ref) => {
// …rest of the implementation
});
🧰 Tools
🪛 Biome (1.9.4)

[error] 7-7: Don't use '{}' as a type.

Prefer explicitly define the object shape. '{}' means "any non-nullable value".

(lint/complexity/noBannedTypes)

🤖 Prompt for AI Agents
In src/frontend/src/icons/IBMWatsonx/index.tsx around lines 5 to 7, the type
definition uses an empty object type `{}`, which is too generic and causes
static analysis warnings. Replace `{}` with a more specific type that accurately
reflects the expected props for the component, such as
`React.SVGProps<SVGSVGElement>`, to improve type safety and clarity.

@Cristhianzl Cristhianzl added this pull request to the merge queue Jul 8, 2025
Merged via the queue into main with commit fc729cd Jul 8, 2025
34 of 38 checks passed
@Cristhianzl Cristhianzl deleted the cz/fix-ibm-icon branch July 8, 2025 22:38
smatiolids pushed a commit to smatiolids/langflow-dev that referenced this pull request Jul 10, 2025
* ✨ (WatsonxAI.jsx): Add support for dynamic fill color based on isdark prop value
📝 (index.tsx): Import useDarkStore hook and pass isdark prop to SvgWatsonxAI component

* ✨ (WatsonxAI.jsx): Remove unnecessary console.log statement
♻️ (index.tsx): Remove unnecessary console.log statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants