Skip to content

Commit 545c83f

Browse files
committed
added helpful message for > 500 results in requests search
1 parent 81e0577 commit 545c83f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

dashboard/js/script.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,16 @@ function updatePagination(pagination) {
444444
// Update pagination info
445445
const start = (currentPage - 1) * perPage + 1;
446446
const end = Math.min(currentPage * perPage, pagination.totalRequests);
447-
document.getElementById('pagination-info').textContent = `Showing ${start} to ${end} of ${pagination.totalRequests} requests`;
447+
448+
// Create the pagination info message
449+
let paginationInfoText = `Showing ${start} to ${end} of ${pagination.totalRequests} requests`;
450+
451+
// Add a note about the 500 limit if we're hitting it
452+
if (pagination.totalRequests >= 500) {
453+
paginationInfoText += ` <span class="text-warning" title="Only the most recent 500 matching requests are displayed. Use more specific filters to narrow your results."><i class="bi bi-info-circle"></i> (maximum limit - refine filters for more specific results)</span>`;
454+
}
455+
456+
document.getElementById('pagination-info').innerHTML = paginationInfoText;
448457

449458
// Update pagination buttons
450459
const prevPage = document.getElementById('prev-page');

0 commit comments

Comments
 (0)