-
Notifications
You must be signed in to change notification settings - Fork 852
Release 0.5.0.0 #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release 0.5.0.0 #725
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| import React, { useState } from "react"; | ||
| import { tracker } from "@/utils/tracker"; | ||
|
|
||
| const RUNCELL_LOGO_URL = "https://www.runcell.dev/runcell-logo.svg"; | ||
| const RUNCELL_WEBSITE = "https://www.runcell.dev?utm_source=pygwalker"; | ||
|
|
||
| const LLM_LOGOS = [ | ||
| "https://www.runcell.dev/llm-icons/openai.svg", | ||
| "https://www.runcell.dev/llm-icons/claude-color.svg", | ||
| "https://www.runcell.dev/llm-icons/gemini-color.svg", | ||
| "https://www.runcell.dev/llm-icons/deepseek-color.svg", | ||
| ]; | ||
|
|
||
| interface RuncellBannerProps { | ||
| env?: string; | ||
| } | ||
|
|
||
| const checkRuncellInstalled = (): boolean => { | ||
| try { | ||
| // Runcell JupyterLab plugin stores user status in localStorage | ||
| const runcellUser = window.parent.localStorage.getItem("plugin_auth_user_v2"); | ||
| return runcellUser !== null; | ||
| } catch { | ||
| return false; | ||
| } | ||
| }; | ||
|
|
||
| export const RuncellBanner: React.FC<RuncellBannerProps> = ({ env }) => { | ||
| const [dismissed, setDismissed] = useState(false); | ||
|
|
||
| // Only show in Jupyter environments | ||
| if (env !== "jupyter_widgets" && env !== "anywidget") { | ||
| return null; | ||
| } | ||
|
|
||
| // Don't show if runcell is installed or user dismissed | ||
| if (checkRuncellInstalled() || dismissed) { | ||
| return null; | ||
| } | ||
|
|
||
| const handleClick = () => { | ||
| tracker.track("click", { entity: "runcell_banner" }); | ||
| window.open(RUNCELL_WEBSITE, "_blank"); | ||
| }; | ||
|
|
||
| const handleDismiss = (e: React.MouseEvent) => { | ||
| e.stopPropagation(); | ||
| tracker.track("click", { entity: "runcell_banner_dismiss" }); | ||
| setDismissed(true); | ||
| }; | ||
|
|
||
| return ( | ||
| <div | ||
| className="flex items-center justify-between gap-3 px-4 py-2 mb-2 rounded-md bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-950/30 dark:to-blue-950/30 border border-purple-200 dark:border-purple-800 cursor-pointer hover:shadow-md transition-shadow" | ||
| onClick={handleClick} | ||
| > | ||
| <div className="flex items-center gap-3"> | ||
| <img | ||
| src={RUNCELL_LOGO_URL} | ||
| alt="Runcell" | ||
| className="w-6 h-6" | ||
| /> | ||
| <span className="text-sm text-gray-700 dark:text-gray-300"> | ||
| Enable AI Agent for data analysis with pip install runcell | ||
| </span> | ||
| </div> | ||
| <div className="flex items-center gap-2"> | ||
| <div className="flex items-center gap-1 px-2 py-1 rounded-full bg-white/80"> | ||
| {LLM_LOGOS.map((logo, index) => ( | ||
| <img | ||
| key={index} | ||
| src={logo} | ||
| alt="LLM" | ||
| className="w-4 h-4" | ||
| /> | ||
| ))} | ||
| </div> | ||
| <button | ||
| onClick={handleDismiss} | ||
| className="text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 text-lg leading-none px-1" | ||
| aria-label="Dismiss" | ||
| > | ||
| × | ||
| </button> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default RuncellBanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React version conflict between dependencies and resolutions
The
dependenciessection specifiesreactandreact-domat version19.x, but theresolutionssection forces^18.xfor both. Yarn'sresolutionsfield overrides nested dependency versions across the entire dependency tree, creating a direct conflict with the top-level dependency declaration. This mismatch can cause installation failures, runtime errors, or the notorious "multiple React versions" problem where hooks and context fail silently. The@types/reactin devDependencies also remains at^18.x, further exacerbating type compatibility issues with React 19.Additional Locations (1)
app/package.json#L66-L72