Skip to content

[trees] Phase 5A | Header slot#500

Merged
SlexAxton merged 3 commits intomainfrom
alex/trees/phase-5
Apr 13, 2026
Merged

[trees] Phase 5A | Header slot#500
SlexAxton merged 3 commits intomainfrom
alex/trees/phase-5

Conversation

@SlexAxton
Copy link
Copy Markdown
Contributor

image

This splits the first composition surface out of the broader Phase 5 work so the
path-store lane can regain header composition before context-menu and icon work
land. The file-tree now manages header slot content on the host, the virtualized
view always exposes the slot outlet, and the docs demo plus targeted tests cover
render, cleanup, SSR outlet, and hydration behavior.

Constraint: User requested a header-slot-only commit before the rest of Phase 5
Rejected: Commit the full Phase 5 composition bundle together | needed a smaller reviewable slice
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep later composition surfaces reusing the host-managed slot path instead of introducing a separate header attachment mechanism
Tested: Targeted oxlint on changed files; bun test packages/trees/test/path-store-header-slot.test.ts and packages/trees/test/path-store-render-scroll.test.ts; bun ws trees build; bun ws trees tsc
Not-tested: Full root lint remains noisy from unrelated existing docs/demo files
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Apr 13, 2026 9:52pm
pierrejs-docs Ready Ready Preview Apr 13, 2026 9:52pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ed9c50186f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +227 to +230
this.#composition?.header != null &&
this.#composition.header.render == null
) {
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Support html-only header composition on client render

This early return skips all slot synchronization whenever composition.header is present without a render callback, which means a client-only PathStoreFileTree.render(...) call with composition.header.html will never display any header content unless SSR markup already exists to be adopted. In other words, the new html composition path currently works for preloadPathStoreFileTree(...) output but is silently ignored in non-SSR render flows, so integrations that rely on HTML-only composition lose the header entirely.

Useful? React with 👍 / 👎.

@SlexAxton SlexAxton merged commit e480d85 into main Apr 13, 2026
10 checks passed
@SlexAxton SlexAxton deleted the alex/trees/phase-5 branch April 13, 2026 21:53
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