Tools for the Atmosphere tools.slices.network
quickslice atproto html

feat(tangled): add topic search support

Add topic:query syntax to search repos by topic

+8 -1
+8 -1
tangled-repos.html
··· 390 390 <p class="tagline">Browse repositories from the Atmosphere</p> 391 391 </header> 392 392 <div class="search-container"> 393 - <input type="text" id="search-input" placeholder="Search... (@user, repo:name)" /> 393 + <input type="text" id="search-input" placeholder="Search... (@user, repo:name, topic:rust)" /> 394 394 <button id="clear-search" class="hidden" title="Clear search">&times;</button> 395 395 </div> 396 396 <div id="result-count"></div> ··· 486 486 const name = q.slice(5); 487 487 if (!name) return null; 488 488 return { name: { contains: name } }; 489 + } 490 + 491 + // topic:name syntax - search by topic 492 + if (q.startsWith("topic:")) { 493 + const topic = q.slice(6); 494 + if (!topic) return null; 495 + return { topics: { contains: topic } }; 489 496 } 490 497 491 498 // Plain text - search all fields