diff --git a/src/views/dashboard/Flashcards.tsx b/src/views/dashboard/Flashcards.tsx index 322e81c..c88c1f6 100644 --- a/src/views/dashboard/Flashcards.tsx +++ b/src/views/dashboard/Flashcards.tsx @@ -23,6 +23,17 @@ import { getOriginTag, matchesOriginFilter } from '@/lib/question-origin'; type ViewMode = 'cards' | 'list'; +const REPO_ISSUES_URL = 'https://github.com/espora-net/Folio/issues/new'; + +const buildFlashcardIssueUrl = (flashcardId: string) => { + const params = new URLSearchParams({ + title: `[Flashcard] Feedback: ${flashcardId}`, + body: `**Flashcard ID:** \`${flashcardId}\`\n\nDescribe tu feedback sobre esta flashcard:\n\n`, + labels: 'flashcard-feedback', + }); + return `${REPO_ISSUES_URL}?${params.toString()}`; +}; + const Flashcards = () => { const [flashcards, setFlashcards] = useState([]); const [topics, setTopics] = useState([]); @@ -345,12 +356,19 @@ const Flashcards = () => { const tag = getOriginTag(currentCard.origin); const Icon = tag.icon; return ( - e.stopPropagation()} > - {tag.label} - + + {tag.label} + + ); })()} @@ -574,12 +592,19 @@ const Flashcards = () => { )} - e.stopPropagation()} > - <> {tag.label} - + + <> {tag.label} + + {tag.tooltip} @@ -614,12 +639,19 @@ const Flashcards = () => { )} - e.stopPropagation()} > - <> {tag.label} - + + <> {tag.label} + + {tag.tooltip}