Skip to content

Monikamoni23/test

Repository files navigation

Contract Management Application (Phase-1 Prototype)

UI-only prototype built with Next.js App Router, TypeScript, Tailwind CSS, and shadcn/ui-style components. All data is mocked under src/mock and stored in React context for demo-ready flows.

Folder Structure

src/
  app/
    dashboard/
    contracts/
      new/
      [id]/
    reports/weekly-shipments/
    reconciliation/
    settings/master-data/
    login/
  components/
    ui/
    app-shell.tsx
    breadcrumbs.tsx
    csv-download-button.tsx
    data-table.tsx
    drawer-form.tsx
    form-field.tsx
    kpi-card.tsx
    status-badge.tsx
    stepper.tsx
    toast-provider.tsx
  context/
    contracts-context.tsx
  lib/
    utils.ts
  mock/
    allocations.ts
    contracts.ts
    email-log.ts
    reconciliation.ts
    shipments.ts
  types/
    index.ts

Getting Started

  1. Install dependencies:
npm install
  1. Run the dev server:
npm run dev
  1. Open http://localhost:3000.

Demo Flow Script

  1. Login: Use any email/password on /login and sign in.
  2. Create Contract: Navigate to /contracts/new, fill in contract details, and submit.
  3. Allocate: On the contract detail page, open the Allocation tab and add allocation lines. Confirm allocation to lock it.
  4. Shipments: Add shipment advice lines using the drawer. Mark a shipment as shipped in the detail drawer.
  5. Weekly CSV: Visit /reports/weekly-shipments and click “Generate CSV Now” to download a mock CSV and add a log entry.
  6. Reconciliation: Go to /reconciliation, upload the mock buyer file, and mark a mismatch as resolved.
  7. Master Data: Review static master data on /settings/master-data.

Notes

  • All data is stored in React state (no backend).
  • Client-side validation uses Zod.
  • Toasts provide feedback for key actions.
  • Use the sidebar to move between modules.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages