YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: sort pipes by downloads count and creation date (#1462)
Matthew Diakonov15788e234d0c
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsxindex 5f5ef48d6..d6ad77d0f 100644--- a/screenpipe-app-tauri/components/pipe-store.tsx+++ b/screenpipe-app-tauri/components/pipe-store.tsx@@ -58,9 +58,18 @@ export const PipeStore: React.FC = () => {(pipe) =>pipe.id.toLowerCase().includes(searchQuery.toLowerCase()) &&(!showInstalledOnly || pipe.is_installed) &&- !pipe.is_installing+ !pipe.is_installing,)- .sort((a, b) => Number(b.is_paid) - Number(a.is_paid));+ .sort((a, b) => {+ // Sort by downloads count first+ const downloadsA = a.plugin_analytics?.downloads_count || 0;+ const downloadsB = b.plugin_analytics?.downloads_count || 0;+ if (downloadsB !== downloadsA) {+ return downloadsB - downloadsA;+ }+ // Then by creation date+ return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();+ });// Add debounced search trackinguseEffect(() => {