Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/platformIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const PLATFORM_TO_ICON = {
kotlin: "kotlin",
"kotlin-android": "android",
langchain: "langchain",
langgraph: "langgraph",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Potential bug: The code adds a mapping for the langgraph platform icon, but the corresponding SVG files are missing, which will cause a runtime error when the icon is loaded.
  • Description: A new mapping for langgraph is added to the PLATFORM_TO_ICON object. However, the corresponding SVG files (svg/langgraph.svg and svg_80x80/langgraph.svg) are not included in this change. When the PlatformIcon component attempts to render this icon, or when the preloadIcons() function is called, the dynamic require() call will fail to find the file. This will result in a MODULE_NOT_FOUND error at runtime, causing the application to crash.

  • Suggested fix: Add the missing langgraph.svg files to both the svg/ and svg_80x80/ directories to ensure they can be loaded at runtime by the PlatformIcon component.
    severity: 0.8, confidence: 0.95

Did we get this right? 👍 / 👎 to inform future reviews.

launchdarkly: "launchdarkly",
linux: "linux",
mono: "mono",
Expand Down
10 changes: 6 additions & 4 deletions svg/android.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions svg/deno.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions svg/langgraph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 18 additions & 5 deletions svg/python.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading