Description
johdanike opened on Jun 1
Member
📁 Implementation Directory
components/logistics/LiveStatusBadge.tsx
🎯 Goal
Display the current status of a delivery (Pending, In Transit, Delivered) that updates instantly without requiring a page refresh.
📋 Requirements
- Custom styled badge component (e.g., Yellow for Pending, Blue for Transit, Green for Delivered).
- Integration with a WebSocket or Server-Sent Events (SSE) hook.
- Pulse animation class applied when the status changes to draw the user's attention.
🔧 Technical Scope
React, Socket.io-client (or native WebSocket), Tailwind CSS
🌿 Branch
git checkout -b feat/live-status-badge
✅ Acceptance Criteria
- Badge state and color update immediately upon receiving a push event from the backend socket connection.
- 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(logistics): implement websocket-driven live status badge
Description
johdanike opened on Jun 1
Member
📁 Implementation Directory
components/logistics/LiveStatusBadge.tsx🎯 Goal
Display the current status of a delivery (Pending, In Transit, Delivered) that updates instantly without requiring a page refresh.
📋 Requirements
🔧 Technical Scope
React, Socket.io-client (or native WebSocket), Tailwind CSS
🌿 Branch
git checkout -b feat/live-status-badge✅ Acceptance Criteria
📌 PR Requirements
💬 Example Commit
feat(logistics): implement websocket-driven live status badge