public uptime monitoring + (soon) observability with events saved to PDS

stop early if new batch is smaller than batch size (probably fetched all that we could

Changed files
+8
web
src
+8
web/src/lib/atproto.ts
··· 60 60 61 61 /** 62 62 * fetches up to 2000 uptime check records using cursor pagination with progress callback 63 + * stops early if no more records are available 63 64 * 64 65 * @param pds the PDS URL 65 66 * @param did the DID or handle to fetch records for ··· 88 89 if (onProgress) { 89 90 onProgress(allRecords); 90 91 } 92 + 93 + // Stop early if we got fewer records than the batch size (indicating we've exhausted all records) 94 + // or if no cursor is returned (also indicating no more records) 95 + if (newRecords.length < batchSize || !cursor) { 96 + break; 97 + } 98 + 91 99 } while (cursor && totalFetched < maxRecords); 92 100 93 101 return allRecords;