Project

General

Profile

Actions

ClientProject #3263

open

[FE] Auto parts back order

Added by Nazmul Hossain Shovon 7 months ago. Updated 6 months ago.

Status:
Complete
Priority:
High
Target version:
Start date:
09/17/2025
Due date:
09/17/2025 (about 7 months late)
% Done:

100%

Estimated time:
4:00 h
Spent time:
Actions #1

Updated by Nazmul Hossain Shovon 7 months ago

  • % Done changed from 0 to 100

ref:
https://github.com/pqsjapan/frontendV1.1/commit/d34d4747079f34dedd29f5f3df005f0296fa2a96

Summary of Key Changes

This commit introduces a complete auto parts back order functionality with the following major changes:

  1. New Page Creation: Added a new page at /auto-parts-back-order with a comprehensive form for back ordering auto parts.

  2. Enhanced Form Functionality:

    • Added transmission type selection field
    • Included additional shipping address fields (city, address, nearest port)
    • Implemented image upload capability with base64 encoding
    • Added dynamic model selection based on maker selection
  3. Form Validation:

    • Created a comprehensive Zod validation schema for all form fields
    • Added validation for chassis number, parts name/number, and contact information
    • Implemented client-side validation with error messaging
  4. API Integration:

    • Updated the auto parts form submission API route to handle new fields
    • Modified the request body structure to include transmission type, address details, and image data
  5. Component Restructuring:

    • Created reusable components for the form section, server wrapper, and status display
    • Extracted how-to-buy stats into a separate reusable component
    • Implemented animated counters for the status section
  6. Data Handling:

    • Added dynamic model fetching based on maker selection
    • Implemented proper data transformation for API submission
    • Added loading states and error handling
Actions #2

Updated by Nazmul Hossain Shovon 7 months ago

ref:
https://github.com/pqsjapan/frontendV1.1/commit/82f3e0c3fb93ab0ce9f3b74590e87568529d67c0

Summary of Key Changes:

  • Updated padding, margin, and gap classes for better responsiveness across breakpoints.
  • Adjusted heading font sizes for improved mobile and desktop readability.
  • Refined grid gaps and button sizing for consistent UI on different devices.
  • Enhanced overall layout for a cleaner, more user-friendly form experience.
Actions #4

Updated by Nazmul Hossain Shovon 6 months ago

  • Status changed from In Progress to Complete
Actions

Also available in: Atom PDF