diff --git a/src/components/repo/RepoCard.tsx b/src/components/repo/RepoCard.tsx
index 27f890f..85bd38f 100644
--- a/src/components/repo/RepoCard.tsx
+++ b/src/components/repo/RepoCard.tsx
@@ -1,6 +1,7 @@
import type { Repo } from '../../types';
import { formatDistanceToNow } from 'date-fns';
import clsx from 'clsx';
+import { getTailwindColorClasses } from '../../utils/tagColors';
interface RepoCardProps {
repo: Repo & {
@@ -9,6 +10,7 @@ interface RepoCardProps {
percentage: number;
direction: 'up' | 'down' | 'stable';
};
+ tags?: Array<{ id: string; name: string; color: string }>;
};
viewMode?: 'grid' | 'list';
onClick: () => void;
@@ -109,6 +111,19 @@ export function RepoCard({ repo, viewMode = 'grid', onClick }: RepoCardProps) {
{repo.description || 'No description provided'}
+ {repo.tags && repo.tags.length > 0 && (
+
+ {repo.tags.map((tag) => (
+
+ {tag.name}
+
+ ))}
+
+ )}
+
{repo.language && (
diff --git a/src/components/repo/RepoDetail.tsx b/src/components/repo/RepoDetail.tsx
index 07c5125..3ccd507 100644
--- a/src/components/repo/RepoDetail.tsx
+++ b/src/components/repo/RepoDetail.tsx
@@ -4,6 +4,7 @@ import ReactMarkdown from 'react-markdown';
import type { Repo } from '../../types';
import { SimilarRepos } from './SimilarRepos';
import { StarHistoryChart } from './StarHistoryChart';
+import { TagManager } from './TagManager';
import { formatDistanceToNow } from 'date-fns';
import { githubApi } from '../../services/github';
import { Loader } from '../common/Loader';
@@ -118,6 +119,13 @@ export function RepoDetail({ repo, isOpen, onClose }: RepoDetailProps) {
)}
+
+
+ Tags
+
+
+
+