Skip to content

fatmaserry/refund-orders-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refund Orders Dashboard

Overview

Refund Orders Dashboard is a web application designed to efficiently manage and track refund orders. It provides an interactive user interface with functionalities such as order status updates, decision management, and pagination for easy navigation.

Features

  • Refund Orders List: View a list of refund orders with detailed information.
  • Order Management: Change refund decisions (Accept, Reject, Escalate) and toggle order activation status.
  • Search & Filter: Quickly find specific refunds using search and filtering options.
  • Reusable Components: Built with modular and reusable UI components such as buttons, tables, modals, and form inputs for consistency and maintainability.
  • Statistics Dashboard: The home page features a statistics section displaying refund order insights, including totals, pending refunds, and decisions taken.
  • Order Details Page: Users can view detailed information about each refund order, including items, amounts, and decisions.
  • Responsive Sidebar: The sidebar navigation is fully responsive, ensuring a smooth experience across different devices.
  • Tailwind CSS Styling: The UI is styled using Tailwind CSS for a modern, clean, and efficient design.
  • Pagination: The refund orders list is paginated, displaying a maximum of 15 rows per page for better usability and performance.

Installation

Clone the repository and install dependencies:

# Clone the repository
git clone https://github.com/fatmaserry/refund-orders-dashboard.git
npm install

Running the Project

  1. Start the React development server:
    npm start  # or yarn start
  2. Open your browser and go to: http://localhost:3000

API Endpoints

The mock JSON server provides the following endpoints:

  • Fetch All Refund Orders

    GET /refunds

    Retrieves a list of all refund orders.

  • Fetch a Refund Order by ID

    GET /refunds/:id

    Retrieves a specific refund order by its ID.

  • Add a New Refund Order

    POST /refunds

    Adds a new refund order.

  • Update an Existing Refund Order

    PATCH /refunds/:id

    Updates an existing refund order with partial data.

Folder Structure

### Key Directories
refund-dashboard/
├── src/
│   ├── components/      # UI Components (Reusable UI elements)
│   ├── api/             # API Functions
│   ├── pages/           # Main Page Components
│   ├── App.tsx          # Main App Component
│   ├── index.tsx        # Entry Point
│   ├── layout/          # Sidebar and Layout Components
│   ├── context/         # Manages context providers for shared state
│   ├── pages/           # Includes the main page components for different views
│   ├── types/           # Contains TypeScript interfaces and types.
├── public/
│   ├── index.html       # HTML Template
│   └── assets/          # Static Assets
├── db.json              # Mock JSON Database
├── package.json         # Dependencies & Scripts

About

Web app for managing refund orders with interactive UI, decision controls, search, pagination, and a stats dashboard. Built with React, TypeScript, Tailwind CSS, and JSON Server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors