You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR Review: fix(frontend): missing skeleton view for actor names
This is a clean, focused fix that adds a proper loading skeleton state to the actors grid. The change is small and well-scoped. Since the PR is already merged, this is a retrospective review.
What the change does
Adds an ActorGridCardSkeleton component that mirrors the dimensions/styling of the real GridCard
Adds delayMs? to the MSW mock utility so loading states can be inspected during dev/testing
Updates CLAUDE.md with a usage example for the new mock option
Looks good
Skeleton structure: The skeleton card correctly mirrors the real card shape (min-h-[110px], icon placeholder + two text lines), which avoids layout shift when content loads in.
Render logic: The three-branch ternary (isLoading → skeleton, builds.length === 0 → empty state, otherwise → grid) correctly handles all cases. Previously the component silently rendered nothing during load.
Biome ignore comment:// biome-ignore lint/suspicious/noArrayIndexKey: skeleton loaders are static is the right call. Index keys are safe here because skeleton items are statically ordered and never reordered.
delayMs implementation: Making buildHandler async and conditionally awaiting delay(m.delayMs) before returning is clean. The if (m.delayMs) guard correctly skips the delay when unset or zero.
Minor observations
Hardcoded skeleton count (8): Rendering exactly 8 skeletons regardless of actual actor count is standard practice and fine, but worth noting if the typical actor count is much smaller — users may see more skeleton cards than real cards appear. Not a bug, just a style choice.
Grid column consistency: The skeleton grid uses grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3. If the actual content grid uses different responsive breakpoints, there will be a layout shift on load completion. Worth a spot-check against the real builds grid layout if not already verified visually.
No error-state divergence: The diff doesn't show how isLoading is set to false on query error. If a failed fetch leaves isLoading: false and builds: [], the empty-state fallback renders, which is correct. Just confirming that path is covered.
Summary
Solid, minimal fix. The skeleton component is well-structured and the mock utility enhancement is a useful developer tool. No blocking issues.
May 21, 8:51 PM UTC: A user started a stack merge that includes this pull request via Graphite.
May 21, 8:55 PM UTC: Graphite rebased this pull request as part of a merge.
May 21, 8:55 PM UTC: @jog1t merged this pull request with Graphite.
jog1t
changed the base branch from
05-20-fix_frontend_ensure_onboarding_checks_are_only_for_production_namespace_improve_caching
to
graphite-base/5078May 21, 2026 20:52
jog1t
deleted the
05-20-fix_frontend_missing_skeleton_view_for_actor_names
branch
May 21, 2026 20:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: