Changelog

v1.14.0

Track all changes, improvements, and new features in the Bill of Entry system.

Filter by type:
v1.14.0
๐Ÿ—‚๏ธ Customs Clearing: Document Intake, Gating & Vetting
2026-06-15
The Customs Clearing feature now matches the sea-freight SOP for the parts officers actually touch. Files open as a pure document-intake step, mandatory and conditional documents are captured per step and hard-block progression until present, the vessel ETA is tracked, Step 2 is a real vetting checklist (with a live HS-code lookup), and global admins can drive the workflow out of the box.

Key Highlights:

  • ๐Ÿ“ฅ Per-step document capture: upload, view/download and remove Commercial Invoice, Packing List and Bill of Lading โ€” plus conditional certificates that switch on from the cargo details (new client โ†’ TIN, plant/animal/food โ†’ Phytosanitary/Health, wooden packaging โ†’ Fumigation, Incoterm CIF โ†’ Insurance)
  • โ›” Hard-block gating: a file cannot leave a step until its required documents are on file โ€” the action button is disabled with the exact reason and the server rejects the same move
  • โœ… Step 2 vetting checklist: six SOP checks (invoice consistency, HS codes, currency/totals, BL/AWB match, freight charges, certified translation) must all be ticked before documents can be marked vetted; the HS-codes check has an inline searchable lookup against the HS module
  • ๐Ÿ“… Vessel ETA captured at intake and shown on the file
  • ๐Ÿ†• Intake-first create dialog: searchable importer/client picker, Incoterm selector and a live 'Documents you'll need' preview โ€” Bill of Entry linking moved to the file's Overview where it belongs
  • ๐Ÿงญ Per-step guidance panel showing each stage's actions and expected output, and a clearer 'Step X of 9' progress label
  • ๐Ÿ”‘ Global admins act as a clearing supervisor automatically, so the workflow is usable without first assigning a role

Detailed Changes:

Document intake, hard-block gating, ETA & vetting checklist for Customs Clearing
feature

Mandatory and conditional document capture with progression gating, vessel ETA tracking, a Step-2 vetting checklist with HS-module lookup, an intake-first create dialog, and admin-as-supervisor access.

pending
v1.13.0
โœจ One-Click Marketing Demos (Sizzle Reels)
2026-06-12
A reusable, project-agnostic Demo Engine that plays a one-click, auto-advancing product tour across pages โ€” it navigates, fills real forms with mock data, narrates the benefits, and ends on a faked 'โœ“ done'. It is pure client-side visual auto-play: no API or database is ever touched and nothing is saved. Kept entirely separate from the existing educational guided tours.

Key Highlights:

  • ๐Ÿ“ 'Create a Bill of Entry' demo: navigates to the new-BOE form, fills the header, opens the real Add Item dialog, searches the HS tariff, and ends on a faked success card
  • ๐Ÿšข 'Import & process a manifest' demo: navigates to the importer, auto-fills voyage details and shows a synthetic mapped-rows preview, then a faked 'โœ“ imported'
  • ๐ŸŽ›๏ธ Presenter control bar (Pause/Resume ยท Next ยท Restart ยท Exit + n/N progress) for pacing a 1โ€“2 minute live pitch
  • โ–ถ๏ธ Launch from the dashboard 'See it in action' card or the new 'Demos' group in the page help (?) menu
  • โ†ฉ๏ธ Exit reverts every injected form value (via the tour-bridge reset) โ€” nothing is written

Detailed Changes:

Reusable Demo Engine + Bill of Entry & Manifest sizzle reels
feature

One-click, auto-playing, benefit-led product demos that span multiple pages and fake their submissions. Built as a project-agnostic module so the same engine can drive demos in other apps.

pending
v1.12.0
๐Ÿšข Customs Clearing Workflow (Sea Freight)
2026-06-12
A new, separate feature that tracks a sea-freight shipment through the 9-stage customs clearing process โ€” from document intake to final delivery โ€” around ASYCUDA (it does not replace or integrate with ASYCUDA). Built additively: it links to existing Bills of Entry / manifests but changes none of the existing flows, so current users are unaffected until given a clearing role.

Key Highlights:

  • ๐Ÿ—‚๏ธ 9-box workflow board: a queue with status/SLA/my-queue filters and a detail page with a progress stepper, role-gated action buttons, assignment, blocking reasons, and an activity timeline
  • ๐Ÿ” Five operational roles (Pre-Clearance Officer, Clearing Officer, Accounts/Finance, Transport Manager, Supervisor); each workflow step is gated to the roles allowed to perform it
  • โœ… Guarded transitions: a declaration can't be submitted without confirmed funds + a ready manifest, and cargo can't be released without confirmed payment
  • ๐Ÿงญ New 'Customs Clearing' sidebar group + a dashboard summary card, shown only to clearing-role users and admins
  • ๐Ÿ†• Open a clearing file standalone or linked to an existing Bill of Entry

Detailed Changes:

Customs Clearing Workflow โ€” Phase 1 board
feature

Status-driven tracking of sea-freight clearing (Box 1โ€“9) with role-based task assignment, mandatory confirmations/guards before progression, blocking reasons, and an audit timeline. Document upload gating, ASYCUDA reminder timers, SLA alerts/notifications, and reporting are planned for later phases.

pending
v1.11.0
๐ŸŽฏ Active, Element-Anchored Guided Tours
2026-06-11
Reworked the Bill of Entry guided tours so they drive the real UI instead of just describing it. Tours now switch tabs live, open the actual Add Item and Excel-import dialogs, fill the HS-code search, and inject temporary demo data so each step is tangible โ€” all reverted cleanly on Next/Skip/Done.

Key Highlights:

  • ๐ŸŽฏ 'Create a Bill of Entry' tour now opens the real Add Item dialog with a temporary demo BL/AWB so the (normally disabled) button enables
  • ๐Ÿ“ฅ New steps walk the Excel item-import: Download Template, the Import-from-Excel wizard, and a live column-mapping demo with auto-mapping
  • ๐Ÿ”Ž 'Browsing HS Codes' auto-fills a sample search (8703) and shows live results
  • ๐Ÿ“‘ 'Bill of Entry lifecycle' steps now anchor to the New Bill of Entry button and the BOE list instead of floating centered
  • โ†ฉ๏ธ All injected demo state (open dialogs, demo BL/AWB, demo mapping rows) reverts on skip/done โ€” nothing is ever saved or submitted

Detailed Changes:

Tour Bridge + Active BOE Tours
feature

A guarded event bridge lets guided tours open real dialogs and inject temporary demo data (demo BL/AWB, demo Excel mapping rows, sample HS search) that always reverts. The create-BOE, HS-code and BOE-lifecycle tours were reworked to anchor to real elements and showcase the add-item and Excel-import flows hands-on.

pending
v1.10.3
โšก HS-Code Browser Performance
2026-06-08
The HS-code browser (standalone page and the Bill-of-Entry picker modal) was slow to load and laggy to expand/collapse with 3,400+ codes. Two render-level fixes make it snappy: the tree now renders in chunks with infinite scroll, and the per-row tRPC mutation was lifted to a single shared handler.

Key Highlights:

  • โšก Hierarchy now renders ~40 rows at a time with infinite scroll (was 574 heading rows at once; 3,400+ on Expand All)
  • โšก Removed a per-row tRPC mutation hook โ€” previously one selection-logging mutation per rendered row (hundredsโ€“thousands of hooks)
  • ๐Ÿ“œ Scroll-to-load with a 'Load more' fallback, in its own scroll container so it works on the page and inside the modal
  • ๐Ÿ—„๏ธ Data layer unchanged: still SSR-loaded and well-indexed (3,404 codes, shallow 2-level tree)

Detailed Changes:

HS-Code Browser: Infinite Scroll + Lifted Mutation
enhancement

Render the HS-code hierarchy in 40-row chunks with infinite scroll, and replace the per-row selection-logging mutation with a single shared handler. Eliminates the hundreds-to-thousands of React/tRPC hooks that made the page and picker modal slow.

pending
v1.10.2
๐Ÿ› Hotfix: Server Env Leaked Into Client Bundle
2026-06-08
Fixed a 16.2.7 regression where the 'New Bill of Entry' and HS-code pages failed to load with 'โŒ Attempted to access a server-side environment variable on the client'. Four client/hook files imported types from the server hsCode router using the inline `{ type X }` form, which Next 16.2 Turbopack does not reliably elide โ€” dragging the server tRPC/Prisma/env graph into the client bundle.

Key Highlights:

  • ๐Ÿ› Fixed 'New Bill of Entry' & HS-code pages crashing on load (client env-access error)
  • ๐Ÿ”’ Server tRPC/Prisma/env code no longer bundled into client chunks
  • ๐Ÿงท Converted leaky `import { type X }` โ†’ `import type { X }` in 4 client-side HS-code modules

Detailed Changes:

Server Env Leak Into Client Bundle
fix

Converted four client-side HS-code modules from the inline `import { type X }` form to `import type { X }` so Next 16.2 Turbopack correctly elides the server router graph from client bundles, fixing the runtime crash on the New Bill of Entry and HS-code pages.

pending
v1.10.1
๐Ÿ”’ Next.js 16.2.7 Upgrade & Server-Bundle Hardening
2026-06-08
Upgraded Next.js from 16.1.7 to 16.2.7 (aligning with the rest of the fleet) and fixed the stricter Turbopack server/client boundary so server-only code (Prisma Decimal runtime, puppeteer/chromium PDF generator, nodemailer) no longer leaks into client bundles. No user-facing behaviour change.

Key Highlights:

  • โฌ†๏ธ Next.js 16.1.7 โ†’ 16.2.7
  • ๐Ÿงฑ Server-only PDF/email stack kept out of client bundles (type-only router import + server-only guard)
  • ๐Ÿงฎ Prisma Decimal imported as type-only in shared schemas (Prisma coerces numbers on write โ€” no DB behaviour change)
  • ๐Ÿ“ฆ puppeteer-core & @sparticuz/chromium added to serverExternalPackages

Detailed Changes:

Next.js 16.2.7 Upgrade
enhancement

Bumped Next.js to 16.2.7 to match the other deployed apps and pick up upstream fixes. Resolved the stricter Turbopack module-boundary errors by making server-only code unambiguously server-side (type-only router/Decimal imports, a server-only guard on the PDF generator, and serverExternalPackages for the puppeteer/chromium stack).

pending
v1.10.0
๐Ÿ“Š Legacy-Faithful Excel Reports & Expanded Guided Tours
2026-06-03
Real binary .xlsx exports (xlsx-js-style) matching the legacy FastReport layout across the Stock List, Bills of Entry, manifest Bills of Lading, and Delivery Order / Arrival Notice surfaces โ€” added alongside every existing format, nothing removed. Plus a first-visit welcome tour and new reporting & end-to-end workflow guides that cover the consignee email flow and customs export.

Key Highlights:

  • ๐Ÿ“Š Real .xlsx (not HTML-as-Excel) with the legacy company header, columns and grand-total row
  • ๐Ÿงพ Stock List MS Excel export now emits a proper FastReport-style spreadsheet
  • ๐Ÿงพ New Export-to-Excel on the Bills of Entry list and the manifest Bills of Lading tab
  • ๐Ÿงพ Delivery Order & Arrival Notice dialogs gain an Export-to-Excel charge breakdown beside Print/PDF
  • ๐Ÿ‘‹ First-visit welcome tour (auto once, replayable from the Help menu)
  • ๐Ÿ›ณ๏ธ End-to-end Manifest and Bill of Entry workflow guides
  • ๐Ÿ“จ Tours now cover consignee email notifications (Brevo) and retrying failed sends

Detailed Changes:

Legacy-Faithful Excel (.xlsx) Reports
feature

Ported a real binary .xlsx generator (xlsx-js-style) and applied it to the Stock List export plus new Export-to-Excel buttons on the Bills of Entry list, the manifest Bills of Lading tab, and the Delivery Order / Arrival Notice dialogs. Output matches the legacy FastReport header, columns and totals. Purely additive โ€” every pre-existing export format (HTML, Text/CSV, XML, Print, PDF) is retained.

pending
Welcome & Workflow Guided Tours
feature

Added a first-visit welcome tour (auto-starts once, replayable from Help), a cross-cutting reporting/export tour, an Arrival Notices tracking tour, and end-to-end Manifest and Bill of Entry workflow tours. Tours explicitly cover the consignee email/notification flow (Brevo) and the customs ASYCUDA export.

pending
v1.9.0
๐Ÿ“ฑ Mobile-Friendly Landing, HS-Code Pagination & Guided Tours
2026-06-02
Quality-of-life release: reworked the landing hero for mobile (single-column, no horizontal scroll), added numbered pagination and numeric chapter sorting to the HS-code browser, and introduced a Shepherd.js guided-tour system with a Help launcher on every dashboard page.

Key Highlights:

  • ๐Ÿ“ฑ Single-column mobile-friendly hero - removed the code-preview panel that caused horizontal scroll on phones
  • ๐Ÿท๏ธ Wrapping 'What's new' badge and stacked CTAs on small screens
  • ๐Ÿ”ข Numbered HS-code pagination with active-page highlight and ellipses
  • ๐Ÿ“Š Chapter filter now sorted numerically (1, 2, 10) instead of as strings (1, 10, 2)
  • ๐Ÿงญ Shepherd.js guided tours - Help launcher on every dashboard page
  • ๐ŸŽ“ New tours for Create Bill of Entry, HS-Code browser, and Manifest Import flows
  • ๐Ÿงช createCaller procedure tests for BOE create/edit and manifest import

Detailed Changes:

Mobile-Friendly Landing Hero
fix

Removed the right-side code-preview panel that overflowed the viewport on mobile and rebuilt the hero as a single centered column with a wrapping badge and stacked, full-width CTA buttons.

72ef1ea
Numbered HS-Code Pagination & Numeric Chapter Sort
enhancement

Replaced the Prev/Next-only footer in the HS-code search results with numbered page buttons (active highlight, ellipses, ARIA labels) and sorted the chapter filter numerically instead of lexicographically.

72ef1ea
Shepherd.js Guided Tour System
feature

Introduced a Shepherd.js-based guided tour engine with a Help launcher available on every dashboard page, plus dedicated tours for the Create Bill of Entry, HS-Code browser, and Manifest Import workflows.

pending
createCaller Procedure Tests
testing

Added integration tests using the tRPC createCaller for Bill of Entry create/edit and manifest import, covering happy paths, validation/authorization errors, and editable round-trips.

pending
v1.8.0
๐Ÿ“ฆ Manifest Management, Customs XML & Bulk Import
2025-11-05
Major improvements to manifest visibility, customs XML exports, and bulk data import capabilities. Fixed critical tenant filtering issue, added ASYCUDA XML compliance, and successfully imported 44,511 real bills of lading from production data.

Key Highlights:

  • โœ… Fixed Critical Manifest Visibility - All users can now see their manifests
  • ๐Ÿ“„ Customs XML Exports 100% ASYCUDA Compliant - Perfect XML generation
  • ๐Ÿšข Massive Data Import - 589 manifests, 44,511 BOLs, 71,600 containers
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Nhava Sheva Port Support - India's major port manifest format
  • ๐Ÿ—บ๏ธ Smart Column Mapping - Manual fallback for unknown formats
  • ๐Ÿ“ฆ 28 Container Types Added - Complete reference data from production
  • ๐Ÿ“‹ 37 Package Types Added - Full package type mappings
  • ๐Ÿ”ง Container Type Mapping - Automatic ASYCUDA code conversion

Detailed Changes:

Critical Manifest Visibility Fix
fix

Fixed tenant filtering to check both created_by_id and user_id fields with OR logic. All 589 manifests now visible to correct users. Dashboard statistics now accurate.

various
ASYCUDA XML Compliance
fix

Fixed shipping_marks minLength validation by using consignee name as fallback. Added container type mapping from database. XML exports now 100% compliant with customs requirements.

various
Massive Production Data Import
feature

Successfully imported 589 manifests, 44,511 bills of lading, and 71,600 containers from SSN production data. 99.996% success rate with only 2 encoding errors. Complete traceability with legacy IDs maintained.

various
Nhava Sheva Port Format Support
feature

Added full support for India's Nhava Sheva port manifest format. Automatic detection, smart parsing, and support for special cargo (hazardous, reefer, OOG). Multiple containers per BOL supported.

various
Smart Column Mapping System
feature

Created manual column mapping modal with fuzzy matching for unknown formats. Category-based organization, required field validation, and real-time progress tracking. User-friendly fallback for non-standard files.

various
Complete Reference Data
feature

Imported 28 container types (20DC, 40HC, 40RE, etc.) and 37 package types (BG, CTN, PK, BX, etc.) from production system. Full ASYCUDA code mappings for customs compliance.

various
v1.7.0
๐ŸŽจ Company Settings & BOE UI/UX Enhancements
2025-11-05
Comprehensive company settings management with full CRUD operations and critical Bill of Entry form UI/UX improvements including inline error display, tab error badges, auto-save system, and React 19 Activity API integration.

Key Highlights:

  • โš™๏ธ Complete Company Settings Management - 5 organized tabs with full CRUD
  • โœ… Tab Error Count Badges - Real-time error tracking per tab with visual indicators
  • ๐Ÿ”„ React 19 Activity API - Tab state persistence without re-mounting
  • ๐Ÿ“ง SMTP Configuration - Full email setup with test connection and send test email
  • ๐ŸŽจ Custom Templates - Logo, headers, footers, contact info customization
  • ๐Ÿ“‚ PDF Archive Paths - Configurable paths for delivery orders and arrival notices
  • ๐Ÿ’ฌ Email Message Customization - Custom messages for arrival notices and delivery orders
  • ๐Ÿ”ง Charge Visibility Settings - Control charge display on delivery orders
  • ๐Ÿ“‹ Inline Field Errors - FormMessage components replacing toast-only errors
  • โšก Auto-Save System - Debounced text inputs and immediate select field updates

Detailed Changes:

Comprehensive Company Settings Management
feature

Full-featured company settings page with 5 organized tabs: Company Info, Email (SMTP), PDF Paths, Templates, and Documents. Complete CRUD operations for all company_settings schema fields with real-time updates.

593b01b
Tab Error Count Badges System
feature

Real-time error tracking system displaying error counts on each tab. Created useTabErrors hook and ErrorBadge component for visual feedback, helping users quickly identify and fix validation issues.

various
React 19 Activity API Integration
feature

Implemented React 19 Activity API for all 8 BOE form tabs (general, transport, cargo, commercial, permits, other, taxes, asycuda). Tab state now persists when switching, eliminating re-mounting and preserving form field values.

various
SMTP Email Configuration
feature

Complete SMTP configuration system with test connection and send test email functionality. Supports custom email messages for arrival notices and delivery orders with template variables.

593b01b
Custom Template System
feature

Tenant-specific branding with custom logo URLs, header text, subtitle text, footer company info, addresses, and contact information for professional document generation.

593b01b
v1.6.1
๐Ÿ“š References Navigation & Comprehensive Charges System
2025-11-04
Enhanced reference data management with comprehensive navigation system, demurrage charges, and container deposit tariffs. Includes SSN tenant-specific template implementation with full integration.

Key Highlights:

  • ๐Ÿ“‹ Comprehensive References Page - 40+ reference types organized in 6 categories
  • ๐Ÿ’ฐ Demurrage Charges Management - Full CRUD with period-based pricing structure
  • ๐Ÿ“ฆ Container Deposit Tariffs - Tenant-specific deposit fees with payment/refund terms
  • ๐ŸŽจ SSN Template System - Custom arrival notice/delivery order templates
  • ๐Ÿ”ง Enhanced Navigation - Dashboard reference card with 'View All' button
  • ๐Ÿ“Š 36 SSN Demurrage Charges Seeded - DRY, REEFER, SPECIAL containers with CMA CGM 2025 rates
  • ๐Ÿ’ณ 3 SSN Deposit Tariffs Seeded - SCR 10k/15k/20k per TEU with payment terms
  • ๐Ÿ›ก๏ธ RBAC Permissions Added - Full permissions for demurrage-charges and container-deposit-tariffs
  • ๐Ÿ“„ Rich Tooltips - Usage notes and system impact information for all references
  • ๐ŸŽฏ Professional Layout - Color-coded badges, hover effects, responsive grid design

Detailed Changes:

Comprehensive Reference Data System
feature

Created /references page organizing 40+ reference types into 6 categories: Geographic & Shipping, Cargo & Containers, Charges & Tariffs, Parties & Organizations, Customs & Compliance, and System Configuration.

various
Demurrage Charges Management
feature

Complete demurrage charge system with tenant-specific and global charges. Supports DRY, REEFER, and SPECIAL container types with 4-period pricing tiers, free days configuration, and effective date ranges.

various
Container Deposit Tariffs System
feature

Tenant-specific container deposit management with per-TEU pricing, payment terms, refund policies, and active/inactive status tracking with soft delete support.

various
SSN Tenant Template Implementation
feature

Custom arrival notice and delivery order template for SSN tenant matching legacy PDF format. Includes logo positioning, company info layout, demurrage display, and deposit fee sections.

various
Charges Router Type Safety Fixes
fix

Resolved 14 type errors by changing ctx.session.user.id to ctx.userId throughout charges router, aligning with protectedProcedure middleware conventions.

various
v1.6.0
๐Ÿš€ KarachiExcel Import & Enhanced Tour System with UI Improvements
2025-01-22
Major feature release introducing comprehensive KarachiExcel import system with tenant-specific access control, enhanced guided tour system with validation, and significant manifest UI improvements. Includes party references system and comprehensive documentation.

Key Highlights:

  • ๐Ÿ“Š KarachiExcel Import System - Complete import workflow with tenant-specific access
  • ๐ŸŽฏ Enhanced Tour System - Validation, step completion tracking, and better UX
  • ๐Ÿ”ง Manifest UI Improvements - Fixed display issues, better data formatting
  • ๐Ÿ‘ฅ Party References System - Auto-complete for consignees and shippers
  • ๐Ÿ“š Comprehensive Documentation - Degroup workflows and UI flow mapping
  • ๐Ÿ›ก๏ธ Tenant Security - Mahe Shipping specific access controls
  • โšก Performance Fixes - Chunked base64 conversion, stack overflow resolution
  • ๐ŸŽจ Better Data Display - Clean formatting, proper fallbacks for missing data
  • ๐Ÿ“‹ Auto-Detection - Smart file type detection (Excel=Nhava Sheva, XML=Standard)
  • ๐Ÿ” Enhanced Search - Robust BOL number detection with multiple format support

Detailed Changes:

KarachiExcel Import System
feature

Complete Excel import workflow with auto-detection, tenant-specific access control, and comprehensive vessel info extraction. Supports large files with chunked processing.

5171cd4
Enhanced Guided Tour System
feature

Improved tour system with validation, step completion tracking, confirmation dialogs, and better user guidance through complex workflows.

0d56fe1
Manifest UI and Display Improvements
fix

Fixed table headers, voyage number display issues, and improved data formatting with clean fallbacks for missing information.

6363c07
Party References System
feature

New party management system with auto-complete functionality for consignees and shippers, integrated with manifest and BOL workflows.

6dd1173
Comprehensive Workflow Documentation
docs

Added complete degroup implementation docs, workflow guides, and UI flow mapping for better system understanding and user training.

b342e03
v1.5.2
๐Ÿ“š Documentation Consolidation & Legacy Migration Completion
2025-01-19
Major documentation reorganization consolidating scattered legacy analysis into structured, accessible format. Completed ACUnits and LoranzoUnit legacy Pascal system migration with 100% business logic compatibility and production-ready implementation.

Key Highlights:

  • ๐Ÿ“š Complete Documentation Consolidation with master reference structure
  • โœ… ACUnits Management System - 100% legacy Pascal compatibility achieved
  • ๐Ÿ”ง LoranzoUnit Utility Functions - complete validation library migration
  • ๐Ÿ—‚๏ธ Removed 10+ redundant/outdated documentation files for clean repository
  • ๐Ÿ“‹ Single Source of Truth with LEGACY_MIGRATION_MASTER.md comprehensive reference
  • ๐ŸŽฏ Organized Navigation with docs/README.md structured index system
  • ๐Ÿ—๏ธ Production-Ready Architecture with multi-tenant security implementation
  • ๐Ÿ“Š Zero User Retraining - exact legacy UI patterns and validation preserved
  • ๐Ÿ›ก๏ธ Complete Audit Trail with legacy derivation documentation
  • ๐Ÿ’ก Future Reference Guide for ongoing legacy feature implementation
v1.5.1
๐Ÿ—๏ธ Comprehensive Reference Data Management & TypeScript Safety System
2025-01-19
Major administrative enhancement with complete reference data management capabilities, zero TypeScript compilation errors, and enhanced system configuration. Includes container charges management, system parameters configuration, and comprehensive type safety improvements.

Key Highlights:

  • ๐Ÿ—๏ธ Complete Reference Data Management System with professional admin interfaces
  • โœ… Zero TypeScript Compilation Errors - comprehensive type safety achieved
  • โš™๏ธ System Parameters Configuration with multi-type support (decimal, integer, boolean)
  • ๐Ÿ’ฐ Container Charges Management with full CRUD operations and pricing control
  • ๐Ÿ“Š Enhanced Dashboard with professional card-based navigation for administrators
  • ๐Ÿ”ง Schema Documentation System with backup and preservation tools
  • ๐Ÿ“‹ Arrival Notice Printing with modern react-to-print API integration
  • ๐ŸŽฏ Enhanced User Experience with consistent UI patterns and validation
  • ๐Ÿ›ก๏ธ Comprehensive Type Safety with proper Decimal to number conversions
  • ๐Ÿ“š Legacy System Integration with 100% business rule compatibility

Detailed Changes:

Complete Reference Data Management System
feature

Implemented comprehensive admin interfaces for container charges and system parameters management. Features full CRUD operations, professional card-based navigation, and type-safe database integration with proper validation and error handling.

3a3233b
Complete TypeScript Compilation Error Resolution
fix

Achieved zero TypeScript compilation errors through systematic interface alignment with database schemas. Fixed all type mismatches, null vs undefined handling, and Decimal type conversions for production-ready code safety.

3a3233b
System Parameters Configuration Engine
feature

Added comprehensive system parameters management with support for decimal, integer, boolean, and string types. Includes utility functions for configuration access, proper validation, and tenant-configurable settings.

3a3233b
Container Charges Management Interface
feature

Professional container charges management with pricing control, soft deletion support, and comprehensive CRUD operations. Features type-safe interfaces with proper database schema alignment.

3a3233b
Enhanced Dashboard Navigation
enhancement

Added professional reference data card components to dashboard providing centralized access to administrative functions. Improved user experience with consistent UI patterns and intuitive navigation.

3a3233b
Arrival Notice Printing System
feature

Implemented modern arrival notice printing with react-to-print contentRef API, proper document generation, and comprehensive manifest data integration for shipping operations.

3a3233b
Schema Documentation Preservation
enhancement

Created comprehensive schema documentation system with backup tools and comment preservation. Ensures database schema knowledge is maintained during development and migration processes.

3a3233b
Enhanced Legacy System Integration
enhancement

Maintained 100% compatibility with legacy business rules while adding modern reference data management. Updated LegacyMapper with comprehensive documentation and field mapping strategies.

3a3233b
v1.5.0
๐Ÿš€ Complete Manifest Management System with Container Assignment
2025-01-15
Major breakthrough in manifest management with full container assignment system, advanced BOL editing, and 100% legacy DegroupFinalLevel.pas compliance. Critical scrolling issues resolved.

Key Highlights:

  • ๐Ÿš› Container Assignment System: Full drag & drop interface with bulk operations
  • ๐Ÿ”ง CRITICAL FIX: Modal scrolling for containers and BOLs columns
  • ๐Ÿ“‹ Advanced Bill of Lading Management with inline editing system
  • ๐Ÿ“Š Volume Auto-Calculation System with legacy business rules
  • ๐Ÿ”„ 100% DegroupFinalLevel.pas workflow compatibility maintained
  • ๐ŸŽจ Professional ScrollArea integration for reliable cross-browser scrolling
  • โšก Real-time assignment tracking and visual feedback
  • ๐Ÿ—๏ธ Enhanced LegacyMapper with container assignment logic
  • ๐Ÿ“ Comprehensive documentation reorganization and cleanup
v1.4.4
Quality of Life Auto-Creation System & Merge Conflict Resolution
2025-01-14
Comprehensive auto-creation system for BOE imports with safe reference data creation and evidence-based merge conflict resolution. Reduces manual data entry while maintaining legacy compliance and data integrity.

Key Highlights:

  • ๐Ÿค– Auto-creation system for suppliers, importers, warehouses, and points of entry
  • โšก XML import enhanced with UN LOCODE port auto-creation
  • ๐Ÿ”ง Fixed port seeding issues with proper country field mapping
  • ๐Ÿ›ก๏ธ Safe operations with skipIfExists and graceful failure handling
  • ๐Ÿ“‹ Evidence-based merge conflict resolution with code preservation
  • ๐Ÿ”„ Legacy compliance maintained throughout auto-creation process
  • ๐ŸŽฏ Quality of life improvements reducing manual reference data entry
  • ๐Ÿ“Š Enhanced stocklist page and HS code request management

Detailed Changes:

Comprehensive Auto-Creation System
feature

Created AutoCreationHelper.ts with safe auto-creation functions for approved reference data types (suppliers, importers, warehouses, points of entry). Features skipIfExists logic, silentFail error handling, and user isolation with proper transaction patterns.

94058e2
BOE Excel Import Auto-Creation Integration
feature

Integrated auto-creation into Excel import workflow to automatically create missing reference data before BOE creation. Reduces manual setup and prevents import failures due to missing relationships.

94058e2
XML Import Port Auto-Creation
feature

Enhanced manifest.ts with UN LOCODE port auto-creation during XML processing. Automatically creates departure and arrival ports to prevent XML import failures due to missing port references.

2b7b252
Port Seeding Country Lookup Fix
fix

Fixed seed-ports.ts country lookup from iso2_code to code field, resolving seeding failures. Ensures proper country relationships for port data during system initialization.

2b7b252
Evidence-Based Merge Conflict Resolution
fix

Resolved merge conflicts using evidence-based approach following LegacyMapper patterns. Preserved both implementations with //todo markers, no code removal, and maintained legacy compliance patterns.

cd61071
Stocklist Page Implementation
feature

Created stocklist page for inventory management functionality with consistent UI patterns and legacy-compliant data handling for improved inventory tracking.

b53e99c
HS Code Request Management Enhancement
enhancement

Enhanced HS code requests table with improved filtering and display capabilities, maintaining consistency with existing UI patterns for better user experience.

b53e99c
Safe Auto-Creation with Error Handling
enhancement

Implemented comprehensive error handling ensuring auto-creation operations don't disrupt core business processes. Features silent failure modes and graceful degradation to maintain system stability.

94058e2
Country Router and Tax Calculator Updates
fix

Resolved country router conflicts and updated TaxCalculator.ts with preserved legacy compliance patterns. Applied evidence-based conflict resolution maintaining dual implementations.

04e3844
v1.4.3
Critical Legacy Data Migration & System Operational Readiness
2025-01-13
Completed Priority 1 critical data migrations to restore essential system functionality. Successfully migrated 498 suppliers and 24 importers from legacy Firebird databases, resolving critical data gaps that left importer/exporter dropdowns nearly empty and made the system appear non-functional.

Key Highlights:

  • ๐Ÿ“Š Successfully migrated 498 suppliers from legacy TXEEXPORTR system
  • ๐Ÿข Successfully migrated 24 importers from legacy TXEIMPORTR system
  • ๐Ÿ” Comprehensive 8-level deep legacy database analysis with 3 detailed reports
  • ๐Ÿ—ƒ๏ธ Critical data gaps identified and resolved for tRPC operational functionality
  • ๐Ÿ› ๏ธ Production-ready migration scripts created for future manifest data
  • โš–๏ธ Fixed duplicate changelog routes blocking build compilation
  • โœ… Achieved clean production build with 37 static pages generated
  • ๐ŸŽฏ System now appears professional with real operational data from 7+ years

Detailed Changes:

Critical Trading Partners Data Migration
feature

Successfully executed Priority 1 migration of 498 suppliers from legacy TXEEXPORTR and 24 importers from legacy TXEIMPORTR tables. Resolved critical data gaps where importer/exporter dropdowns were nearly empty (23 vs 500+ expected, 9 vs 300+ expected), making system appear non-functional.

7f97a77
Comprehensive Legacy Database Analysis
feature

Created three comprehensive analysis documents: MIGRATION_VERIFICATION_ANALYSIS.md (initial 95% assessment), DEEP_DIVE_MIGRATION_ANALYSIS.md (47-section technical analysis), and MIGRATION_DATA_GAPS_ANALYSIS.md (critical data gaps discovery). Identified schema vs operational data discrepancy.

7f97a77
Production-Ready Migration Scripts
feature

Created migrate-trading-partners.ts (executed successfully) and migrate-manifest-operational-data.ts (ready for future use). Scripts include proper error handling, duplicate detection, ESM compatibility, and correct Prisma client integration.

7f97a77
Migration Script Technical Fixes
fix

Fixed Prisma client import paths ('db' vs '@prisma/client'), resolved ESM module compatibility issues, corrected database field mappings to match actual schema structure (name vs company_name, telephone vs telephone_no), and implemented proper user ID handling.

7f97a77
Build System Route Conflict Resolution
fix

Fixed duplicate changelog routes error preventing build compilation by removing conflicting /dashboard/changelog/page.tsx while preserving comprehensive changelog progress in main /changelog/page.tsx.

7f97a77
System Operational Readiness Achievement
enhancement

Transformed system from appearing empty/non-functional to professional operational status with real historical data. BOE forms now reference actual trading partners, dropdowns populated with 500+ companies, establishing foundation for incremental manifest data addition.

7f97a77
Data Classification & Impact Analysis
feature

Classified data as tenant-specific (Mahe Shipping), system-wide, and hybrid categories. Documented business impact: empty search results โ†’ rich historical data, limited dropdowns โ†’ complete options, poor UX โ†’ professional appearance.

7f97a77
v1.4.2
TypeScript Error Resolution & Build System Fixes
2025-01-12
Comprehensive resolution of ~95+ TypeScript compilation errors through evidence-based legacy field mapping corrections and build system optimization for stable production deployment.

Key Highlights:

  • โœ… Zero TypeScript compilation errors achieved
  • ๐Ÿ—๏ธ Build system optimization and webpack configuration fixes
  • ๐Ÿ” Evidence-based legacy field mapping verification via LegacyMapper.ts
  • ๐Ÿ“‹ CIC permit system field restoration and corrections
  • ๐Ÿšข Manifest system legacy field mapping alignment
  • โšก Environmental levy system database access fixes
  • ๐Ÿ”ง Production-ready build with clean deployment status

Detailed Changes:

Complete TypeScript Compilation Error Resolution
fix

Systematically resolved ~95+ TypeScript compilation errors through evidence-based field mapping corrections cross-referenced against LegacyMapper.ts documentation and legacy system analysis.

c6d6087
CIC Permit System Legacy Field Restoration
fix

Restored critical custom_number field mapping to ICICUNUM legacy field and corrected snake_case database field mappings (line_status, export_line_items) with proper data structure for HS codes and pricing.

c6d6087
Manifest System Legacy Corrections
fix

Corrected vessel nationality field mapping from transporter_nationality_code to vessel_nationality per LegacyMapper.ts verification. Fixed package fields, transport mode, and mass field mappings.

c6d6087
Environmental Levy System Database Access
fix

Replaced invalid ctx.procedures with direct database queries aligned with LEVRULES table access patterns for proper environmental levy calculations.

c6d6087
Build System Webpack Optimization
fix

Removed problematic optimizePackageImports configuration causing webpack caching conflicts. Fixed PrismaClientKnownRequestError import paths from incorrect 'db/runtime/library' to '@prisma/client/runtime/library'.

1797788
Legacy Documentation & Field Mapping Verification
enhancement

All field mapping changes cross-referenced against LegacyMapper.ts documentation ensuring accuracy and preventing future migration issues. Comprehensive legacy system integration verification.

c6d6087
Production Build Stability
fix

Achieved clean TypeScript compilation with zero errors, successful generation of all 34 static pages, and optimized bundle sizes ready for production deployment.

1797788
v1.4.1
BOE Form UX Improvements & XML Export Validation
2025-01-06
Enhanced Bill of Entry form user experience with improved validation, optional fields, and better package type display. Fixed XML export functionality to match legacy system format with 100% validation accuracy.

Key Highlights:

  • โœ… 100% XML export validation success - matches legacy system format perfectly
  • ๐Ÿ“ Made description field optional in BOE line items for improved UX
  • ๐Ÿ“ฆ Enhanced package type dropdown to show 'Description (Code)' format
  • ๐Ÿ”ง Fixed HS Code validation to support manual entry when DB lookup fails
  • ๐ŸŽฏ Resolved all critical XML export issues with missing SCPO point of entry
  • โšก Automated XML testing framework for consistent validation
  • ๐Ÿงช End-to-end manual testing confirmed full functionality

Detailed Changes:

XML Export Data Completeness
fix

Fixed critical XML export issue where generated XML had empty fields (voyage_number, customs_office_code, etc.) compared to legacy samples. Added missing SCPO point of entry and created proper test BOE data for validation.

pending
Optional Description Field
enhancement

Made description field optional in BOE line items by removing required validation from tempBillItemSchema. Users can now submit items without forced description entry.

pending
Improved Package Type Display
enhancement

Enhanced package type dropdown to show format 'Description (Code)' instead of 'Description Code'. Users can now easily see that code '08' corresponds to 'Units/Pcs (08)'.

pending
HS Code Manual Entry Support
fix

Confirmed backend properly supports manual HS code entry (returns hsCodeFound: false but allows operation). Resolved any frontend validation issues that were blocking manual HS code entry.

pending
Automated XML Testing Framework
feature

Created comprehensive XML testing script (fix-xml-export-data.ts) that automatically validates XML exports against legacy samples with field-by-field comparison for quality assurance.

pending
End-to-End Manual Validation
testing

Conducted complete manual testing using ALAIN_019.xml legacy sample data. User successfully generated XML matching legacy format, confirming full workflow functionality.

pending
v1.4.0
Complete Legacy Database Migration System & Deployment Automation
2025-01-04
Comprehensive legacy system migration from Firebird databases (BOESYS.gdb & SPACE95MANIFEST.GDB) to modern PostgreSQL architecture. Successfully migrated 15,054 international ports, 258 countries, environmental levy rules, tax concession codes, and operational BOE data with complete field mapping and relationship handling.

Key Highlights:

  • ๐Ÿ—„๏ธ Complete migration of 15,054 international ports from SPACE95MANIFEST.GDB
  • ๐ŸŒ Migration of 258 countries with proper code standardization
  • ๐Ÿ“‹ BOE operational data migration with field mapping corrections
  • ๐Ÿ”ง Schema relationship fixes for NextAuth v5 and Prisma compatibility
  • ๐Ÿ“ฆ Package.json migration commands for streamlined deployment
  • ๐Ÿ“š Comprehensive LegacyMapper documentation system
  • ๐Ÿ” Missing field analysis and tracking for future migration phases
  • โšก Automated migration scripts with error handling and validation

Detailed Changes:

Global Ports Migration System
feature

Successfully migrated 15,054 international ports from SPACE95MANIFEST.GDB with proper country relationships and port classification. Includes comprehensive parsing of MPORTS table with legacy ID preservation and code standardization.

0fdeaf3
BOE Operational Data Migration
feature

Complete migration system for Bills of Entry from TXEBOE and TXEBOELINS tables. Successfully parsed 651 BOE headers and 43,785 line items with proper field mapping (cif_value, line_no, unit_id) and foreign key relationship handling.

0fdeaf3
NextAuth v5 Compatibility Resolution
fix

Fixed critical NextAuth compatibility issues caused by downgrade from v5.0.0-beta.25 to v4.24.11. Restored proper middleware functionality and resolved 'Invalid value used as weak map key' runtime errors.

0fdeaf3
Database Field Naming Corrections
fix

Systematic fix of camelCase vs snake_case field naming inconsistencies across CIC export permits, reference data, and user models. Corrected deletedAt โ†’ deleted_at, permitYear โ†’ permit_year, createdBy โ†’ created_by throughout the system.

0fdeaf3
Migration Command Infrastructure
feature

Added comprehensive migration commands to package.json: db:migrate-boe, db:migrate-full, db:migrate-all for different migration scenarios. Includes proper script organization and execution flow.

0fdeaf3
Legacy Field Analysis & Documentation
enhancement

Created missing-legacy-fields-2025-01-04.md with comprehensive analysis of TXEBOE and TXEBOELINS field mappings. Documented successfully mapped fields and identified areas requiring future migration phases.

0fdeaf3
Environmental Levy Rules Migration
feature

Migrated environmental levy rules from BOESYS LEVRULES table with HS code mapping, unit costs, and quantity application rules. Supports plastic bottle levies (0.7 SCR) and container-based calculations.

0fdeaf3
Tax Concession Codes Migration
feature

Complete migration of TAXCONSC table with concession codes, descriptions, GST percentages, and tax percentages. Includes proper null handling and percentage validation.

0fdeaf3
Enhanced LegacyMapper Documentation
enhancement

Updated LegacyMapper.ts with comprehensive migration documentation including command usage, data analysis results, and field mapping strategies. Serves as central reference for legacy system integration.

0fdeaf3
Schema Relationship Handling
enhancement

Fixed Prisma schema relationship issues by correcting foreign key field usage (user_id vs user relation), proper connection syntax, and field name alignment with database schema.

0fdeaf3
Migration Validation System
feature

Implemented comprehensive migration result validation with PostgreSQL queries for record counts, data integrity checks, and successful migration confirmation. Includes psql-based verification workflows.

0fdeaf3
Package Types Code Field Alignment
enhancement

Fixed package types frontend and API consistency by aligning code field usage (package_code) and resolving React key prop issues in tax concession codes component.

0fdeaf3
v1.4.0
Configurable Admin Systems - Database-Driven Configuration
2025-09-04
Major milestone: Replace hardcoded values with comprehensive database-driven configuration systems allowing admins and tenants to control freight rates, environmental levies, and tax concessions through dashboards

Key Highlights:

  • โš™๏ธ Configurable freight rate management system with multi-tenant support
  • ๐ŸŒฑ Environmental levy rules system for HS-code specific charges
  • ๐Ÿ’ฐ Database-driven freight calculations replacing hardcoded values
  • ๐Ÿ“Š Admin dashboards for rate configuration and management
  • ๐Ÿ—“๏ธ Temporal validity system for scheduled rate changes
  • ๐Ÿ‘ฅ Multi-tenant support with system-wide and organization-specific rates
  • ๐Ÿ“‹ Complete audit trail with user attribution for all changes
  • ๐Ÿ”„ Legacy system integration with comprehensive data migration

Detailed Changes:

Freight Rate Configuration System
feature

New freight_rate_config model and freightRateConfigRouter with full CRUD operations. Replaces hardcoded values (doFee: 250.00, cfsCharge2: 140.00, vatPercentage: 15.0) with database-configurable parameters. Supports multi-tenant rates and temporal validity.

a65f372
Environmental Levy Rules Engine
feature

Complete environmental_levy_rules system for HS-code specific levies from legacy LEVRULES table. Supports plastic bottles (0.7 SCR), beverages (0.25 SCR/liter), containers with quantity-based calculations and partial HS code matching.

a65f372
Database-Driven Freight Calculator
enhancement

Updated manifest-freight-calculator.ts to use configurable rates via getDefaultManifestFreightParams() with database integration and fallback to hardcoded values for backwards compatibility.

a65f372
Multi-Tenant Rate Management
feature

Both freight rates and environmental levies support tenant-specific configurations (tenant_id field) allowing different organizations to maintain custom rate structures while supporting system-wide defaults.

a65f372
Temporal Validity System
feature

Added effective_from and effective_to fields enabling scheduled rate changes, historical rate tracking, and seamless rate transitions without system downtime.

a65f372
Comprehensive Data Migration System
feature

Complete legacy database analysis with 199,144 lines of structured data from BOESYS.gdb (60,085 lines, 44 tables) and SPACE95MANIFEST.GDB (139,059 lines, 18 tables) for comprehensive system migration.

a65f372
Seed Data Configuration
feature

Created seed-freight-rates.ts with default Seychelles configurations including all 10 freight parameters (D/O fee, CFS rates, VAT, exchange rates) and environmental levy samples for immediate system usability.

a65f372
Enhanced Tax Concession System
enhancement

Documented existing tax_concession_codes system with comprehensive tRPC router functionality. Fixed seed file field mapping (conc_code vs concession_code) for proper database integration.

a65f372
Admin API Infrastructure
feature

Added freightRateConfig and environmentalLevyRules routers to main appRouter with role-based access control (adminProcedure for modifications, protectedProcedure for queries).

a65f372
Role-Based Access Control Integration
security

All new systems implement proper RBAC with admin-only procedures for rate modifications and protected procedures for queries, ensuring secure configuration management.

a65f372
v1.2.3
Container Weight & Exchange Rate Reactivity Fixes
2025-09-02
Fixed critical UI reactivity issues with container weight auto-calculation and exchange rate updates across all forms

Key Highlights:

  • โš–๏ธ Container weight now auto-updates total weight field when containers are added/modified
  • ๐Ÿ’ฑ Exchange rate immediately updates when currency is changed across all forms
  • ๐Ÿ”„ Fixed shared component consistency in Excel import modals
  • ๐Ÿ› ๏ธ Improved form reactivity with proper shouldDirty and shouldTouch flags
  • ๐ŸŽฏ Enhanced user experience with real-time field updates

Detailed Changes:

Container Weight Auto-Calculation
fix

Added refetch mechanism to automatically update total_weight field after container operations. Users no longer need to manually refresh to see calculated weights.

3d54aac
Exchange Rate Reactivity
fix

Fixed exchange rate field not updating when currency is changed. Added getAutoExchangeRate logic with form.setValue and proper reactivity flags.

3d54aac
Shared Component Consistency
fix

Fixed missing exchange rate auto-update logic in shared CommercialTab component used by Excel import modals. All forms now have consistent behavior.

09129fb
TypeScript Compatibility
fix

Fixed Decimal type casting issues in bill data refetch operations and Prisma transaction type compatibility for container weight calculator.

1eb1354
v1.2.2
HS Code UI Improvements
2025-09-02
Enhanced HS code suggestions dropdown with better layout, sizing, and user experience

Key Highlights:

  • ๐ŸŽจ Fixed dropdown width constraint with w-64 class
  • ๐Ÿ“ Reduced height from 320px to 240px for better fit
  • ๐Ÿ”„ Added proper scrolling behavior with overflow-auto
  • ๐Ÿ“Œ Pinned footer to bottom with flex layout
  • โœจ Improved overall user experience for HS code selection

Detailed Changes:

Dropdown Width Constraint
fix

Added w-64 class to constrain dropdown width instead of stretching full width, improving visual appearance and usability.

7aa124e
Optimized Container Height
enhancement

Reduced max height from 320px to 240px (max-h-60) to prevent overflow while maintaining scrollability.

7aa124e
Improved Scrolling Behavior
enhancement

Added overflow-auto to Card for proper scrolling behavior and better content management.

7aa124e
Fixed Footer Layout
enhancement

Restructured layout with flex-col to pin footer at bottom and added flex-1 to ScrollArea for proper space distribution.

7aa124e
v1.2.1
RBAC Dashboard & Navigation Fixes
2025-08-31
Comprehensive role-based access control fixes for dashboard and navigation security

Key Highlights:

  • ๐Ÿ›ก๏ธ Fixed dashboard role-based access control
  • ๐Ÿšซ Viewers can no longer access creation forms
  • ๐Ÿ“‹ BOE users restricted from manifest sections
  • ๐Ÿงญ Role-based navigation implemented
  • โœ… All RBAC tested with seeded accounts

Detailed Changes:

Dashboard RBAC Implementation
fix

Fixed dashboard role-based access control using ServerBOEOnly, ServerManifestOnly, ServerViewerPlus guards to properly restrict access based on user roles.

f5f0b53
Navigation Access Control
fix

BOE users can no longer see Manifest Management sections and viewer users cannot access creation buttons and forms.

f5f0b53
Server-Side Role Guards
enhancement

Implemented comprehensive server-side role guards throughout the application to prevent unauthorized access.

f5f0b53
Users List Role Checking
fix

Updated users list to use server-side role checking instead of client-side for improved security.

f5f0b53
TypeScript Compilation Fixes
fix

Resolved TypeScript compilation errors in auth config and components, fixed type-only imports.

f5f0b53
Role-Based Navigation Component
feature

Added RoleBasedNavigation component for consistent role-based menu rendering across the application.

f5f0b53
Centralized Role Checking
enhancement

Implemented getServerRolePermissions helper for centralized role checking and permission management.

f5f0b53
RBAC Testing Verification
feature

Successfully tested with seeded accounts (System Owner, Admin, BOE user, Manifest user, Viewer) and verified Excel import functionality.

f5f0b53
v1.2.0
Multi-Tenant Architecture
2025-08-31
Complete transformation to support multiple shipping companies with data isolation

Key Highlights:

  • ๐Ÿข Multi-tenant architecture with complete data isolation
  • ๐Ÿ‘‘ System owner dashboard for platform management
  • ๐Ÿ” Enhanced RBAC with tenant-scoped permissions
  • โšก Legacy auto-calculation system integration
  • ๐Ÿ“„ BOE creation from manifest data
  • ๐Ÿšข Shipping marks auto-population
  • ๐Ÿ”’ Security-hardened system owner authentication

Detailed Changes:

Multi-Tenant Data Architecture
feature

Added user_id fields to all tenant-scoped models (bills_of_entry, importers, suppliers, manifests, warehouses) for complete data isolation between shipping companies.

affaf7a
System Owner Dashboard Implementation
feature

New platform-wide dashboard showing tenant statistics, license distribution, API usage across all tenants, and top active tenants with proper root user detection.

9f197b4
Tenant Isolation in TRPC Procedures
feature

Updated all TRPC procedures to enforce tenant boundaries with user_id filtering in queries and access control checks.

affaf7a
Homepage Navigation Enhancement
feature

Added 'What's New' badge linking to changelog and footer navigation for better user discovery of new features.

8e1acaf
Comprehensive RBAC System
feature

Implemented role-based access control with audit capabilities, permission middleware, and granular resource-action permissions.

eaae693
Multi-Tenant Seed Data
feature

Created comprehensive seed data with system owner and Mahe Shipping tenant users, including proper role assignments and data relationships.

affaf7a
System Owner Security Enhancement
security

Fixed system owner detection to use authenticated user data instead of insecure URL parameters. All system owner checks now based on database user profile.

8f49c7b
System-Wide Data Access for System Owners
feature

Added getSystemWideAll procedures for Bills of Entry allowing system owners to view all tenant data with proper tenant identification columns.

8f49c7b
System Owner Dashboard Refinement
enhancement

Enhanced system owner dashboard to focus on platform management and user administration instead of data creation, with read-only oversight capabilities.

8f49c7b
TypeScript Compilation Fixes
fix

Resolved compilation errors and refactored authentication middleware for better type safety and reliability.

6bcfaf8
Legacy Auto-Calculation System
feature

Comprehensive legacy-compatible calculation system for duties, taxes, and fees with accurate weight distribution and duty computation.

d2635d1
BOE Creation from Manifest
feature

Legacy-compatible Bills of Entry creation from manifest data with comprehensive analysis and automatic field mapping.

38c60bd
Shipping Marks Auto-Population
feature

Intelligent shipping marks auto-population system with legacy compatibility and comprehensive container-to-item mapping.

2e431d7
v1.1.5
Navigation & User Experience
2025-08-30
Enhanced navigation and user interface improvements

Key Highlights:

  • ๐Ÿงญ New HS code requests navigation
  • ๐Ÿ’ฐ Pricing disclaimer for transparency
  • ๐ŸŽจ Improved user interface elements

Detailed Changes:

HS Code Requests Navigation
feature

Added dedicated navigation link for HS code requests in the admin menu for better accessibility.

c633a01
Pricing Disclaimer
enhancement

Added prominent disclaimer on pricing page to clarify demo pricing vs actual costs.

c633a01
v1.1.4
HS Code Management System
2025-08-29
Comprehensive HS code preservation and update request system

Key Highlights:

  • ๐Ÿ” Advanced HS code search and preservation
  • ๐Ÿ“ User-driven update request system
  • โšก Performance optimized code lookup
  • ๐Ÿ”„ Comprehensive code validation

Detailed Changes:

HS Code Preservation System
feature

Implemented comprehensive system to preserve user-selected HS codes during imports and updates, preventing data loss.

bddbc55
HS Code Update Requests
feature

New user-driven system allowing users to request HS code updates with admin review and approval workflow.

bddbc55
Performance Optimized Search
enhancement

Enhanced HS code search with better caching and faster lookup performance for improved user experience.

bddbc55
v1.1.3
TypeScript & Auth Improvements
2025-08-28
Resolved compilation errors and enhanced authentication middleware

Key Highlights:

  • ๐Ÿ› TypeScript compilation fixes
  • ๐Ÿ” Enhanced auth middleware
  • โšก Improved system stability

Detailed Changes:

TypeScript Compilation Errors
fix

Resolved various TypeScript compilation issues for better development experience and build stability.

6bcfaf8
Auth Middleware Refactor
enhancement

Improved authentication middleware for better security and performance.

6bcfaf8
v1.1.2
Comprehensive RBAC System
2025-08-27
Complete role-based access control system with audit capabilities

Key Highlights:

  • ๐Ÿ›ก๏ธ Full RBAC implementation
  • ๐Ÿ“Š Comprehensive audit logging
  • ๐Ÿ‘ฅ Role-based permissions
  • ๐Ÿ” User activity tracking

Detailed Changes:

Role-Based Access Control
feature

Implemented comprehensive RBAC system with roles, permissions, and resource-based access control.

eaae693
Audit Capabilities
feature

Added comprehensive audit logging system to track user actions and system changes for compliance and security.

eaae693
v1.1.1
Legacy Auto-Calculation System
2025-08-26
Comprehensive legacy-compatible calculation system for BOE processing

Key Highlights:

  • ๐Ÿงฎ Advanced auto-calculation engine
  • ๐Ÿ”„ Legacy system compatibility
  • โšก Performance optimized processing
  • ๐Ÿ“Š Accurate duty calculations

Detailed Changes:

Legacy Auto-Calculation Engine
feature

Implemented comprehensive auto-calculation system compatible with legacy BOE processing requirements.

d2635d1
v1.1.0
Manifest Integration & Shipping Marks
2025-08-25
Enhanced manifest processing with automatic shipping marks population

Key Highlights:

  • ๐Ÿ“ฆ Legacy-compatible BOE creation from manifest
  • ๐Ÿท๏ธ Auto-population of shipping marks
  • ๐Ÿ”„ Comprehensive manifest analysis
  • โšก Streamlined import workflow

Detailed Changes:

Legacy-Compatible BOE Creation
feature

Implemented BOE creation from manifest data with full legacy system compatibility and comprehensive analysis.

38c60bd
Auto-Population of Shipping Marks
feature

Added comprehensive shipping marks auto-population with legacy compatibility for streamlined data entry.

2e431d7

Stay Updated

This changelog is automatically updated with each release. For technical details, check our git commit history.