Bug #12284
openSolved UI issues in purchase vendor issues
Description
Subtasks
Related issues
Updated by Karthik Palakonda 5 days ago
- Due date set to 11/24/2026
- Status changed from In Progress to Resolved
1. Gem-AI & Rule-Based Comparison Reasoning
Enhanced Purchasing Recommendation Engine:
Upgraded ruleBasedReason in vendorSourcingAi.service.js to incorporate operational logistics (lead time, shipping mode, transit time, delivery terms) and full cost breakdown (unit landed cost + total order cost).
Resolved issue where current suppliers were excluded from the analysis if an order fell below their MOQ. The engine now explicitly explains why a current primary supplier cannot fulfill the order (e.g., minimum order constraints).
Added automatic capitalization for vendor names and preserved actionable approval warnings (e.g., shelf life).
Enhanced buildPrompt so AI-generated responses (Gemini) receive all operational parameters (moq, notCoveredReason, shippingMode, deliveryTerms, transitDays, totalLanded).
Frontend Integration: Improved readability and typography (leading-relaxed) in CompareVendorsPage.tsx.
2. Price Book UI & Usability Enhancements (PriceBookPage.tsx)
Collapsible Stats Overview: Implemented a collapsible stats header with custom icons and loading states for quick purchasing insights (Variants, Awarded, Awaiting Admin, Expiring Quotes, Missing Backups).
Search & Filter: Added real-time search across products, variants, and vendor names with instant filtering for both "By product" and "By vendor" views.
Responsive Pagination: Replaced fixed pagination with ResponsivePaginationControls and eliminated unwanted white background containers.
Card Redesign: Refactored "By vendor" cards with distinct header bars, status tags, count chips, and clean product lists.
3. Award Board & Sourcing Pages UI Polish
AwardBoardPage.tsx:
Fixed button font visibility across hover, active, and disabled states (#ffffff text).
Streamlined header description text for a cleaner, compact UI layout.
DecisionPage.tsx & Page Headers:
Replaced custom arrow navigation with standard <PageHeader onBack={...}> for navigation consistency.
Prevented breadcrumbs and crumbs from flashing while data is in a loading state across Decision, Compare, and Review pages.
4. Testing & Verification
Backend: test/unit/vendorSourcing/vendorSourcingAi.test.js and vendorComparison.test.js — All 23 unit tests passing.
Frontend: src/pages/Nuresy/vendors/sourcing/sourcingUtils.test.ts — All 20 tests passing.