Improve user interaction with validation and processing buttons

Add `data-testid` attributes to the "Validate" and "Mark Processed" buttons in the DlcPage for improved testing and add a title to the "Validate" button.

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/px42AkO
This commit is contained in:
michaelschal committed 2025-09-25 06:58:58 +00:00
1 parent f1f2cf5fc4
commit ad3e566168
3 files changed
+7 -4

No files matched your search

+4 -4
View File
@@ -19,10 +19,6 @@ externalPort = 80
localPort = 33873
externalPort = 3003
[[ports]]
localPort = 37973
externalPort = 4200
[[ports]]
localPort = 38343
externalPort = 3000
@@ -31,6 +27,10 @@ externalPort = 3000
localPort = 38451
externalPort = 3002
[[ports]]
localPort = 41077
externalPort = 5000
[[ports]]
localPort = 41343
externalPort = 3001
+3
View File
@@ -927,6 +927,8 @@ export default function DlcPage() {
onClick={() => handleValidate(product.id)}
disabled={validateMutation.isPending}
className="bg-green-600 hover:bg-green-700"
data-testid={`button-validate-${product.id}`}
title="Valider définitivement ce produit"
>
<CheckCircle className="w-4 h-4" />
</Button>
@@ -943,6 +945,7 @@ export default function DlcPage() {
onClick={() => handleMarkProcessed(product.id)}
disabled={markProcessedMutation.isPending}
className="border-blue-300 text-blue-700 hover:bg-blue-50"
data-testid={`button-mark-processed-${product.id}`}
>
<CheckCircle2 className="w-4 h-4" />
</Button>
Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB