ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto

fix: show loading screen during extension upload search

Previously when loading an upload from extension that hadn't been searched yet,
the app would immediately navigate to the results page showing 'none' for all
matches, then update them as the search progressed.

Now it behaves like the file upload flow:
- Shows loading screen during search
- Navigates to results only after search completes and results are saved
- If upload already has matches, navigates to results immediately

byarielm.fyi 46626f4a 212660a9

verified
Changed files
+6 -4
packages
web
src
+6 -4
packages/web/src/App.tsx
··· 197 197 })); 198 198 199 199 setSearchResults(loadedResults); 200 - setCurrentStep("results"); 201 200 202 - // If no matches yet, trigger search 201 + // If no matches yet, trigger search BEFORE navigating to results 203 202 if (!hasMatches) { 204 203 const followLexicon = ATPROTO_APPS[currentDestinationAppId]?.followLexicon; 205 204 ··· 207 206 loadedResults, 208 207 (message) => setStatusMessage(message), 209 208 async (finalResults) => { 210 - // Search complete - save results 211 - // finalResults contains the updated results with all matches found 209 + // Search complete - save results and navigate to results page 212 210 await saveResults(uploadId, platform, finalResults); 211 + setCurrentStep("results"); 213 212 }, 214 213 followLexicon 215 214 ); 215 + } else { 216 + // Already has matches, navigate to results immediately 217 + setCurrentStep("results"); 216 218 } 217 219 218 220 // Announce to screen readers only - visual feedback is navigation to results page