Repository navigation
Conversation
A host project header rendered through the generic Button primitive, so it carried `btn`/`btn-ghost` on top of `sidebar-session-group-title`. The button reset centers its content and adds 12px of padding, which overrode the title box's 6px inset and pulled the chevron, folder, and label off the rail every local project group sits on. A short host project name was pushed furthest right, so the group read as nested under its neighbour. Render the title through `TooltipButton` like the local group does, and give the trailing new-task control the shared `sidebar-session-group-add` class so it takes the same reveal behaviour. The regression test asserts the rendered header carries no `btn` class and the add control keeps that class.
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Host project groups in the sidebar were rendered with the generic
Buttonprimitive instead of the title primitive a local project group uses. That put
btn btn-ghoston top ofsidebar-session-group-title, so the button reset'scentered content and
12pxpadding overrode the title box's6pxinset.Measured in a running 0.23.0 desktop against a real SSH host:
padding-left6pxpi-desktop-plugins12px713Air12pxBecause the reset centers its content, a shorter host project name was pushed
furthest right, so a host group read as a nested child of the group above it
instead of a sibling section under its own
Remoteheading.Fix
TooltipButton, the same primitiveSidebar.tsxuses for a local project group, so onlysidebar-session-group-titlecarries the box.sidebar-session-group-addclass, so it gets the same reveal behaviour and hit area as the local one.
After the change every group on the rail resolves to the same geometry:
title x 12, chevron 18, folder 36, label 54, body x 23, first row x 32 — for
local projects and both host groups alike.
Tests
apps/desktop/test/remote-project-groups.test.mjsasserts the rendered header carries no
btnclass, keepssidebar-session-group-title project-toggle, and that the add control keepssidebar-session-group-add. It fails on the previous markup.remote-project-groups,sidebar-modules-visibility,sidebar-project-runs: 19/19 passed.pnpm build:js: exit 0.pnpm --filter @pi-desktop/desktop typecheck: exit 0.pnpm lint: 0 findings (lint:biomeclean, style tokens OK).including expanding both host groups; the geometry above was read from the
live DOM through the DevTools protocol.
docs/spec/06-delivery/e2e/live-and-remote.mdrecords that a host group headershares the local group's title rail.