Highly ambitious ATProtocol AppView service and sdks

bump lexicon getRecords fetch limits

Changed files
+24 -15
frontend
src
features
slices
lexicon
sync
+18 -13
frontend/src/features/slices/lexicon/handlers.tsx
··· 51 51 sliceId, 52 52 context.sliceContext.profileDid 53 53 ); 54 - const lexiconRecords = 55 - await sliceClient.network.slices.lexicon.getRecords(); 54 + const lexiconRecords = await sliceClient.network.slices.lexicon.getRecords({ 55 + limit: 1000, 56 + }); 56 57 57 58 if (lexiconRecords.records.length === 0) { 58 59 const isOwner = context.sliceContext?.hasAccess; ··· 237 238 context.sliceContext.profileDid 238 239 ); 239 240 240 - const lexiconRecords = 241 - await sliceClient.network.slices.lexicon.getRecords(); 242 - 241 + const lexiconRecords = await sliceClient.network.slices.lexicon.getRecords({ 242 + limit: 1000, 243 + }); 243 244 const lexicon = lexiconRecords.records.find((record) => 244 245 record.uri.endsWith(`/${lexiconRkey}`) 245 246 ); ··· 287 288 await sliceClient.network.slices.lexicon.deleteRecord(rkey); 288 289 289 290 const remainingLexicons = 290 - await sliceClient.network.slices.lexicon.getRecords(); 291 - 291 + await sliceClient.network.slices.lexicon.getRecords({ 292 + limit: 1000, 293 + }); 292 294 const countHeader = ( 293 295 <Card.Header 294 296 title={`${remainingLexicons.records.length} ${ ··· 349 351 350 352 try { 351 353 const sliceClient = getSliceClient(context, sliceId); 352 - const lexiconRecords = 353 - await sliceClient.network.slices.lexicon.getRecords(); 354 - 354 + const lexiconRecords = await sliceClient.network.slices.lexicon.getRecords({ 355 + limit: 1000, 356 + }); 355 357 if (lexiconRecords.records.length === 0) { 356 358 return renderHTML( 357 359 <EmptyState ··· 424 426 425 427 // Get remaining lexicons 426 428 const remainingLexicons = 427 - await sliceClient.network.slices.lexicon.getRecords(); 428 - 429 + await sliceClient.network.slices.lexicon.getRecords({ 430 + limit: 1000, 431 + }); 429 432 const countHeader = ( 430 433 <Card.Header 431 434 title={`${remainingLexicons.records.length} ${ ··· 510 513 sliceParams.sliceId, 511 514 context.sliceContext.profileDid 512 515 ); 513 - const result = await sliceClient.network.slices.lexicon.getRecords(); 516 + const result = await sliceClient.network.slices.lexicon.getRecords({ 517 + limit: 1000, 518 + }); 514 519 lexicons = result.records || []; 515 520 } catch (error) { 516 521 console.error("Failed to fetch lexicons:", error);
+6 -2
frontend/src/features/slices/sync/handlers.tsx
··· 169 169 // Get all lexicons and filter by record types 170 170 try { 171 171 const lexiconsResponse = 172 - await sliceClient.network.slices.lexicon.getRecords(); 172 + await sliceClient.network.slices.lexicon.getRecords({ 173 + limit: 1000, 174 + }); 173 175 const recordLexicons = lexiconsResponse.records.filter((lexicon) => { 174 176 try { 175 177 const definitions = JSON.parse(lexicon.value.definitions); ··· 241 243 // Get all lexicons and filter by record types 242 244 try { 243 245 const lexiconsResponse = 244 - await sliceClient.network.slices.lexicon.getRecords(); 246 + await sliceClient.network.slices.lexicon.getRecords({ 247 + limit: 1000, 248 + }); 245 249 const recordLexicons = lexiconsResponse.records.filter((lexicon) => { 246 250 try { 247 251 const definitions = JSON.parse(lexicon.value.definitions);