From 078b36d404590d0524df22c24335b967aa7a5b2b Mon Sep 17 00:00:00 2001 From: ncantu Date: Mon, 26 Jan 2026 00:55:26 +0100 Subject: [PATCH] Add pagination and search to hash list page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Motivations:** - La liste des hash est très longue (17k+ hash) et difficile à naviguer - Besoin de rechercher un hash spécifique - La colonne confirmations prend trop de place **Root causes:** - Pas de pagination, tous les hash sont affichés d'un coup - Pas de fonctionnalité de recherche - Colonne confirmations affiche un nombre alors qu'une coche suffit **Correctifs:** - Ajout de la pagination (50 hash par page) - Ajout d'un champ de recherche pour filtrer par hash (recherche partielle) - Remplacement de la colonne Confirmations par Confirmé avec coche ✓ (vert) ou ✗ (rouge) - Navigation avec boutons Précédent/Suivant et affichage du nombre de pages **Evolutions:** - Meilleure navigation dans la liste des hash - Recherche rapide d'un hash spécifique - Interface plus compacte et lisible **Pages affectées:** - signet-dashboard/public/hash-list.html --- signet-dashboard/public/hash-list.html | 186 +++++++++++++++++++++---- 1 file changed, 157 insertions(+), 29 deletions(-) diff --git a/signet-dashboard/public/hash-list.html b/signet-dashboard/public/hash-list.html index 106b322..bd480e9 100644 --- a/signet-dashboard/public/hash-list.html +++ b/signet-dashboard/public/hash-list.html @@ -105,6 +105,59 @@ background: #6c757d; cursor: not-allowed; } + .search-section { + margin-bottom: 20px; + padding: 15px; + background: #f8f9fa; + border-radius: 5px; + } + .search-input { + width: 100%; + max-width: 500px; + padding: 10px; + font-size: 1em; + border: 1px solid #ddd; + border-radius: 5px; + font-family: monospace; + } + .pagination { + display: flex; + justify-content: center; + align-items: center; + gap: 10px; + margin-top: 20px; + padding: 15px; + } + .pagination button { + background: #007bff; + color: white; + border: none; + padding: 8px 15px; + border-radius: 5px; + cursor: pointer; + font-size: 0.9em; + } + .pagination button:hover:not(:disabled) { + background: #0056b3; + } + .pagination button:disabled { + background: #6c757d; + cursor: not-allowed; + } + .pagination-info { + padding: 0 15px; + color: #666; + } + .confirmed-check { + text-align: center; + font-size: 1.2em; + } + .confirmed-check.yes { + color: #28a745; + } + .confirmed-check.no { + color: #dc3545; + } @@ -121,14 +174,25 @@ +
+ + +
+
Chargement des hash...
+ +