Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
dev/v7-production-failclosed-20261021
ci/public-windows-bridge-probe-20261017
ci/windows-dispatch-bootstrap-20261016
ci/windows-dual-app-lab-20261016
dev/v7-production-failclosed-20261021
feature/reconciliation-guard-20261013
main
phase-1-foundation
phase-1-implementation
phase-2-treasury-core
phase-3-banking-reconciliation
phase-4-operations-enterprise-ux
phase-5-hardening-release
phase-6-production-platform
phase-7-production-infrastructure-bank-golive
phase-7-sql-readonly-ux-20261015
transfer-exe-to-drive-20261006
| 1 | export type Alert={code:string;severity:'HIGH'|'MEDIUM';message:string}; export function deriveAlerts(x:{unknown:number;needsReview:number;health:string;queueDepth:number}):Alert[]{const a:Alert[]=[];if(x.health!=='HEALTHY')a.push({code:'BANK_HEALTH_DEGRADED',severity:'HIGH',message:'Bank adapter health is degraded'});if(x.unknown>0)a.push({code:'UNKNOWN_PAYMENTS',severity:'HIGH',message:`${x.unknown} payments have unknown outcome`});if(x.needsReview>0)a.push({code:'RECONCILIATION_REVIEW',severity:'MEDIUM',message:`${x.needsReview} items need review`});if(x.queueDepth>=100)a.push({code:'QUEUE_BACKLOG',severity:'MEDIUM',message:`Queue depth ${x.queueDepth}`});return a} |