Skip to content

Surface Platform chip on canvas, reclaim dashboard header space#96

Merged
pzverkov merged 2 commits intomainfrom
feature/platform-hud-on-canvas
Apr 22, 2026
Merged

Surface Platform chip on canvas, reclaim dashboard header space#96
pzverkov merged 2 commits intomainfrom
feature/platform-hud-on-canvas

Conversation

@pzverkov
Copy link
Copy Markdown
Owner

Summary

  • Move the Platform block (Latest API / Min API / old-device + low-RAM shares + advisory) from the Signals tab onto a new top-left canvas HUD, under the mode hint. Min-API and device-mix signals stay visible regardless of which right-dashboard tab is active.
  • Shrink the 28px dead zone above the sticky dashboard header. .side top padding drops from 16px to 8px and .side::before moves from sticky to absolute so the parent's 12px flex gap stops pushing the header down for a 0-tall decorative element.

Test plan

  • npm run build
  • npm run test:e2e (20/20 passing: 10 desktop + 10 mobile)
  • Manual: verified dashboard header now starts at y=8 (was y=28); Platform HUD renders top-left under the canvas hint at (16, 12) with the expected glass styling.

Move the Platform block (Latest API / Min API / old-device + low-RAM
shares + advisory) from the Signals tab onto a new top-left canvas
HUD, positioned below the mode hint drawn at (16, 12). This keeps
min-API and device-mix signals visible while the dashboard is on
Overview or History, and removes a card the user previously had to
scroll the right panel to reach.

Also shrink the 28px dead zone above the sticky dashboard header:
.side top padding drops from 16px to 8px (M3 density step) and
.side::before moves from sticky to absolute so the parent's flex gap
stops pushing the header down 12px for a 0-tall decorative element.
@pzverkov pzverkov self-assigned this Apr 22, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 22, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
app-survival-android 9f6bbd4 Commit Preview URL

Branch Preview URL
Apr 22 2026, 04:36 PM

Wrap both HUDs in a new .canvasHudStack--tl flex row under the mode
hint. Place sits leftmost with the componentType select + Add button;
Platform stays to its right with the API / device-share chip. Neither
HUD has to know the other's size and they wrap to a column on narrow
canvases automatically.

Drop the redundant drag-hint paragraph that used to live with the
Place card — the same guidance is drawn on the canvas as hint.select.
Remove the Place + Platform cards from the Overview / Signals tabs so
the dashboard no longer scrolls to reach them.

Mobile compaction: both HUDs shrink to single-line chips (Place keeps
select + Add; Platform drops the muted detail line and advisory) so
the stack stays clear of the bottom Backlog HUD on ~38vh canvases.
HUD backdrops get pointer-events: none with interactive children
opting back in so components placed behind the HUD stay tappable.

Tests: tap-on-canvas mobile spec now dispatches #btnAdd click via
dispatchEvent to bypass DOM hit-testing, since the starter arch-debt
event briefly pops the incident overlay over the new HUD stack.
@pzverkov pzverkov merged commit 74486a2 into main Apr 22, 2026
7 checks passed
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