Refetch Sync dialog on focus and add spinner#2965
Conversation
📊 Performance Test ResultsComparing f0b0a77 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
Add spinner to initial loading state, smooth fade transition on the refresh overlay, and bump overlay opacity for better contrast. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…DialogOnFocusAndAddSpinner
katinthehatsite
left a comment
There was a problem hiding this comment.
I like the updated design and I think it looks quite nice 😍
One thing that I noticed is that sometimes when I open for the first time the sync dialog for a specific site, it shows Refreshing instead of Loading which is slightly confusing since this is what the user is seeing for the first time for that site:
Screen.Recording.2026-04-08.at.12.06.47.PM.mov
Do you think it is something that we could adjust? There are also a couple of minor linter issues that need to be resolved.
Fixed
Hm, IDK what is the best approach here 🤔 The problem is - we render "Refreshing" in case when we have data already in cache, but we use |
Makes sense, let's leave as is and we can iterate if this creates confusion. |



Related issues
How AI was used in this PR
AI assisted me, but the implementation is mine.
Proposed Changes
The solution - we need to refetch sites on the focus event, if the Sync dialog is opened in Studio.
The solution - we should communicate in UI that we are refetching sites.
Testing Instructions
Loading sites