celebrate

This commit is contained in:
Auto
2025-12-30 19:34:33 +02:00
parent 53c6362e27
commit 9fe3f3b17d
5 changed files with 210 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { useState, useEffect, useCallback } from 'react'
import { useProjects, useFeatures } from './hooks/useProjects'
import { useProjectWebSocket } from './hooks/useWebSocket'
import { useFeatureSound } from './hooks/useFeatureSound'
import { useCelebration } from './hooks/useCelebration'
const STORAGE_KEY = 'autonomous-coder-selected-project'
import { ProjectSelector } from './components/ProjectSelector'
@@ -37,6 +38,9 @@ function App() {
// Play sounds when features move between columns
useFeatureSound(features)
// Celebrate when all features are complete
useCelebration(features, selectedProject)
// Persist selected project to localStorage
const handleSelectProject = useCallback((project: string | null) => {
setSelectedProject(project)