Skip to content

feat(viewer): host-overridable ss:aside-head slot atop the sidebar#172

Draft
benvinegar wants to merge 1 commit into
mainfrom
feat/aside-head-slot
Draft

feat(viewer): host-overridable ss:aside-head slot atop the sidebar#172
benvinegar wants to merge 1 commit into
mainfrom
feat/aside-head-slot

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Adds a new host-overridable named slot ss:aside-head at the top of the sidebar, above the session list — mirroring the existing ss:aside-foot. Registered in both viewer/src/host.ts (SLOTS) and the hand-written viewer/embed.d.ts so the published SlotName union includes it.

Self-hosted parity is preserved: the insertion is a bare <slot name={SLOTS.asideHead} /> with no fallback children and no wrapper element/CSS, so with no projection it has zero height and rendering is byte-identical to before. An embedder can project a sidebar header here — e.g. a workspace picker and a pinned Home link.

Includes an e2e spec (e2e/embed-aside-head-slot.spec.ts) covering the no-projection (empty) and projection (above the session list) cases, and a changeset (minor).

🤖 Generated with Claude Code

Mirrors ss:aside-foot at the top of the sidebar, above the session list,
so an embedder can project a header (e.g. a workspace picker + Home link).
The slot is bare with no fallback children, so with no projection it has
zero height and self-hosted rendering is byte-identical to before.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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