fix: Make search bar chart loading state more obvious#1178
fix: Make search bar chart loading state more obvious#1178elizabetdev wants to merge 10 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 8af74ce The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
E2E Test Results✅ All tests passed • 39 passed • 3 skipped • 287s
|
|
I think the loading indicator is pretty aggressive in live tail since it'll continually refresh/flash - is there a way we can make it more subtle during live tail? (ex. we disable loading indicators in the search results table for live tail for this same reason) |
|
@MikeShi42 I disabled the bar chart loading state during auto-refresh in live tail, but kept it when a user adds a filter. That added a bit of code complexity, though I left comments in the code. It also got me wondering if this is really the right solution, or if we should rethink loading states overall. What do you think? Should we stick with this approach or explore a better pattern? |
PR Review - Search Bar Chart Loading StateCritical Issues:DBSearchPage.tsx - Memory Leak Risk:
DBSearchPage.tsx - Race Condition:
Code Quality Issues:
Suggestion:Consider using the actual query loading state from TanStack Query instead of timeout-based approach for more reliable UX. |
|
Closed due to staleness. Please re-open with updates if needed. |
Closes HDX-1954.
This PR improves the visibility of the search bar chart loading state by graying out the chart and adding a "Loading" text overlay.
search-results-loading.mov