Skip to content

fix(frontend): missing skeleton view for actor names#5078

Merged
jog1t merged 1 commit into
mainfrom
05-20-fix_frontend_missing_skeleton_view_for_actor_names
May 21, 2026
Merged

fix(frontend): missing skeleton view for actor names#5078
jog1t merged 1 commit into
mainfrom
05-20-fix_frontend_missing_skeleton_view_for_actor_names

Conversation

@jog1t
Copy link
Copy Markdown
Contributor

@jog1t jog1t commented May 20, 2026

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@jog1t jog1t mentioned this pull request May 20, 2026
11 tasks
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 20, 2026

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.

Copy link
Copy Markdown
Contributor Author

jog1t commented May 21, 2026

Merge activity

  • 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 jog1t changed the base branch from 05-20-fix_frontend_ensure_onboarding_checks_are_only_for_production_namespace_improve_caching to graphite-base/5078 May 21, 2026 20:52
@jog1t jog1t changed the base branch from graphite-base/5078 to main May 21, 2026 20:53
@jog1t jog1t force-pushed the 05-20-fix_frontend_missing_skeleton_view_for_actor_names branch from d2c093a to 82c94e0 Compare May 21, 2026 20:54
@jog1t jog1t merged commit a4778e4 into main May 21, 2026
8 of 11 checks passed
@jog1t jog1t deleted the 05-20-fix_frontend_missing_skeleton_view_for_actor_names branch May 21, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant