Merge branch 'feat/client-review-page-seams' into worktree/forge-m7-review-page-ee17bf

This commit is contained in:
LegGasai committed 2026-11-12 16:18:42 +08:00
commit 2e932b6dc8
15 files changed
+55 -48

No files matched your search

@@ -21,8 +21,8 @@
en: 4a094cd97426ad18
zh: 5faadddb7e2b0a43
/deepseek-ai-dsh-client-ui-conversation/shell-and-standard-props:
en: c0dd18a35ea8d9cd
zh: bc1ef35395f26b80
en: e7fb1a7cd740aad8
zh: f523dfd4b9d6f693
/deepseek-ai-dsh-client-ui-conversation/temporary-composer-entries:
en: 59cd63057dfb6eeb
zh: b2e2c86e810b7bb8
+1 -1
View File
@@ -106,7 +106,7 @@ A claimed command is one atomic chip at the start of the draft, and the claim la
Workspace selection uses `uiWorkspace.openWorkspace` to prepare the target and commit navigation. Draft content, including structured references, and attachments move in its synchronous preparation callback only while that request is current and no submission is in flight; later navigation, owner disposal, or a submission in flight leaves the original draft in its Session.
The package occupies the root-scoped `main` key `conversation`. Its `main.conversation` shell keeps the resident `conversation.header` outside the optional-Session `conversation.content` Component Factory. The header hosts root-scoped navigation without a selected Session; titles, actions, and View tabs remain in its strict Session child. The Factory owns the shared body and Composer, reads the current Session through its standard Hook, and exposes strict-Session `views` plus root-scoped `widthControls` local positions. Its default adapter renders the existing `conversation.session` entry, while the main occurrence selects the width handles; an embedded occurrence can replace `views` and omit those handles without rendering the main Header. An embedded occurrence may also pass `onWorkspaceSession`, which receives the blank Session of a Workspace the Hero's picker chose, retains it, and shows it, while the draft moves to it without that blank opening as the main Session, and `headline`, which replaces the Hero headline and preview badge. The shared body and Composer register the queue and Todo docks. The Todo dock uses the shared panel elevation above the composer; its rows use the shared idle, ongoing, and done markers for pending, in-progress, and completed items. `ctx.uiSession.provide()` materializes the Conversation and input sources from the same Session binding and supplies `inputActions` as a stable standard prop.
The package occupies the root-scoped `main` key `conversation`. Its `main.conversation` shell keeps the resident `conversation.header` outside the optional-Session `conversation.content` Component Factory. The header hosts root-scoped navigation without a selected Session; titles, actions, and View tabs remain in its strict Session child. The Factory owns the shared body and Composer, reads the current Session through its standard Hook, and exposes strict-Session `views` plus root-scoped `widthControls` local positions. Its default adapter renders the existing `conversation.session` entry, while the main occurrence selects the width handles; an embedded occurrence can replace `views` and omit those handles without rendering the main Header. An embedded occurrence may also pass `onWorkspaceSession`: it receives the blank Session of a Workspace the Hero's picker chose, retains it, and shows it, and the draft moves to that Session without it opening as the main Session. An embedded occurrence may also pass `headline`, which replaces the Hero headline and preview badge. The shared body and Composer register the queue and Todo docks. The Todo dock uses the shared panel elevation above the composer; its rows use the shared idle, ongoing, and done markers for pending, in-progress, and completed items. `ctx.uiSession.provide()` materializes the Conversation and input sources from the same Session binding and supplies `inputActions` as a stable standard prop.
A blank Session retains the header's leading and corner controls, including the right-sidebar opener, while hiding its title, actions, utilities, and View tabs. Selecting a Workspace creates the Session needed by these controls; the first message is not required. Without a selected Session, the strict header is absent; the resident header keeps the blank-Session 40px row on every platform, so the Hero input card sits at the same height before and after a Workspace is bound; on macOS desktop that row is also the window drag row. Sidebar entries retain their own data and execution prerequisites. A started Session header uses one row when fewer than two Views are available; the tab row reserves space only while rendered. When the title and actions do not fit, the title area clips them and fades its trailing edge before the utilities, which stay fully visible and clickable; overlays in the title and actions slots portal to stay outside that clip.
+1 -1
View File
@@ -106,7 +106,7 @@ root 作用域的 `conversation.session.header.views.actions` list 有注册项
工作区选择使用 `uiWorkspace.openWorkspace` 准备目标并提交导航。草稿内容(包括结构化引用)和附件仅在该请求仍为当前请求、且没有在途提交时,通过它的同步准备回调搬移;后续导航、所有者释放或在途提交都会把原草稿留在它的 Session 中。
本包占据 root 作用域 `main` 中的 `conversation` key。其 `main.conversation` 外壳将常驻的 `conversation.header` 放在可选 Session 的 `conversation.content` Component Factory 外。未选中 Session 时,头部仍承载根作用域导航;标题、操作和 View 标签保留在严格 Session 子组件中。Factory 拥有共享正文与 Composer,通过其标准 Hook 读取当前 Session,并公开 strict-Session `views` 与 root-scoped `widthControls` 两个局部位置。默认 adapter 渲染现有 `conversation.session` entry,主 occurrence 选择宽度拖拽条;嵌入式 occurrence 可以替换 `views`、省略拖拽条,且不渲染主 Header。嵌入式 occurrence 还可以传入 `onWorkspaceSession` 与 `headline`:前者接收 Hero 选择器所选工作区的空白 Session,由它保留并显示该 Session,草稿随之移过去,而该空白 Session 不作为主 Session 打开;后者替换 Hero 的标题与预览徽标。共享正文与 Composer 注册 queue dock 和 Todo dock。Todo dock 在 composer 上方使用共享面板 elevation;其中的行分别以共享 idle、ongoing 与 done 标记表示待处理、进行中与已完成。`ctx.uiSession.provide()` 从同一个 Session binding 物化 Conversation 与 input source,并将 `inputActions` 作为稳定标准 prop 提供。
本包占据 root 作用域 `main` 中的 `conversation` key。其 `main.conversation` 外壳将常驻的 `conversation.header` 放在可选 Session 的 `conversation.content` Component Factory 外。未选中 Session 时,头部仍承载根作用域导航;标题、操作和 View 标签保留在严格 Session 子组件中。Factory 拥有共享正文与 Composer,通过其标准 Hook 读取当前 Session,并公开 strict-Session `views` 与 root-scoped `widthControls` 两个局部位置。默认 adapter 渲染现有 `conversation.session` entry,主 occurrence 选择宽度拖拽条;嵌入式 occurrence 可以替换 `views`、省略拖拽条,且不渲染主 Header。嵌入式 occurrence 还可以传入 `onWorkspaceSession`:它接收 Hero 选择器所选工作区的空白 Session,由它保留并显示该 Session;草稿随之移过去,该 Session 不作为主 Session 打开。嵌入式 occurrence 也可以传入 `headline`,用来替换 Hero 的标题与预览徽标。共享正文与 Composer 注册 queue dock 和 Todo dock。Todo dock 在 composer 上方使用共享面板 elevation;其中的行分别以共享 idle、ongoing 与 done 标记表示待处理、进行中与已完成。`ctx.uiSession.provide()` 从同一个 Session binding 物化 Conversation 与 input source,并将 `inputActions` 作为稳定标准 prop 提供。
blank Session 保留 header 的 leading 与 corner 控件,包括右侧栏展开入口,同时隐藏标题、actions、utilities 和 View tabs。选择 Workspace 会创建这些控件所需的 Session,无需先发送消息。没有选中 Session 时,strict header 不挂载;常驻 header 在所有平台都保留与 blank Session 相同的 40px 行,因此绑定 Workspace 前后 Hero 输入卡片的高度位置不变;在 macOS 桌面上,这一行同时是窗口拖拽行。侧栏各入口仍遵循自身的数据与执行环境要求。 已开始的 Session 在可用 View 少于两个时使用单行标题栏,仅在渲染标签行时保留其高度。标题与 actions 放不下时,标题区域会裁剪它们,并在 utilities 之前渐隐其末端;utilities 始终完整可见且可点击;标题与 actions slot 中的浮层通过 portal 渲染,不受该裁剪影响。
@@ -9,7 +9,7 @@ import type { PointerEvent, RefObject } from 'react'
import css from './TitleMarquee.module.css'
/** Class that fades a marquee title's clipping edges while it travels; add it to the title element. */
/* v8 ignore next -- the stylesheet defines .marquee; the fallback only satisfies the class map's index signature. */
/* v8 ignore next -- the stylesheet defines .marquee; were it missing, the title would carry no class and lose only its edge fades. */
export const titleMarqueeClass: string = css.marquee ?? ''
/* Overflow this small hides no meaningful tail; scrolling for it reads as an
+2 -2
View File
@@ -21,8 +21,8 @@
en: 6bc49e22f0f73f07
zh: 10883997ccb7d145
/deepseek-ai-dsh-client-ui-sidebar/use-this-package/global-panel-entries:
en: bae2249daceec5f1
zh: da6a7d880d0af55b
en: 8bc0f930af6ce312
zh: 97112bb5262cedf3
/deepseek-ai-dsh-client-ui-sidebar/use-this-package/collapse-behavior:
en: 10381cbac96069a3
zh: c5849741a0be2f00
+1 -1
View File
@@ -41,7 +41,7 @@ The expanded brand row renders `sidebar.brand.mark` and `sidebar.brand.name` as
Plugins add an icon component to the root-scoped `sidebar.panellist` list with an `id`, optional `order`, and a string or locale-aware `label`. The same id addresses the component registered in the layout's root-scoped `main` keyed slot; selecting a missing main entry throws without changing the current selection. The label supplies plain visible text, the accessible name, and the collapsed tooltip. Expanded navigation rows are 32px high with a 2px gap; collapsed rail controls remain 36px high with a 12px gap. Each row reads its own selected state through `usePanelInfo`; moving DOM focus to search or a directory picker does not change the displayed panel or its selected row. With no panel registrations, neither the list nor spacing for it is rendered. The shipped composition registers no example panel.
A panel may also register non-interactive content in the root-scoped `sidebar.panellist.trailing` list with the same `id`, such as a count. It receives `wide` and `active`; the expanded row shows it at its trailing edge, hidden while the row's unpin action shows on hover or keyboard focus and placed beside that action on devices without hover, and the collapsed rail shows it over the icon's top trailing corner. Its text becomes the row button's accessible description, so decorative parts must be `aria-hidden`.
A panel may also register non-interactive inline content in the root-scoped `sidebar.panellist.trailing` list with the same `id`, such as a count. It receives `wide` and `active`. The expanded row lays it out after the title and before the space the unpin action takes, as a Session row lays out its trailing icons, so a row without content keeps its full title width and the unpin action shows beside the content. The collapsed rail shows it over the icon's top trailing corner. It renders inside the row button, so it holds no interactive elements; its text becomes the button's accessible description, so decorative parts must be `aria-hidden`.
While the root-scoped `sidebar.panellist.actions` list has registrations, a **More** button styled as a panel row follows the rows inside the navigation landmark; the collapsed rail shows its label as a tooltip. It opens a menu whose rows are that list's registrations. Each receives `entries` (customizable panels in registration order with `id`, `label`, `pinned`, and `active`; Plugins is never listed), `onOpen(id)`, which selects the panel, `onPinnedChange(id, pinned)`, and `onDismiss()`, which closes the menu. The sidebar keeps one in-memory list of unpinned panel ids shared by every Session; Plugins always shows. While More shows, expanded rows other than Plugins show an unpin action on hover or keyboard focus; devices without hover show it continuously. Its resting color matches the Session pin marker, and its tooltip says “Unpin from left sidebar”. Both sidebar and More entries follow the same registration order rather than pin timing. The default More menu lists only unpinned panels before plugin browsing and creation; opening a panel does not pin it, while its separate pin icon returns the row to the sidebar and dismisses the menu. Choices reset when the plugin reloads and legacy localStorage values are ignored. Unpinning hides only the row, and only while More shows; without `sidebar.panellist.actions` registrations every registered row shows again. The main panel, its registration, and the current selection stay unchanged. Unregistered panel ids remain in the in-memory list until the plugin reloads.
+1 -1
View File
@@ -41,7 +41,7 @@ dsh Web 客户端的侧边栏让用户识别当前构建、启动新会话、将
插件在 root 作用域的 `sidebar.panellist` list 中注册图标组件,提供 `id`、可选 `order`,以及字符串或 locale-aware 的 `label`。同一个 id 寻址布局中 root 作用域 `main` keyed slot 的组件;选择不存在的主面板条目会抛错,并保留当前选中态。标签提供普通可见文字、无障碍名称和折叠提示。展开态导航行高 32px,间距为 2px;折叠窄栏控件保持 36px 高和 12px 间距。每一行通过 `usePanelInfo` 读取自己的选中态;DOM 焦点移到搜索框或目录选择器时,显示的面板及其列表项选中态不变。没有面板注册项时,列表及其间距均不渲染。产品随附的组合不注册示例面板。
面板还可以用相同 `id` 在 root 作用域的 `sidebar.panellist.trailing` list 中注册不可交互的内容,例如数量。它接收 `wide` 与 `active`;展开的行在行尾显示它,悬停或键盘聚焦出现取消固定操作时隐藏,在不支持悬停的设备上放在该操作旁边;收起的窄栏在图标右上角显示它。它的文字成为行按钮的无障碍描述,因此装饰性的部分必须设为 `aria-hidden`。
面板还可以用相同 `id` 在 root 作用域的 `sidebar.panellist.trailing` list 中注册不可交互的行内内容,例如数量。它接收 `wide` 与 `active`。展开的行把它排在标题之后、取消固定操作所占空间之前,与会话行排布行尾图标的方式相同:没有内容的行保留完整的标题宽度,取消固定操作显示在内容旁边。收起的窄栏在图标右上角显示它。它渲染在行按钮内,因此不能包含可交互元素;它的文字成为按钮的无障碍描述,因此装饰性的部分必须设为 `aria-hidden`。
root 作用域的 `sidebar.panellist.actions` list 有注册项时,导航区域的面板行之后显示面板行样式的**更多**按钮;收起的窄栏以提示框显示其名称。它打开的菜单以该 list 的注册项为菜单行。每个注册项接收 `entries`(按注册顺序的可自定义面板,含 `id`、`label`、`pinned` 与 `active`;不含插件管理)、选中面板的 `onOpen(id)`、`onPinnedChange(id, pinned)`,以及关闭菜单的 `onDismiss()`。侧边栏在内存中保存所有会话共用的已收起面板 id 列表;插件管理入口始终显示。更多按钮显示时,展开态中除插件管理外的面板行在悬停或键盘聚焦时显示取消固定操作;不支持悬停的设备始终显示该操作。图标默认颜色与会话置顶标记一致,提示为“从左侧栏取消固定”。侧栏和更多菜单入口遵循相同的注册排序,不按固定时间重排。默认更多菜单在插件浏览和创建之前仅列出未固定的面板;打开面板不会将其固定,独立的固定图标则将该行放回侧边栏并关闭菜单。插件重新加载时选择重置,不读取旧 localStorage 值。收起只隐藏导航行,且仅在更多按钮显示时生效;`sidebar.panellist.actions` 没有注册项时,所有已注册的面板行重新显示。主面板、其注册和当前选中态不变。未注册面板的 id 保留在内存列表中,直到插件重新加载。
@@ -661,41 +661,24 @@
outline-offset: -2px;
}
/* A panel's trailing content: at the row's trailing edge, where the unpin action shows instead while the row is
hovered or focused, and over the icon's top trailing corner on the collapsed rail. It never takes pointer input. */
/* A panel's trailing content follows the title in the row's flow, as a Session row's trailing icons do: a row without
content keeps its full title width, and the title yields room only to content that shows. On the collapsed rail it
sits over the icon's top trailing corner. */
.panelTrailing {
position: absolute;
right: 10px;
top: 50%;
flex: none;
display: inline-flex;
align-items: center;
transform: translateY(-50%);
margin-left: auto;
color: var(--dsw-alias-label-tertiary);
font-size: 12px;
line-height: 18px;
font-variant-numeric: tabular-nums;
pointer-events: none;
}
.panelTrailing:empty {
display: none;
}
.collapsed .panelTrailing {
position: absolute;
right: 5px;
top: 5px;
transform: none;
}
@media (hover: hover) {
.panelEntry:has(.panelUnpin):hover .panelTrailing,
.panelEntry:has(.panelUnpin):has(:focus-visible) .panelTrailing { visibility: hidden; }
}
/* Without hover the unpin action shows continuously, so the trailing content sits beside it and the title yields room. */
@media (hover: none) {
.panelEntry:has(.panelUnpin) .panelTrailing { right: 38px; }
.panelEntryWide:has(.panelUnpin):has(.panelTrailing:not(:empty)) .panelRow { padding-right: 72px; }
}
@media (hover: hover) {
@@ -98,9 +98,9 @@ function PanelRow({
{label}
</span>
)}
<span id={trailing} className={css.panelTrailing}>{renderFactorySlot('sidebar.panel.trailing', { id, wide, active })}</span>
</button>
</Tooltip>
<span id={trailing} className={css.panelTrailing}>{renderFactorySlot('sidebar.panel.trailing', { id, wide, active })}</span>
{wide && canUnpin && <Tooltip label={unpinTooltip} side="bottom" align="end" delayMs={500} portal>
<button type="button" className={css.panelUnpin} aria-label={unpinLabel} onClick={(event) => {
// Unpin is rendered only while this navigation also renders More.
@@ -29,7 +29,7 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
'sidebar.panel.trailing': {
scope: 'root'
props: SidebarPanelTrailingOwnerProps & { readonly id: string }
children: { 'sidebar.panellist.trailing': { kind: 'list'; scope: 'root' } }
children: { 'sidebar.panellist.trailing': { kind: 'list'; scope: 'root'; inline: true } }
}
}
interface SlotMap {
@@ -52,12 +52,13 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
*/
'sidebar.panellist': { kind: 'list'; scope: 'root'; owner: SidebarPanelIconOwnerProps }
/**
* Non-interactive content at the end of a panel's navigation row, registered with the panel's id, such as a count.
* The expanded row shows it at its trailing edge and hides it while the row's unpin action shows; the collapsed rail
* shows it over the icon's top trailing corner. Its text describes the row's button for assistive technology, so
* decorative parts are `aria-hidden`.
* Non-interactive inline content at the end of a panel's navigation row, registered with the panel's id, such as a
* count. The expanded row lays it out after its title, before the space its unpin action takes, so a row without
* content keeps its full title width; the collapsed rail shows it over the icon's top trailing corner. It renders
* inside the row's button: its text describes that button for assistive technology, so decorative parts are
* `aria-hidden`, and it holds no interactive elements.
*/
'sidebar.panellist.trailing': { kind: 'list'; scope: 'root'; owner: SidebarPanelTrailingOwnerProps }
'sidebar.panellist.trailing': { kind: 'list'; scope: 'root'; inline: true; owner: SidebarPanelTrailingOwnerProps }
/** Rows of the panel list's More menu; the sidebar shows More only while this list has registrations. */
'sidebar.panellist.actions': { kind: 'list'; scope: 'root'; owner: SidebarPanelActionsOwnerProps }
/**
@@ -92,7 +92,7 @@ export function apply(ctx: ClientContext): void {
}, PanelIcon)
yield ctx.slots.registerFactory({
name: 'sidebar.panel.trailing', scope: 'root',
children: { 'sidebar.panellist.trailing': { kind: 'list', scope: 'root' } },
children: { 'sidebar.panellist.trailing': { kind: 'list', scope: 'root', inline: true } },
}, PanelTrailing)
yield ctx.slots.register({
name: 'sidebar',
@@ -545,6 +545,13 @@ describe('sidebar panel trailing content', () => {
expect(within(described as HTMLElement).getByTestId('count').dataset).toMatchObject({ wide: 'true', active: 'false' })
expect(document.getElementById(beta.getAttribute('aria-describedby') ?? '')?.textContent).toBe('')
expect(view.getAllByTestId('count')).toHaveLength(1)
// The content sits inside the row button after its title; the slot wrappers are inline spans, so nesting stays valid.
expect(alpha.contains(described)).toBe(true)
expect(described?.previousElementSibling?.textContent).toBe('Alpha panel')
const wrappers = [...(described?.querySelectorAll('[data-slot]') ?? [])]
expect(wrappers.length).toBeGreaterThan(0)
expect(wrappers.every(wrapper => wrapper.tagName === 'SPAN')).toBe(true)
expect(described?.querySelector('div')).toBeNull()
fireEvent.click(alpha)
await waitFor(() => { expect(view.getByTestId('count').dataset.active).toBe('true') })
@@ -130,4 +130,21 @@ describe('SidebarRoot.module.css', () => {
expect(declarations('.fallbackBrandName')?.get('font-size')).toBe('17px')
expect(declarations('.fallbackBrandName')?.get('white-space')).toBe('nowrap')
})
it('lays panel trailing content out after the title like a Session row, reserving no room without content', () => {
const trailing = declarations('.panelTrailing')
expect(trailing?.get('flex')).toBe('none')
expect(trailing?.get('margin-left')).toBe('auto')
expect(trailing?.has('position')).toBe(false)
expect(declarations('.panelEntryWide .panelRow')?.get('padding-right')).toBe('38px')
expect(css).not.toMatch(/\.panelTrailing:(?:not\()?:?empty/)
expect(css).not.toMatch(/\.panelRow\s*\{[^}]*padding-right:\s*72px/)
})
it('pins panel trailing content over the collapsed rail icon\'s top trailing corner', () => {
const collapsed = declarations('.collapsed .panelTrailing')
expect(collapsed?.get('position')).toBe('absolute')
expect(collapsed?.get('right')).toBe('5px')
expect(collapsed?.get('top')).toBe('5px')
})
})
@@ -55,7 +55,6 @@ function displayTitle(node: SessionNode, t: RowTranslate): string {
return node.blank ? t('session.new') : (node.title || t('session.untitled'))
}
/** Localized compact relative time ("刚刚"/"5分钟" in zh, "now"/"5min" in en). */
function timeLabel(updatedAt: number, now: number, t: RowTranslate): string {
const { unit, n } = relativeTime(updatedAt, now)
@@ -4718,7 +4718,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
],
replaceRisk: 'none',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.footer.action\', () => ctx.slots.register(\n { name: \'sidebar.footer.action\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:88',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:89',
},
{
key: 'sidebar.panellist',
@@ -4828,14 +4828,14 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
],
replaceRisk: 'none',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.panellist.actions\', () => ctx.slots.register(\n { name: \'sidebar.panellist.actions\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:62',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:63',
},
{
key: 'sidebar.panellist.trailing',
kind: 'list',
scope: 'root',
summary: 'Non-interactive content at the end of a panel\'s navigation row, registered with the panel\'s id, such as a count.',
doc: 'Non-interactive content at the end of a panel\'s navigation row, registered with the panel\'s id, such as a count.\nThe expanded row shows it at its trailing edge and hides it while the row\'s unpin action shows; the collapsed rail\nshows it over the icon\'s top trailing corner. Its text describes the row\'s button for assistive technology, so\ndecorative parts are `aria-hidden`.',
summary: 'Non-interactive inline content at the end of a panel\'s navigation row, registered with the panel\'s id, such as a count.',
doc: 'Non-interactive inline content at the end of a panel\'s navigation row, registered with the panel\'s id, such as a\ncount. The expanded row lays it out after its title, before the space its unpin action takes, so a row without\ncontent keeps its full title width; the collapsed rail shows it over the icon\'s top trailing corner. It renders\ninside the row\'s button: its text describes that button for assistive technology, so decorative parts are\n`aria-hidden`, and it holds no interactive elements.',
registerOptions: [
{
name: 'id',
@@ -4881,7 +4881,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
],
replaceRisk: 'none',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.panellist.trailing\', () => ctx.slots.register(\n { name: \'sidebar.panellist.trailing\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:60',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:61',
},
{
key: 'sidebar.right.pane.tab',
@@ -5754,7 +5754,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
],
replaceRisk: 'shadows-shipped-ui',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.settings\', () => ctx.slots.register(\n { name: \'sidebar.settings\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:83',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:84',
},
{
key: 'sidebar.toggle.badge',
@@ -5820,7 +5820,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
],
replaceRisk: 'shadows-shipped-ui',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.workspaces\', () => ctx.slots.register(\n { name: \'sidebar.workspaces\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:71',
source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:72',
},
{
key: 'sidebar.workspaces.directoryFlow',