⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(web): extend external links for Gitea sources and icons
Tin90badc777e62
diff --git a/apps/site/types/external-link/index.ts b/apps/site/types/external-link/index.tsindex 9f3ed949e..c03c00251 100644--- a/apps/site/types/external-link/index.ts+++ b/apps/site/types/external-link/index.ts@@ -5,7 +5,7 @@ export type ExternalLinkMetadata = {draft?: boolean;branch?: string;author?: string;- createdFrom?: "github" | "kaneo";+ createdFrom?: "github" | "kaneo" | "gitea" | "gitea-import" | "github-import";lastCommit?: {sha: string;message: string;diff --git a/apps/web/src/components/external-links/external-links-accordion.tsx b/apps/web/src/components/external-links/external-links-accordion.tsxindex 56d0379fd..0f9929e59 100644--- a/apps/web/src/components/external-links/external-links-accordion.tsx+++ b/apps/web/src/components/external-links/external-links-accordion.tsx@@ -1,6 +1,7 @@import {ChevronDown,ChevronRight,+ FolderGit,Github,GitMerge,GitPullRequest,@@ -20,6 +21,14 @@ interface ExternalLinksAccordionProps {isLoading?: boolean;}+function isGiteaResourceLink(link: ExternalLink) {+ if (link.integration?.type === "gitea") {+ return true;+ }+ const from = link.metadata?.createdFrom;+ return from === "gitea" || from === "gitea-import";+}+export function ExternalLinksAccordion({externalLinks,isLoading,@@ -120,7 +129,11 @@ export function ExternalLinksAccordion({rel="noopener noreferrer"className="group flex items-center gap-3 py-2 px-3 rounded-md hover:bg-accent/50 transition-colors">- <Github className="size-4 flex-shrink-0 text-muted-foreground" />+ {isGiteaResourceLink(link) ? (+ <FolderGit className="size-4 flex-shrink-0 text-muted-foreground" />+ ) : (+ <Github 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}{link.resourceType !== "branch" && (diff --git a/apps/web/src/types/external-link/index.ts b/apps/web/src/types/external-link/index.tsindex d18e581e9..e2dacc784 100644--- a/apps/web/src/types/external-link/index.ts+++ b/apps/web/src/types/external-link/index.ts@@ -5,7 +5,7 @@ export type ExternalLinkMetadata = {draft?: boolean;branch?: string;author?: string;- createdFrom?: "github" | "kaneo";+ createdFrom?: "github" | "kaneo" | "gitea" | "gitea-import" | "github-import";lastCommit?: {sha: string;message: string;