LeafhavenDocs
System Architecture

Changelog & Module SemVer Registry

Master Milestone Changelog, Semantic Versioning 2.0.0 Ledger, and Package Version History

Changelog & Module SemVer Registry

Version Control Policy: All B2BExpo applications and internal packages adhere strictly to Semantic Versioning 2.0.0 (MAJOR.MINOR.PATCH). Changes are committed atomically with full traceability across the monorepo.


1. Monorepo Milestone Changelog

Version 1.3.0 (2026-09-27)

Theme: Production Authentication, Multi-Tenant RBAC, Real Database Store, and Automated Twenty CRM Sync

  • Production Authentication & Security Engine:
    • Implemented secure password hashing via Node.js native crypto.scryptSync with unique 16-byte random salts and crypto.timingSafeEqual verification.
    • Implemented 64-character cryptographic session tokens stored in HTTP-Only, Secure, SameSite=Lax cookies (b2bexpo_session) with 7-day TTL.
  • Persistent Database Engine (tradeos-store.json):
  • Registration & Login UI/UX:
    • Built /auth/login with 1-click test persona quick-switcher.
    • Built /auth/register with dual-tab persona selection (Indonesian PT/CV Exporters with 13-digit NIB verification vs. Global/Domestic Buyers).
    • Built /auth/invite for secure team member account activation.
  • Exporter Team Management (/seller#team):
    • Added dedicated "Tim & Kolaborator" workspace tab in Seller Console.
    • Enabled Exporter Owners to invite team members with role delegation (ADMIN, OPERATOR, COMPLIANCE_OFFICER, FINANCE_AUDITOR) and generate copyable invite links.
  • Dynamic Navbar Integration:
    • Updated Navbar to reflect live authenticated user session with role badges, tenant context, and single-click logout.
  • Automated Twenty CRM Sync:
    • Integrated bidirectional auto-sync for Exporter Company/Contact and Buyer Company/Contact/Opportunity into Twenty CRM with resilient outbox queue fallback.

Version 1.2.0 (2026-09-27)

Theme: Twenty CRM Outbox Integration, Exporter Telemetry, and Dribbble Design Refresh

  • Twenty CRM GraphQL Bridge:
    • Implemented @tradeos/twenty-bridge client and Server Actions in apps/web/app/actions/trade-crm.ts.
    • Mapped B2BExpo RFQ submissions to Twenty CRM Company, Person, and Opportunity entities.
    • Added dual live GraphQL and simulated transactional outbox fallback modes.
  • Exporter OS Console Telemetry:
    • Added dedicated Twenty CRM Leads & Outbox tab in /seller.
    • Live display of deal pipeline value, lead stages (NEW_LEAD, SAMPLE_REQUESTED, QUALIFIED), and outbox sync status.
  • Dribbble Luxury Minimalist Design Refresh:
    • Enforced 48px (h-12) height parity between global search input and primary CTA buttons.
    • Eliminated browser double-outlines via centralized focus rule (outline: none; box-shadow: 0 0 0 2px #F58E1E).
    • Restored comfortable, spacious page widths (max-w-7xl / 1400px) and removed nested card clutter in admin and seller layouts.
  • Documentation Suite Expansion:
    • Added Canonical Product Architecture, Twenty CRM Integration, Design System Evolution, and Changelog documentation on http://localhost:3001/docs.

Version 1.1.0 (2026-09-26)

Theme: Canonical PDP Architecture & Dual-Track Conversion

  • Canonical Commodity PDP (/commodity/[slug]):
    • Real-time FOB spot pricing reference ($1,850/MT FOB Priok).
    • Verified Laboratory COA metrics (moisture, defects, screen size).
    • EU Deforestation Regulation (EUDR) geolocation compliance passport.
  • Container Packing Advisor:
    • Mathematical modeling for 20ft FCL (33 CBM / 21.5 MT) and 40ft HC (76 CBM / 26.5 MT).
    • Real-time CBM volume and weight saturation calculation.
  • Dual-Track Conversion Mechanics:
    • $150 Commercial Sample Checkout with DHL/FedEx Express courier tracking.
    • Automated 100% Rebate Voucher generation (SAMPLE-REBATE-*) deductible on container orders.
  • Exporter OS Lot Registration Wizard:
    • Step-by-step batch creation for Indonesian agricultural cooperatives.

Version 1.0.0 (2026-09-25)

Theme: Turborepo Monorepo Architecture & Trade Core Engines

  • Initialized Turborepo monorepo with 11 core packages (@tradeos/types, @tradeos/db, @tradeos/trade-rfq, etc.).
  • Implemented PostgreSQL schema with Drizzle ORM and Row-Level Security (RLS).
  • Setup Next.js 15 Web Storefront (apps/web on port 3000) and Fumadocs Documentation Portal (apps/docs on port 3001).
  • Achieved 100% test pass rate (107/107 unit tests).

2. Active Module Version Registry

Module IDModule NamePackage / App PathCurrent VersionStatus
MOD-CORE-00Kernel Core & Typespackages/types, packages/dbv1.2.0OPERATIONAL
MOD-TRADE-01RFQ & Packing Enginepackages/trade-rfqv1.2.0OPERATIONAL
MOD-OUTBOX-02Transactional Outboxpackages/outboxv1.2.0OPERATIONAL
MOD-COMM-03Commerce Core & Escrowpackages/commerce-corev1.2.0OPERATIONAL
MOD-CRM-04Twenty CRM Bridgepackages/twenty-bridgev1.2.0OPERATIONAL
MOD-DOC-05Proforma PDF Automationpackages/trade-docsv1.1.0OPERATIONAL
MOD-TRUST-06Compliance & EUDRpackages/trade-compliancev1.1.0OPERATIONAL
MOD-SEC-07Enterprise Securitypackages/trade-securityv1.0.0OPERATIONAL
MOD-GEO-08Geo Localizationpackages/trade-geov1.0.0OPERATIONAL
MOD-DOM-09Custom Domain Routingpackages/trade-domainsv1.0.0OPERATIONAL
MOD-WEB-10Exporter Storefront Webapps/web (Port 3000)v1.2.0OPERATIONAL
MOD-DOCS-11Fumadocs Portalapps/docs (Port 3001)v1.2.0OPERATIONAL
MOD-SAMPLE-12Sample Commerce Engineapps/web/app/samplev1.2.0OPERATIONAL
MOD-PACK-13Container Packing Advisorapps/web/app/commodityv1.2.0OPERATIONAL
MOD-TELE-14Outbox & Telemetry Hubapps/web/app/sellerv1.2.0OPERATIONAL