Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
ci/windows-dual-app-lab-20261016
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 | import Link from 'next/link'; |
| 2 | import {getDesktopTreasuryService} from '../../platform/application/server-service'; |
| 3 | import {PaymentStatus} from '../payments/payment-components'; |
| 4 | import {queuePaymentAction} from './actions'; |
| 5 | import {safeDispatchDecision} from './queue-policy'; |
| 6 | |
| 7 | export const dynamic='force-dynamic'; |
| 8 | |
| 9 | export default function QueuePage(){ |
| 10 | const service=getDesktopTreasuryService(); |
| 11 | const beneficiaries=new Map(service.listBeneficiaries().map(b=>[b.id,b.name])); |
| 12 | const rows=service.listPayments().filter(p=>['APPROVED','QUEUED','UNKNOWN','NEEDS_REVIEW'].includes(p.state)); |
| 13 | return <div className="page-stack"> |
| 14 | <section className="page-head"><div><p className="eyebrow">SUBMISSION QUEUE</p><h2>صف ارسال بانکی</h2><p>حوالههای تأییدشده برای ورود به صف. ارسال واقعی بانک در این نسخه غیرفعال است.</p></div></section> |
| 15 | <div className="alert-banner warning"><strong>Bank Adapter غیرفعال است.</strong><span>افزودن به صف مجاز است، اما هیچ درخواست واقعی به بانک ارسال نمیشود.</span></div> |
| 16 | <section className="panel"><div className="section-title"><div><h3>صف کنترلشده</h3><p>{rows.length.toLocaleString('fa-IR')} مورد</p></div></div> |
| 17 | {rows.length===0?<div className="empty-state"><strong>موردی برای صف وجود ندارد</strong><span>حواله پس از تأیید کنترلکننده در این بخش ظاهر میشود.</span><Link className="btn btn-secondary" href="/payments">مشاهده حوالهها</Link></div>: |
| 18 | <div className="table-wrap"><table><thead><tr><th>مرجع</th><th>ذینفع</th><th>مبلغ</th><th>وضعیت</th><th>تصمیم امن</th></tr></thead><tbody>{rows.map(p=>{const decision=safeDispatchDecision(p.state);return <tr key={p.id}><td><Link href={'/payments/'+p.id}>{p.clientReference}</Link></td><td>{beneficiaries.get(p.beneficiaryId)??'—'}</td><td>{p.amountIrr.toLocaleString('fa-IR')} ریال</td><td><PaymentStatus state={p.state}/></td><td>{decision==='QUEUE'?<form action={queuePaymentAction}><input type="hidden" name="id" value={p.id}/><button className="btn btn-secondary" type="submit">افزودن به صف</button></form>:decision==='MANUAL_REVIEW'?<span className="manual-review">بررسی دستی — بدون Retry</span>:<span className="muted-text">بدون اقدام</span>}</td></tr>})}</tbody></table></div>} |
| 19 | </section> |
| 20 | </div> |
| 21 | } |