recipe-manager/frontend
Paul Huliganga 6b0f2e10c6 feat(frontend): add comprehensive error handling and toast notifications
- Created Toast component with slide-in animation for success/error/info/warning messages
- Created useToast hook for managing toast notifications globally
- Added ToastContext to App.tsx for sharing toast functionality across components
- Implemented ErrorBoundary component to catch and display React errors gracefully
- Updated RecipeDetailPage to show toast notifications for all operations (create, update, delete, tag management)
- Updated TagSelector to use toast notifications instead of alert()
- Added proper error handling for all API operations with user-friendly messages
- Added loading states for delete operation
- Verified: All 34 backend tests passing, frontend builds successfully
2026-03-24 04:28:28 -04:00
..
public feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
src feat(frontend): add comprehensive error handling and toast notifications 2026-03-24 04:28:28 -04:00
.gitignore feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
README.md feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
eslint.config.js feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
index.html feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
package-lock.json feat(frontend): configure Tailwind CSS v4 with PostCSS 2026-03-24 00:42:34 -04:00
package.json feat(frontend): configure Tailwind CSS v4 with PostCSS 2026-03-24 00:42:34 -04:00
postcss.config.js feat(frontend): configure Tailwind CSS v4 with PostCSS 2026-03-24 00:42:34 -04:00
tailwind.config.js feat(frontend): configure Tailwind CSS v4 with PostCSS 2026-03-24 00:42:34 -04:00
tsconfig.app.json feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
tsconfig.json feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
tsconfig.node.json feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00
vite.config.ts feat(frontend): initialize React + Vite project with TypeScript 2026-03-24 00:27:17 -04:00

README.md

Recipe Manager - Frontend

React + TypeScript frontend for the Recipe Manager application.

Tech Stack

  • React 19 - UI framework
  • TypeScript - Type safety
  • Vite - Build tool and dev server
  • React Router 7 - Client-side routing

Development

# Install dependencies
npm install

# Start dev server (http://localhost:5173)
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

# Lint code
npm run lint

Project Structure

src/
├── components/     # Reusable UI components
├── hooks/          # Custom React hooks
├── pages/          # Route pages
├── services/       # API client and business logic
├── types/          # TypeScript interfaces
├── App.tsx         # Root component
└── main.tsx        # Application entry point

Next Steps

  • Configure Tailwind CSS
  • Set up React Router
  • Create recipe list page
  • Create recipe detail/edit page
  • Implement cook mode UI

Architecture

See /ARCHITECTURE.md for full system architecture and patterns.