-
[OPIK-6064] [FE] fix: gate loader on placeholder-empty state for v2 list pages (#6395)
发布于
2026-04-22 12:10:02 +00:00 - [OPIK-6064] [FE] fix: gate loader on placeholder-empty state for v2 list pages
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- fix(experiments): gate PageEmptyState on existence-probe resolution
Prevent the "No experiments yet" PageEmptyState from flashing on hard
reload of the Experiments page. The ExperimentsPage wrapper probes
useExperimentsList (size=1) to decide between PageEmptyState and
GeneralDatasetsTab, but defaulted isEmpty to true while the probe was
pending (undefined?.total ?? 0 === 0). While the probe resolves,
GeneralDatasetsTab's own Loader (from the prior commit) now holds.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- fix(lists): extend placeholder-empty Loader gate to 3 more v2 pages
Found during review of OPIK-6064: PromptsPage, OnlineEvaluationPage, and
DatasetListPage share the exact same keepPreviousData + isPending gate- empty-state pattern as the original 5 pages, so they exhibit the same
flash on project/workspace switches from an empty cache. Applying the
same one-line gate here keeps behavior uniform across v2 list surfaces.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件