Description
johdanike opened on Jun 1
Member
📁 Implementation Directory
components/fleet/VehicleRegistration.tsx
🎯 Goal
Allow fleet managers to add new delivery vehicles to their roster for smart contract assignment.
📋 Requirements
- Inputs for Vehicle Make, Model, License Plate, and Cargo Capacity (kg).
- Dropdown selector for Vehicle Type (Motorcycle, Van, Truck).
- Form validation to ensure no duplicate license plates (handled via API validation feedback).
🔧 Technical Scope
React Hook Form, Zod, Tailwind CSS
🌿 Branch
git checkout -b feat/vehicle-registration-form
✅ Acceptance Criteria
- Valid payload is correctly submitted to the API, and success toast is displayed on 201 response.
- Strict Layered Architecture: Implement using the Component -> Hook -> Service pattern
- Data Source: Response data must be retrieved from the backend API. No Inline Mock Objects
- Screenshot of all implementations must be included in PR
- AI-generated PR submissions are strictly disallowed
- Closes #[issue_id] with a work summary included in the PR body
- Note a default in any of this will result to issue not being closed nor merged
📌 PR Requirements
- ⚠️ Assignment is required before starting — comment to request assignment
- PR must comply fully with CONTRIBUTING.md
- AI Agent submissions are DISALLOWED and will be closed without review
- Upload a screenshot showing all unit tests passing or API response
- PR description must include: Closes #[issue_id] and a brief summary of work done
💬 Example Commit
feat(fleet): create vehicle registration form with validation
Description
johdanike opened on Jun 1
Member
📁 Implementation Directory
components/fleet/VehicleRegistration.tsx🎯 Goal
Allow fleet managers to add new delivery vehicles to their roster for smart contract assignment.
📋 Requirements
🔧 Technical Scope
React Hook Form, Zod, Tailwind CSS
🌿 Branch
git checkout -b feat/vehicle-registration-form✅ Acceptance Criteria
📌 PR Requirements
💬 Example Commit
feat(fleet): create vehicle registration form with validation