Highly ambitious ATProtocol AppView service and sdks
138
fork

Configure Feed

Select the types of activity you want to include in your feed.

bump lexicon getRecords fetch limits

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