Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore(deps): bump lucide-react to 1.x and vendor the GitHub mark

Andrej6c98c281d2a4
diff --git a/apps/site/components/icons/github-icon.tsx b/apps/site/components/icons/github-icon.tsx
new file mode 100644
index 000000000..4f900afaf
--- /dev/null
+++ b/apps/site/components/icons/github-icon.tsx
@@ -0,0 +1,16 @@
+import type { SVGProps } from "react";
+
+// lucide-react dropped its brand icons in v1, so the GitHub mark lives here.
+export function GithubIcon(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ aria-hidden="true"
+ focusable="false"
+ {...props}
+ >
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.625-5.479 5.921.43.372.823 1.102.823 2.222 0 1.606-.015 2.898-.015 3.293 0 .322.216.696.825.577C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
+ </svg>
+ );
+}
diff --git a/apps/site/components/landing/hero.tsx b/apps/site/components/landing/hero.tsx
index 181c63796..dd9c2f40a 100644
--- a/apps/site/components/landing/hero.tsx
+++ b/apps/site/components/landing/hero.tsx
@@ -1,6 +1,7 @@
"use client";
-import { Github } from "lucide-react";
+import {} from "lucide-react";
+import { GithubIcon } from "@/components/icons/github-icon";
import { AppPreview } from "@/components/landing/app-preview";
import { FadeIn } from "@/components/landing/fade-in";
import { Button } from "@/components/ui/button";
@@ -53,7 +54,7 @@ export function Hero() {
window.location.href = "https://github.com/usekaneo/kaneo";
}}
>
- <Github className="h-4 w-4" />
+ <GithubIcon className="h-4 w-4" />
GitHub
</Button>
<Button
diff --git a/apps/site/package.json b/apps/site/package.json
index f40aad559..4cbd0c98b 100644
--- a/apps/site/package.json
+++ b/apps/site/package.json
@@ -14,7 +14,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.4.0",
- "lucide-react": "^0.563.0",
+ "lucide-react": "^1.28.0",
"next": "16.2.12",
"radix-ui": "^1.6.7",
"react": "19.2.8",
diff --git a/apps/web/package.json b/apps/web/package.json
index 09e10a645..577e4aa31 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -78,7 +78,7 @@
"immer": "^11.1.15",
"input-otp": "^1.4.2",
"lowlight": "^3.3.0",
- "lucide-react": "^0.577.0",
+ "lucide-react": "^1.28.0",
"marked": "^17.0.4",
"nanostores": "^1.4.2",
"radix-ui": "^1.6.7",
diff --git a/apps/web/src/components/activity/comment-card.tsx b/apps/web/src/components/activity/comment-card.tsx
index 68c661841..efc764744 100644
--- a/apps/web/src/components/activity/comment-card.tsx
+++ b/apps/web/src/components/activity/comment-card.tsx
@@ -1,8 +1,9 @@
import { useQueryClient } from "@tanstack/react-query";
-import { ExternalLink, Github, Pencil, Trash2 } from "lucide-react";
+import { ExternalLink, Pencil, Trash2 } from "lucide-react";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import CommentEditor from "@/components/activity/comment-editor";
+import { GithubIcon } from "@/components/icons/github-icon";
import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
@@ -144,7 +145,7 @@ export default function CommentCard({
)}
{isFromGitHub && (
<div className="mt-1.5 flex items-center gap-1">
- <Github className="size-3 text-muted-foreground" />
+ <GithubIcon className="size-3 text-muted-foreground" />
<span className="text-xs text-muted-foreground">
{t("activity:comment.github")}
</span>
@@ -193,7 +194,7 @@ export default function CommentCard({
rel="noopener noreferrer"
className="flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"
>
- <Github className="size-3" />
+ <GithubIcon className="size-3" />
{t("activity:comment.commentedOnGithub")}
</a>
</>
diff --git a/apps/web/src/components/auth/sso-providers.tsx b/apps/web/src/components/auth/sso-providers.tsx
index 1463dbf5e..16ec4169f 100644
--- a/apps/web/src/components/auth/sso-providers.tsx
+++ b/apps/web/src/components/auth/sso-providers.tsx
@@ -1,6 +1,7 @@
-import { Github, KeyRound } from "lucide-react";
+import { KeyRound } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
+import { GithubIcon } from "@/components/icons/github-icon";
import { Button } from "@/components/ui/button";
import type { GetConfigResponse } from "@/fetchers/config/get-config";
import { authClient } from "@/lib/auth-client";
@@ -106,7 +107,7 @@ export function SSOProviders({
onClick={() => handleSocial("github", "auth:signIn.githubError")}
label={t("auth:signIn.continueWithGithub")}
loadingLabel={t("auth:signIn.signingIn")}
- icon={<Github className="w-5 h-5 mr-2" />}
+ icon={<GithubIcon className="w-5 h-5 mr-2" />}
/>
)}
{config?.hasDiscordSignIn && (
diff --git a/apps/web/src/components/external-links/external-links-accordion.tsx b/apps/web/src/components/external-links/external-links-accordion.tsx
index 0f9929e59..cee165e57 100644
--- a/apps/web/src/components/external-links/external-links-accordion.tsx
+++ b/apps/web/src/components/external-links/external-links-accordion.tsx
@@ -2,12 +2,12 @@ import {
ChevronDown,
ChevronRight,
FolderGit,
- Github,
GitMerge,
GitPullRequest,
} from "lucide-react";
import { useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
+import { GithubIcon } from "@/components/icons/github-icon";
import { Button } from "@/components/ui/button";
import {
Collapsible,
@@ -132,7 +132,7 @@ export function ExternalLinksAccordion({
{isGiteaResourceLink(link) ? (
<FolderGit className="size-4 flex-shrink-0 text-muted-foreground" />
) : (
- <Github className="size-4 flex-shrink-0 text-muted-foreground" />
+ <GithubIcon className="size-4 flex-shrink-0 text-muted-foreground" />
)}
<span className="text-sm truncate flex-1 text-foreground/90 group-hover:text-foreground">
{link.title || link.externalId}
diff --git a/apps/web/src/components/icons/github-icon.tsx b/apps/web/src/components/icons/github-icon.tsx
new file mode 100644
index 000000000..4f900afaf
--- /dev/null
+++ b/apps/web/src/components/icons/github-icon.tsx
@@ -0,0 +1,16 @@
+import type { SVGProps } from "react";
+
+// lucide-react dropped its brand icons in v1, so the GitHub mark lives here.
+export function GithubIcon(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ aria-hidden="true"
+ focusable="false"
+ {...props}
+ >
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.625-5.479 5.921.43.372.823 1.102.823 2.222 0 1.606-.015 2.898-.015 3.293 0 .322.216.696.825.577C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
+ </svg>
+ );
+}
diff --git a/apps/web/src/components/project/github-integration-settings.tsx b/apps/web/src/components/project/github-integration-settings.tsx
index 3d72fa855..1c932a2d0 100644
--- a/apps/web/src/components/project/github-integration-settings.tsx
+++ b/apps/web/src/components/project/github-integration-settings.tsx
@@ -4,7 +4,6 @@ import {
CheckCircle,
ExternalLink,
GitBranch,
- Github,
Import,
Link,
RefreshCw,
@@ -15,6 +14,7 @@ import React from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { z } from "zod/v4";
+import { GithubIcon } from "@/components/icons/github-icon";
import { RepositoryBrowserModal } from "@/components/project/repository-browser-modal";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
@@ -310,7 +310,7 @@ export function GitHubIntegrationSettings({
</p>
</div>
<div className="flex items-center gap-2 text-sm">
- <Github className="w-4 h-4" />
+ <GithubIcon className="w-4 h-4" />
<span className="font-medium">
{integration.repositoryOwner}/{integration.repositoryName}
</span>
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
index 85fab6480..416a32e15 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
@@ -2,7 +2,6 @@ import { createFileRoute } from "@tanstack/react-router";
import {
ChevronDown,
FolderGit,
- Github,
MessageCircle,
Radio,
Send,
@@ -10,6 +9,7 @@ import {
} from "lucide-react";
import type { ReactNode } from "react";
import { useTranslation } from "react-i18next";
+import { GithubIcon } from "@/components/icons/github-icon";
import PageTitle from "@/components/page-title";
import { DiscordIntegrationSettings } from "@/components/project/discord-integration-settings";
import { GenericWebhookIntegrationSettings } from "@/components/project/generic-webhook-integration-settings";
@@ -48,7 +48,7 @@ function RouteComponent() {
<div className="space-y-6">
<IntegrationSection
- icon={<Github className="size-4" />}
+ icon={<GithubIcon className="size-4" />}
subtitle={t("settings:projectIntegrations.githubSectionSubtitle")}
title={t("settings:projectIntegrations.githubSectionTitle")}
>
diff --git a/apps/web/src/routes/auth/sign-in.tsx b/apps/web/src/routes/auth/sign-in.tsx
index 894bad2ac..f5037b774 100644
--- a/apps/web/src/routes/auth/sign-in.tsx
+++ b/apps/web/src/routes/auth/sign-in.tsx
@@ -3,10 +3,11 @@ import {
useNavigate,
useSearch,
} from "@tanstack/react-router";
-import { Github, KeyRound, UserCheck } from "lucide-react";
+import { KeyRound, UserCheck } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { z } from "zod/v4";
+import { GithubIcon } from "@/components/icons/github-icon";
import PageTitle from "@/components/page-title";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
@@ -349,7 +350,7 @@ function SignIn() {
lastLoginMethod === "github" && "border-primary/50!",
)}
>
- <Github className="w-5 h-5 mr-2" />
+ <GithubIcon className="w-5 h-5 mr-2" />
{isGithubLoading
? t("auth:signIn.signingIn")
: t("auth:signIn.continueWithGithub")}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c1a7a05fa..adc13ef69 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -200,8 +200,8 @@ importers:
specifier: ^4.4.0
version: 4.4.0
lucide-react:
- specifier: ^0.563.0
- version: 0.563.0([email protected])
+ specifier: ^1.28.0
+ version: 1.29.0([email protected])
next:
specifier: '>=15.5.18 <16.0.0 || >=16.2.6'
@@ -447,8 +447,8 @@ importers:
specifier: ^3.3.0
version: 3.3.0
lucide-react:
- specifier: ^0.577.0
- version: 0.577.0([email protected])
+ specifier: ^1.28.0
+ version: 1.29.0([email protected])
marked:
specifier: ^17.0.4
version: 17.0.4
@@ -5904,13 +5904,8 @@ packages:
resolution: {integrity: sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA==}
engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'}
- resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==}
- peerDependencies:
- react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
- resolution: {integrity: sha512-4LjoFv2eEPwYDPg/CUdBJQSDfPyzXCRrVW1X7jrx/trgxnxkHFjnVZINbzvzxjN70dxychOfg+FTYwBiS3pQ5A==}
+ resolution: {integrity: sha512-Xs9QFG5+9sNX04MdKVT4++umA+hJ2qsJVlRlRWHQ7qZobXgMiNHSpZ5eZm8JUoGCdNyoEdXoEwa8HVr0DNjOQg==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
@@ -12862,11 +12857,7 @@ snapshots:
optional: true
- dependencies:
- react: 19.2.8
-
dependencies:
react: 19.2.8