Added loading state to post analytics export#27998
Conversation
ref NY-1296 The post analytics export can take a while to prepare, so the export action now gives users feedback and prevents duplicate requests while it is running.
WalkthroughThis PR adds loading state management to the post analytics export feature in the Admin X Settings panel. A new 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| const postAnalyticsButton = section.getByTestId('post-analytics-export-button'); | ||
| await postAnalyticsButton.click(); | ||
|
|
||
| await expect.poll(() => exportRequestCount).toBe(1); |
closes https://linear.app/ghost/issue/NY-1296/add-a-loading-state-to-the-export-post-analytics-button-to-indicate
Summary
Before
Screenshot.2026-05-20.at.13.53.42.mp4
After
Screenshot.2026-05-20.at.13.55.44.mp4