Conversation
The thumbnail was only recaptured when the theme path changed, so adding new posts and restarting the site would leave the thumbnail stale. Now updateCachedThumbnail() runs on every loadThemeDetails() call while persistThemeDetails() remains gated on actual theme changes.
…how-new-posts-after-site
…how-new-posts-after-site
|
I moved the thumbnail update to run every time |
There was a problem hiding this comment.
Thank you for the fix, Antonio! I can confirm the issue is no longer there and the thumbnail gets refreshed correctly 🙂👍🏼 :
CleanShot.2026-02-09.at.15.07.42.mp4
The refresh happens correctly on theme change as well. 👍🏼
The only thing I noticed is that we are not using the thumbnail-loading event when the thumbnail is refreshing, but I think that's even better in this case - as I found the loading on placeholder on app focus distracting.
I also left one inline comment.
| } ); | ||
|
|
||
| describe( 'loadThemeDetails', () => { | ||
| it( 'should update thumbnail even when theme has not changed', async () => { |
There was a problem hiding this comment.
I wonder if we could merge this first new test with the last one.
📊 Performance Test ResultsComparing 7f421b8 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
Related issues
Proposed Changes
Testing Instructions
npm startthumbnail.mp4
Pre-merge Checklist