Skip to content

Frontend: Real-time WebSocket Delivery Status Badge #140

@johdanike

Description

@johdanike

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions