From 8951ebfc8db5dd3a71607be45964931ccbbd4704 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:05:44 +0000 Subject: [PATCH 1/2] Initial plan From 132c0e24a0150703f998fe4dd2c66f7e213f40ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:10:01 +0000 Subject: [PATCH 2/2] fix: resolve ESLint curly brace and unused variable errors causing CI failure Co-authored-by: Rtur2003 <111705644+Rtur2003@users.noreply.github.com> --- platform/pages/ai-music-detection/index.tsx | 20 ++++++++++++----- platform/pages/crown-dreams/index.tsx | 8 +++---- platform/pages/crown-fortune/index.tsx | 24 +++++++++++++++------ platform/pages/data-manipulation/index.tsx | 6 +++--- 4 files changed, 39 insertions(+), 19 deletions(-) diff --git a/platform/pages/ai-music-detection/index.tsx b/platform/pages/ai-music-detection/index.tsx index 3893b7e..8d453c4 100644 --- a/platform/pages/ai-music-detection/index.tsx +++ b/platform/pages/ai-music-detection/index.tsx @@ -112,7 +112,9 @@ const AIMusicDetectionPage: NextPage = () => { const formatFileSize = (bytes: number) => `${(bytes / 1024 / 1024).toFixed(2)} MB` const resolveErrorMessage = (errorKey: string | null) => { - if (!errorKey) return null + if (!errorKey) { + return null + } switch (errorKey) { case 'enterUrl': return t.aiDetection.errors?.enterUrl || t.aiDetection.error.title @@ -153,14 +155,22 @@ const AIMusicDetectionPage: NextPage = () => { const getDecisionLabel = (source: string) => { const labels = t.aiDetection.result.sources - if (!labels) return source - if (source === 'music_ai') return labels.musicAi - if (source === 'ses_analizi') return labels.sesAnalizi + if (!labels) { + return source + } + if (source === 'music_ai') { + return labels.musicAi + } + if (source === 'ses_analizi') { + return labels.sesAnalizi + } return labels.preview } const renderAnalysisResult = () => { - if (!analysisResult) return null + if (!analysisResult) { + return null + } const confidence = Math.round(analysisResult.confidence * 100) const decisionLabel = getDecisionLabel(analysisResult.decisionSource) diff --git a/platform/pages/crown-dreams/index.tsx b/platform/pages/crown-dreams/index.tsx index 7cfde58..1499ba2 100644 --- a/platform/pages/crown-dreams/index.tsx +++ b/platform/pages/crown-dreams/index.tsx @@ -16,7 +16,6 @@ import { BookOpen, X, Clock, - Heart, AlertTriangle, Repeat, Compass, @@ -34,8 +33,7 @@ import { formatDreamDate, truncateDreamContent, type DreamEntry, - type DreamType, - type EmotionType + type DreamType } from '@/data/dreams' import styles from '@/styles/pages/crown-dreams.module.css' @@ -50,7 +48,7 @@ const DREAM_TYPE_ICONS: Record = { } const CrownDreamsPage: NextPage = () => { - const { language, t } = useLanguage() + const { language } = useLanguage() const [selectedDream, setSelectedDream] = useState(null) const [searchQuery, setSearchQuery] = useState('') const [activeFilter, setActiveFilter] = useState('all') @@ -158,7 +156,7 @@ const CrownDreamsPage: NextPage = () => { animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.6, delay: 0.1 }} > - {statCards.map((stat, i) => ( + {statCards.map((stat) => (
diff --git a/platform/pages/crown-fortune/index.tsx b/platform/pages/crown-fortune/index.tsx index a53c3a3..7392c57 100644 --- a/platform/pages/crown-fortune/index.tsx +++ b/platform/pages/crown-fortune/index.tsx @@ -97,7 +97,9 @@ const CrownFortunePage: NextPage = () => { // Load destiny useEffect(() => { - if (!mounted) return + if (!mounted) { + return + } const loadDestiny = () => { const daily = getDailyDestiny() @@ -145,7 +147,9 @@ const CrownFortunePage: NextPage = () => { // Countdown useEffect(() => { - if (!mounted) return + if (!mounted) { + return + } const update = () => { const ms = getTimeUntilMidnightGMT3() @@ -162,7 +166,9 @@ const CrownFortunePage: NextPage = () => { // Midnight reset check useEffect(() => { - if (!mounted) return + if (!mounted) { + return + } const check = () => { const today = getTurkeyDate() @@ -188,7 +194,9 @@ const CrownFortunePage: NextPage = () => { }, [mounted, destiny]) const spinWheel = useCallback(() => { - if (!destiny || isSpinning || showCard) return + if (!destiny || isSpinning || showCard) { + return + } setIsSpinning(true) @@ -210,10 +218,14 @@ const CrownFortunePage: NextPage = () => { }, [destiny, isSpinning, showCard]) const handleReverseDestiny = useCallback(() => { - if (!destiny) return + if (!destiny) { + return + } // Zaten reverse ise veya flip devam ediyorsa işlem yapma - if (isReversed || isFlipping) return + if (isReversed || isFlipping) { + return + } // Start flip animation setIsFlipping(true) diff --git a/platform/pages/data-manipulation/index.tsx b/platform/pages/data-manipulation/index.tsx index 150cbf5..c464edc 100644 --- a/platform/pages/data-manipulation/index.tsx +++ b/platform/pages/data-manipulation/index.tsx @@ -19,7 +19,6 @@ import type { NextPage } from 'next' import { motion, AnimatePresence } from 'framer-motion' import { MainLayout } from '@/components/Layout/MainLayout' import { - Upload, RefreshCw, Music, FolderOpen, @@ -117,8 +116,9 @@ const AudioDatasetPage: NextPage = () => { const blob = await response.blob() const url = window.URL.createObjectURL(blob) setProcessedFileUrl(url) - } catch (err: any) { - setError(err.message || t.audioDataset.interface.errors.unexpected) + } catch (err: unknown) { + const errorMessage = err instanceof Error ? err.message : t.audioDataset.interface.errors.unexpected + setError(errorMessage) } finally { setIsProcessing(false) }