mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Sidebar session list grows the figma 239-10458 feature set and the
workspace/session browsing region moves wholesale into ui-workspace:
- Group-by menu (WorkSpace / In one list): flat mode lists every session
top-level, strictly newest-first; the choice persists across reloads.
- Session rows get a 500ms hover detail card (title / relative time /
status line) and a ... menu (Rename / Fork session / Delete session,
visual-only for now); workspace headers get ... with Rename (wired) and
Delete workspace (visual-only).
- workspace.rename RPC: trims, rejects duplicate titles on the create
chain (workspace-name-conflict), no-op on same title; modal dialog with
client-side duplicate pre-check.
- workspace.insertSessionBefore RPC (DOM-insertBefore semantics, omitted
anchor appends): HTML5 drag reorder of root sessions inside a workspace
group; order truth stays host-side, the view refreshes from the
response/changed frame.
- Activity pinning removed: the session/event touchSession chain is gone;
workspace accounts are manually owned (new sessions prepend, explicit
reordering only). Contracts and tests updated, api catalog regenerated.
- ui-sidebar reduced to the column shell (brand, fold state machine, New
Session, Settings) exposing one sidebar.workspaces hole with a two-fact
owner share {wide, expandSidebar}; ui-workspace owns the whole region
(header, search, grouped/flat lists, dialogs, drag) plus the picker via
a shared WorkspaceCreateFlow. The old sidebar.workspace picker slot and
its deferral indirection are gone.
- ui-primitives: Menu gains label entries, danger rows, and
closeOnPointerLeave; new HoverCard (portaled, open-delay, disabled
guard). Hover card and row menu never coexist.
163 lines
3.5 KiB
CSS
163 lines
3.5 KiB
CSS
.root {
|
|
position: relative;
|
|
display: inline-flex;
|
|
}
|
|
|
|
/* Dropdown card (figma MenuDropdown 122:9481 / 419:16920): menu surface,
|
|
* r12, inverted hairline border, shadow-lv3, 4px inset padding. */
|
|
.list,
|
|
.submenu {
|
|
/* min-widths below are the design's outer card widths — include the pad. */
|
|
box-sizing: border-box;
|
|
padding: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
border: 1px solid var(--dsw-alias-border-inverted);
|
|
border-radius: 12px;
|
|
background: var(--dsw-specific-menu);
|
|
box-shadow: var(--dsw-shadow-lv3);
|
|
}
|
|
|
|
/* Primary card is 218 wide in the design across both hosts. */
|
|
.list {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
z-index: 100;
|
|
min-width: 218px;
|
|
}
|
|
|
|
/* Portal mode: fixed in the viewport, coordinates supplied inline from the
|
|
* anchor rect (side/align resolved in JS, the in-place offset rules above
|
|
* don't apply). */
|
|
.portal {
|
|
position: fixed;
|
|
top: auto;
|
|
left: auto;
|
|
}
|
|
|
|
/* Open above the anchor (empty-state workspace chip: figma 122:9481). */
|
|
.sideTop {
|
|
top: auto;
|
|
bottom: calc(100% + 4px);
|
|
}
|
|
|
|
.alignEnd {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
|
|
.itemWrap {
|
|
position: relative;
|
|
}
|
|
|
|
/* Menu cell (figma .Menu_cell): min-h 40, r10, pad 10/8, 14/22 primary,
|
|
* gap 8 between leading icon / label / trailing check. */
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 8px 10px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
color: var(--dsw-alias-label-primary);
|
|
text-align: left;
|
|
}
|
|
|
|
.item:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.item:disabled {
|
|
color: var(--dsw-alias-label-dimmed);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.itemIcon {
|
|
display: inline-flex;
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.itemLabel {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.check {
|
|
flex: none;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* Selected cell keeps the plain fill (marker is the trailing check); the
|
|
* class remains as a hook for owner-side emphasis. */
|
|
.selected {
|
|
background: transparent;
|
|
}
|
|
|
|
/* Destructive row: error text/icon, danger hover fill. */
|
|
.danger {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.danger .itemIcon {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.danger:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover-danger);
|
|
}
|
|
|
|
/* Heading row: non-interactive small grey text, padding aligned with items. */
|
|
.label {
|
|
padding: 8px 10px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* Separator cell (figma 122:9481): py 4 / px 2 around the hairline. */
|
|
.separator {
|
|
height: 1px;
|
|
margin: 4px 2px;
|
|
background: var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
/* Nested card to the right of the parent row (figma 419:16920).
|
|
* Bottom-aligned with the parent menu card (grows upward): itemWrap sits in
|
|
* .list's 4px pad, so bottom: -4px matches the list's outer bottom edge.
|
|
* Horizontal: list pad (4px) + 6px card gap = 10px past itemWrap — plain
|
|
* `100% + 6px` collapses to ~2px between outer card edges.
|
|
* ::before bridges the full gap so the pointer can cross without mouseLeave. */
|
|
.submenu {
|
|
position: absolute;
|
|
top: auto;
|
|
bottom: -4px;
|
|
left: calc(100% + 10px);
|
|
z-index: 101;
|
|
min-width: 163px;
|
|
}
|
|
|
|
.submenu::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: -10px;
|
|
width: 10px;
|
|
}
|