Skip to content

fix(order): standardize initial order status across admin and frontend - #401

Merged
Nsanjayboruds merged 1 commit into
Nsanjayboruds:mainfrom
sujitha-kotyada:fix/order-status-consistency
Jul 25, 2026
Merged

fix(order): standardize initial order status across admin and frontend#401
Nsanjayboruds merged 1 commit into
Nsanjayboruds:mainfrom
sujitha-kotyada:fix/order-status-consistency

Conversation

@sujitha-kotyada

Copy link
Copy Markdown
Contributor

Pull Request

Summary

Standardize the initial order status across the admin and user frontends by using Placed consistently, while maintaining backward compatibility for existing Order Placed records.

Description

This PR fixes the inconsistency between the backend and frontend regarding the initial order status.

The backend creates new orders with the status Placed, whereas parts of the admin dashboard and user order tracking expected Order Placed. This mismatch caused incorrect status display, filtering, badge rendering, and dropdown behavior.

Changes Made

  • Updated the admin dashboard to use Placed as the canonical initial order status.
  • Standardized status filters, dropdown options, badge mappings, and displayed status values.
  • Updated the user order tracking step from Order Placed to Placed.
  • Added backward compatibility so existing Order Placed records continue to display and function correctly without requiring any database migration or backend API changes.

Testing

  • Verified changes locally.
  • Confirmed the application builds successfully.
  • Ran project linting with no errors.
  • Verified backend tests pass.
  • Confirmed that order status transitions (Placed → Packing → Shipped → Out for delivery → Delivered) continue to work as expected.

Related Issue

Fixes #398

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • UI/UX improvement
  • Refactoring

Checklist

  • Code follows project guidelines
  • Tested locally
  • No console errors

@Nsanjayboruds
Nsanjayboruds merged commit 279949f into Nsanjayboruds:main Jul 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Inconsistent order status values between backend and admin dashboard cause incorrect status display

2 participants