Skip to content

Keep workload pane loader centered when host height chain collapses - #1157

Draft
nadaverell wants to merge 1 commit into
mainfrom
claude/new-session-tj1qfh
Draft

Keep workload pane loader centered when host height chain collapses#1157
nadaverell wants to merge 1 commit into
mainfrom
claude/new-session-tj1qfh

Conversation

@nadaverell

Copy link
Copy Markdown
Contributor

Description

On the hosted app-detail workload view (mobile), the Overview tab's loading radar sat pinned to the top of the pane instead of centering.

Root cause: the full-pane fetch states in WorkloadView (Overview InfoTab, YAML pane, drawer body — loader / error / not-found via FetchResult) and the Topology pane wrapper all rely on bare h-full. That centers correctly when the ancestor height chain terminates in a viewport-bound frame (standalone Radar's h-screen), but embedded hosts use h-full min-h-0 all the way up — if the host page scrolls (auto-height ancestors, as on mobile), h-full collapses to content height and the loader hugs the top. The Topology pane's absolute inset-0 loader collapses to zero height in the same scenario.

Fix: introduce a shared FULL_PANE_FETCH_STATE class (h-full min-h-[60dvh]) for the three FetchResult call sites and give the Topology pane wrapper the same min-h-[60dvh] floor. The floor is a no-op when the pane resolves to a real height (any pane ≥ 60dvh), and gives the loader a viewport-relative band to center in when the chain collapses.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

How has this been tested?

  • make tsc passes.

  • No unit tests cover this component; the change is a pure CSS min-height floor. The collapsed-chain scenario can't reproduce in standalone Radar (its h-screen frame keeps the chain intact), so behavior there is unchanged by construction; verification of the embedded-host mobile case needs a Radar Hub deploy consuming this @skyhook-io/k8s-ui change.

  • Tested locally with minikube/kind

  • Tested against a remote cluster

  • Added/updated unit tests

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my code
  • I have added comments where necessary
  • My changes generate no new warnings
  • Any dependent changes have been merged

Related issues

N/A — reported via mobile screenshot of the hosted app detail view.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CS93k2c3jsTwuyyQZ62L9L


Generated by Claude Code

Full-pane fetch states (Overview/YAML/drawer loading, error, not-found)
and the Topology pane used bare h-full, which collapses to content
height when an embedding host lets the page scroll (auto-height
ancestors) — pinning the radar loader to the top of the pane, as seen
on mobile. Add a 60dvh min-height floor so these states keep a band to
center in; the floor is a no-op when the pane resolves to a real
viewport-bound height.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CS93k2c3jsTwuyyQZ62L9L
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.

2 participants