Food Service - #3
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements the food service functionality by creating new API endpoints and dashboard components.
- Adds API functions for vendor, vendor plan, and vendor plan selection management
- Implements dashboard components for quick stats, mess menu, and mess feedback
- Creates a new food services page integrating these components
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/api/food-services.ts | New API endpoints for food service operations |
| src/components/dashboard/food-services/QuickStats.tsx | Dashboard component displaying vendor and plan stats |
| src/components/dashboard/food-services/MessMenu.tsx | Component for displaying the monthly mess menu image |
| src/components/dashboard/food-services/MessFeedback.tsx | Component enabling users to submit feedback |
| src/app/(dashboard)/food-services/page.tsx | Main page integrating food service components |
| const { theme } = useTheme(); | ||
| const isDark = theme === "dark"; | ||
|
|
||
| const [selectedType, setSelectedType] = useState<string>(data.mealTypes[0] || ''); |
There was a problem hiding this comment.
The 'selectedType' state is defined but not used in the component. Either remove it or integrate it into the UI logic.
| </div> | ||
| <div className="flex flex-wrap gap-2"> | ||
| {data.mealTypes.map(type => { | ||
| const isSelected = type === 'Veg'; |
There was a problem hiding this comment.
The selection check for meal types is hard-coded to 'Veg'; consider using the 'selectedType' state to dynamically determine the selected meal type.
| const isSelected = type === 'Veg'; | |
| const isSelected = type === selectedType; |
|
@SarthakPaandey why Quick Stat component is not there ?Please check Also the border radius of the divs (Mess Feed back ) is more than now , add box shadow there . Please thoroughly check the figma |

Implemented the food service.