fix(sites): plain centered empty state for site buildings pane - #884
fix(sites): plain centered empty state for site buildings pane#884flesher wants to merge 1 commit into
Conversation
Render the "No buildings in this site" empty state as centered text instead of a fixed-size PlaceholderBlock, so it no longer looks like a building tile or wraps awkwardly in the 120px box. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🔐 Codex Security Review
Review SummaryOverall Risk: NONE FindingsNo security, correctness, or reliability findings. NotesThe diff only replaces a static empty-state placeholder with static React text. It does not introduce untrusted input handling, authentication changes, network behavior, persistence, concurrency, or command execution. Generated by Codex Security Review | |
There was a problem hiding this comment.
Pull request overview
Updates the ProtoFleet Manage Site modal’s right-hand “buildings preview” pane to render a clearer empty state when a site has no buildings, avoiding the placeholder-tile styling that made the empty state look like a building card and forced awkward wrapping.
Changes:
- Replace the “no buildings” preview state from a fixed-size
PlaceholderBlocktile to centered plain text. - Add
whitespace-nowrapto keep the empty-state message on one line.
What & why
The Manage Site modal's right pane renders each building as a fixed-size gray FPO tile (
PlaceholderBlock). When a site had no buildings, the empty state reused that same tile treatment — producing a bordered white box that read as a building and forced "No buildings in this site" to wrap inside the 120px width.This swaps that one branch for plain text centered on both axes in the existing flex container, with
whitespace-nowrapto stop the wrap. The empty state now reads as an empty state rather than a stray building card.Scope
The loading and populated states still use
PlaceholderBlock— those remain FPO pending the realBuildingCardcomponent (#263). Non-goal / deferred: no change to the tile design itself or the broader FPO-to-real-component migration; this is a targeted empty-state cleanup only.🤖 Generated with Claude Code