mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-14 10:49:10 +02:00
Update reconciliation comments display to show comment counts
Adds reconciliation comments count to delivery data and updates UI to reflect this count, changing button color when comments exist. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/rQ1f1Q3
This commit is contained in:
1 parent
2e59eec409
commit
c3e84db27d
4 files changed
+78
-10
No files matched your search
@@ -948,10 +948,20 @@ export default function BLReconciliation() {
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => handleOpenCommentModal(delivery)}
|
||||
className={`h-8 w-8 p-0 text-gray-600 hover:text-gray-700 ${delivery.reconciled ? 'opacity-70' : ''}`}
|
||||
title="Voir/Gérer les commentaires"
|
||||
className={`h-8 w-8 p-0 ${
|
||||
delivery.reconciliationCommentsCount && delivery.reconciliationCommentsCount > 0
|
||||
? 'text-blue-600 hover:text-blue-700 border-blue-300'
|
||||
: 'text-gray-600 hover:text-gray-700'
|
||||
} ${delivery.reconciled ? 'opacity-70' : ''}`}
|
||||
title={`Voir/Gérer les commentaires ${
|
||||
delivery.reconciliationCommentsCount ? `(${delivery.reconciliationCommentsCount})` : ''
|
||||
}`}
|
||||
>
|
||||
<MessageSquare className="h-4 w-4" />
|
||||
<MessageSquare className={`h-4 w-4 ${
|
||||
delivery.reconciliationCommentsCount && delivery.reconciliationCommentsCount > 0
|
||||
? 'fill-blue-100'
|
||||
: ''
|
||||
}`} />
|
||||
</Button>
|
||||
{!delivery.reconciled ? (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user