Phase 2 Complete by Claude Code

This commit is contained in:
2026-02-17 00:10:37 +02:00
parent 5e2d4b6b1b
commit 2b48426fe5
17 changed files with 1671 additions and 14 deletions

View File

@@ -2,6 +2,9 @@ import { Routes, Route, Navigate } from "react-router-dom";
import { useAuth } from "./auth/AuthContext";
import LoginPage from "./auth/LoginPage";
import MainLayout from "./layout/MainLayout";
import MelodyList from "./melodies/MelodyList";
import MelodyDetail from "./melodies/MelodyDetail";
import MelodyForm from "./melodies/MelodyForm";
function ProtectedRoute({ children }) {
const { user, loading } = useAuth();
@@ -46,8 +49,11 @@ export default function App() {
}
>
<Route index element={<DashboardPage />} />
{/* Phase 2+ routes:
<Route path="melodies" element={<MelodyList />} />
<Route path="melodies/new" element={<MelodyForm />} />
<Route path="melodies/:id" element={<MelodyDetail />} />
<Route path="melodies/:id/edit" element={<MelodyForm />} />
{/* Phase 3+ routes:
<Route path="devices" element={<DeviceList />} />
<Route path="users" element={<UserList />} />
<Route path="mqtt" element={<MqttDashboard />} />