Skip to content

Commit 49c43a1

Browse files
authored
Adds a python logo icon (#1834)
1 parent 174484f commit 49c43a1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export function PythonLogoIcon({ className }: { className?: string }) {
2+
return (
3+
<svg className={className} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4+
<g clip-path="url(#clip0_16722_101857)">
5+
<path
6+
d="M11.9281 2C6.85063 2 7.1675 4.20188 7.1675 4.20188L7.17375 6.48313H12.0187V7.1675H5.24813C5.24813 7.1675 2 6.79875 2 11.9225C2 17.045 4.83563 16.8638 4.83563 16.8638H6.52813V14.4863C6.52813 14.4863 6.43687 11.6506 9.31875 11.6506H14.1237C14.1237 11.6506 16.8237 11.6944 16.8237 9.04125V4.65438C16.8237 4.65438 17.2338 2 11.9281 2ZM9.25625 3.53375C9.73813 3.53375 10.1281 3.92375 10.1281 4.40563C10.1281 4.8875 9.73813 5.2775 9.25625 5.2775C9.14171 5.27766 9.02826 5.25523 8.9224 5.21147C8.81655 5.16771 8.72037 5.10349 8.63937 5.0225C8.55838 4.94151 8.49417 4.84533 8.45041 4.73947C8.40665 4.63362 8.38421 4.52017 8.38438 4.40563C8.38438 3.92375 8.77438 3.53375 9.25625 3.53375Z"
7+
fill="#387EB8"
8+
/>
9+
<path
10+
d="M12.0719 21.9839C17.1494 21.9839 16.8325 19.782 16.8325 19.782L16.8263 17.5008H11.9813V16.8164H18.7513C18.7513 16.8164 22 17.1852 22 12.062C22 6.93892 19.1644 7.12079 19.1644 7.12079H17.4719V9.49767C17.4719 9.49767 17.5631 12.3333 14.6813 12.3333H9.87626C9.87626 12.3333 7.17626 12.2895 7.17626 14.9427V19.3295C7.17626 19.3295 6.76626 21.9839 12.0719 21.9839ZM14.7438 20.4502C14.6292 20.4503 14.5158 20.4279 14.4099 20.3841C14.3041 20.3404 14.2079 20.2762 14.1269 20.1952C14.0459 20.1142 13.9817 20.018 13.9379 19.9121C13.8942 19.8063 13.8717 19.6928 13.8719 19.5783C13.8719 19.097 14.2619 18.707 14.7438 18.707C15.2256 18.707 15.6156 19.0964 15.6156 19.5783C15.6156 20.0608 15.2256 20.4502 14.7438 20.4502Z"
11+
fill="#F4D441"
12+
/>
13+
</g>
14+
<defs>
15+
<clipPath id="clip0_16722_101857">
16+
<rect width="20" height="20" fill="white" transform="translate(2 2)" />
17+
</clipPath>
18+
</defs>
19+
</svg>
20+
);
21+
}

apps/webapp/app/components/runs/v3/RunIcon.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { RunFunctionIcon } from "~/assets/icons/RunFunctionIcon";
1717
import { MiddlewareIcon } from "~/assets/icons/MiddlewareIcon";
1818
import { FunctionIcon } from "~/assets/icons/FunctionIcon";
1919
import { TriggerIcon } from "~/assets/icons/TriggerIcon";
20+
import { PythonLogoIcon } from "~/assets/icons/PythonLogoIcon";
2021

2122
type TaskIconProps = {
2223
name: string | undefined;
@@ -71,6 +72,8 @@ export function RunIcon({ name, className, spanName }: TaskIconProps) {
7172
return <RectangleStackIcon className={cn(className, "text-purple-500")} />;
7273
case "trigger":
7374
return <TriggerIcon className={cn(className, "text-orange-500")} />;
75+
case "python":
76+
return <PythonLogoIcon />;
7477
//log levels
7578
case "debug":
7679
case "log":

0 commit comments

Comments
 (0)