From 41d3844a18238600c60524125e75f22d06a1dd6f Mon Sep 17 00:00:00 2001 From: James Date: Fri, 20 Mar 2026 00:16:09 -0400 Subject: [PATCH] feat: rescrape max 20; select all checkbox in scrape results --- api/handlers.go | 2 +- portal/templates/app/orgs.html | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/api/handlers.go b/api/handlers.go index 8416293..2b84447 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -1643,7 +1643,7 @@ func (h *Handlers) RescrapeOrg(w http.ResponseWriter, r *http.Request) { return } - const maxPeople = 40 + const maxPeople = 20 truncated := false people := scraped.People if len(people) > maxPeople { diff --git a/portal/templates/app/orgs.html b/portal/templates/app/orgs.html index 7ba7383..9cc1c51 100644 --- a/portal/templates/app/orgs.html +++ b/portal/templates/app/orgs.html @@ -386,17 +386,24 @@ let title = ''; if (newPeople.length > 0) title = newPeople.length + ' new person' + (newPeople.length !== 1 ? 's' : '') + ' found on website'; else title = 'No new people found'; - if (truncated) title += ' (showing first 40 of ' + total + ' — rescrape again for more)'; + if (truncated) title += ' (showing first 20 of ' + total + ' — rescrape again for more)'; document.getElementById('rescrapeTitle').textContent = title; let html = ''; if (truncated) { - html += '

⚠️ Only the first 40 results were pulled. You can rescrape again to get additional people.

'; + html += '

⚠️ Only the first 20 results were pulled. You can rescrape again to get additional people.

'; } if (newPeople.length > 0) { - html += '

New people — select to add:

'; + html += '
' + + '
' + + '

New people found — select to add:

' + + '' + + '
' + + '
'; newPeople.forEach((p, i) => { html += '