Skip to main content

Welcome to CEDIS Pedidos

CEDIS Pedidos is a centralized web platform designed for logistics optimization between multiple branches (sucursales) and distribution centers (CEDIS). The system streamlines the entire order workflow from initial request to final dispatch.

Quick Start

Get your environment set up and running in minutes

Branch Workflow

Learn how branches create and manage orders

Admin Dashboard

Discover admin features for order approval and management

Technical Reference

Explore the system architecture and database design

Key Features

Role-Based Access

Secure authentication with distinct workflows for administrators and branch users

Dynamic Weight Calculator

Real-time weight tracking with an 11,500 kg limit and visual progress indicators

Order State Management

Complete workflow: draft → sent → approved → printed with audit trail

Materials Catalog

168 pre-configured materials across 5 categories with automatic calculations

PDF Generation

Specialized sorting format for warehouse operations with multi-page layout

Row-Level Security

Supabase RLS ensures branches only access their own orders

Technology Stack

CEDIS Pedidos is built with modern technologies for reliability and performance:
  • Frontend: React 19 with TypeScript and Tailwind CSS
  • Backend: Supabase (PostgreSQL + Authentication + Row-Level Security)
  • State Management: Zustand for predictable state updates
  • Build Tool: Vite for fast development and optimized production builds
  • Deployment: Vercel-ready static site generation

Use Cases

Centralize order requests from multiple branch locations to a single distribution center. Each branch maintains its own order history and draft orders while administrators have full visibility across all locations.
Track aggregate demand across all branches with real-time weight calculations. The system automatically calculates weights based on material properties and requested quantities, helping optimize truck capacity and delivery schedules.
Generate specialized PDF formats that organize materials by category for efficient picking and packing. The printable format divides orders into separate sections for raw materials, containers, essences, colors, and miscellaneous items.
Maintain complete audit trails with timestamps for order creation, submission, approval, and printing. Row-level security ensures regulatory compliance by restricting data access to authorized users only.

System Overview

CEDIS Pedidos replaces manual Excel-based order forms (FT-DOP-SUC-PED-04-00) with a web-based platform that provides:
  1. Automated Code Generation: Orders are automatically assigned unique codes in the format [BRANCH]-[YYYYMMDD]-[SUFFIX]
  2. Real-Time Validation: Weight limits are enforced at both the application and database level
  3. Category-Specific Forms: Different material categories (raw materials, containers, essences) have tailored input forms
  4. Auto-Save Functionality: Drafts are automatically saved every 30 seconds to prevent data loss
  5. Multi-User Dashboard: Administrators can filter, search, and manage orders from all branches

Getting Started

Ready to get started? Check out our Quick Start Guide to set up your local development environment, or explore the User Guides to learn about specific workflows.

View on GitHub

Explore the source code and contribute to the project

Build docs developers (and LLMs) love