Repository navigation
Conversation
This was referenced Nov 20, 2026
`ConversationWorkspaceProps.aside` renders after the main tab's reader, between the transcript and the side pane, in a positioned row that is the aside's offset parent. The aside sets its own width. Plugins detect the slot with `conversation.workspaceSlots.aside === true`; an older host ignores the prop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
- Cover the aside's offset parent and its place between the transcript and the side pane in the conversation workspace browser suite; jsdom cannot compute layout. Fails without `.workspaceRow`'s position. - Type `workspaceSlots` and its flag as optional, as other feature-detected capabilities are, so plugin code checks before use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
gilgtm
force-pushed
the
needs-you/workspace-aside-slot
branch
from
November 21, 2026 03:42
2c0017a to
0e8b323
Compare
This was referenced Nov 21, 2026
Contributor
Author
|
🤖 Superseded by #4212, which puts the aside in the channel timeline's scroller so it scrolls with the transcript. That PR keeps this PR's |
Contributor
Author
|
🤖 Closing: superseded by #4212, which provides the same aside slot with the floating-panel layout. |
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.
A plugin page that embeds
ctx.conversation.ui.Workspacecannot put its own content beside the channel transcript. It can only place it above or below the whole Workspace, so a page that wants a dashboard or details column next to the conversation would have to rebuild the reader. This adds one optional prop that the host renders after the main tab's reader, between the transcript and the side pane, plus a flag so a plugin can tell whether the running host supports it.API
ConversationWorkspaceProps.aside?: ReactNode. It renders as the next sibling of the main tab's reader, inside a new flex row (.workspaceRow,position: relative). The host gives the aside no width, frame or scrolling; the content sets its own width. Its offset parent is that row, so a page can watch the row's size (for example, with aResizeObserveronoffsetParent) and pick its own layout when the side pane opens or the window narrows.ctx.conversation.workspaceSlots?.aside === truewhen the host renders it.workspaceSlotsis a frozen object that names each optionalui.Workspaceprop the host renders.Why this is the smallest general extension point. It is one
ReactNodeslot and one capability flag, and it names no plugin. The reader, tabs and side pane keep their current owners and behavior. The row wrapper replaces the existing inner.conversationdiv in the same position. The reader's absolutely positioned descendants already resolve inside[data-attachment-drop-zone], so making the row positioned affects only the aside. Thecontracts.tsandservice.tsxchanges are limited to the prop, the flag and their docs (both files are FOUNDATION).Older hosts. An older host has no
workspaceSlotsobject, so the flag isundefined, and React ignores the unknownasideprop. Plugins should read the flag with?.and fall back to their current layout, for example a page-level column outside the Workspace.workspaceSlotsand its keys are typed optional for that reason, the same way feature-detected capabilities likereadModelSettings?are.Sibling PR. The
headerActionsslot PR (#4072) addsheaderActionsto the sameworkspaceSlotsobject and the same docs paragraph. Each PR applies tomainalone; whichever merges second needs a one-line merge in each spot.Tests
PageTabs.test.tsx: the aside renders as the reader's next sibling, inside the main tabpanel.service.test.tsx: a plugin seesworkspaceSlots.aside === true.tests/browser/conversation-workspace.spec.mjs, one new browser case: with a reply open in the side pane, the aside'soffsetParentis the row that also holds the transcript, and it sits between the transcript and the side pane. jsdom has no layout oroffsetParent, so only a browser can check this contract. It fails in Chromium and WebKit whenposition: relativeis removed from.workspaceRow, and passes in both with it. The full spec passes in both engines (10 tests). The ReaderPage fixture gets a zero-width aside, so other cases' layout does not change.Not yet checked: light and dark themes, enlarged text, keyboard focus order through the aside, and human testing.
🤖 Generated with Claude Code