Skip to content

refactor(ui): derive session rail JSX properties - #181010

Merged
steipete merged 1 commit into
mainfrom
solid2/w-deslop-final-chat-rail-types
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-deslop-final-chat-rail-types

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The embedded session rail repeats the native rail's property types in a hand-maintained JSX declaration.

User Impact

No runtime or user-visible change. The rail keeps the same tag, props, rendering, lifecycle, and lazy-loading behavior.

Why This Change Was Made

Use the existing ChatSessionRailElement type through EmbeddedAttributes, the same mapped type already used for five sibling embedded tags. This removes the second property list and lets the native rail's prop contract own the JSX types.

Production/type LOC: 494 → 472 (−22). Tests are unchanged. The only added import is import type; both it and the declaration are erased from JavaScript.

Evidence

Proof Result
pnpm tsgo:ui Passed; checks the rail callers against the authoritative props
Touched-file lint/format and git diff --check Passed
Independent review Completed before commit
Startup/route budgets Emitted runtime and import graph unchanged; no build needed for erased types
Broad chat performance/retention/UI/Gateway proof ci:full requested

No new tests or screenshots: no runtime behavior or visual output changes.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T21:40:23.580021Z bb30c7b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 21:45
@steipete
steipete merged commit ed87a46 into main Oct 22, 2026
83 of 84 checks passed
@steipete
steipete deleted the solid2/w-deslop-final-chat-rail-types branch October 22, 2026 21:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant