Commit Graph
9 Commits
Author SHA1 Message Date
LegGasai 5b10652f55 feat(session-panel): move the transcript with the panel and offer no drag for a lone section
A press that shows or hides the panel plays one motion: the panel slides
across its 8px edge inset and fades, and the transcript and the composer
move into or out of its room over the same 160ms and curve. A change of
room (a switch to another Session, a reload, a resized window) still shows
or hides the panel at once, and the entrance no longer replays on every
mount. The slide stays inside the scrollport, so the Conversation body
gains no sideways scroll range whose bar would lift the composer.

While only one section besides Environment shows, its title row offers no
drag: no grab cursor, no handle, and a drag that starts there is refused.

The e2e helper that shows the panel no longer counts a panel that is
playing its exit as shown.
2026-11-18 13:17:24 +08:00
LegGasai ccbca7a7d2 feat(session-panel): dock by moving the transcript aside, without a pin
The panel no longer has a pin. While the docking preference is on and the
end gutter is narrower than the 348px that docks the panel, the Conversation
body moves the transcript column and the composer into the start gutter, at
their own widths, and the panel docks in the room that leaves. Where the
start gutter cannot give it, the transcript stays centered, the panel hides,
and the toggle opens it over the transcript as before. The column never
narrows for the panel.

The panel's one dock probe has room while the gutter holds the panel or the
body's largest end reserve covers it, so the plugin's state, toggle, and
overlay rules are the gutter-only panel's. The width handles follow the
moved column, and a drag beside the docked panel moves only the column's
start edge. The drag mark of a section title passes pointer events through.

The Web e2e lane's standard page starts with docking off, since the panel
now docks at its 1680px width, and the specs that read the conversation
alone hide a docked panel first.
2026-11-17 17:56:58 +08:00
LegGasai 1edd4e31d9 fix(session-panel): keep Environment first and reorder sections by drag only
The Environment section always shows first: its title row is no drag source
and has no handle, a section dropped on it lands after it, and a stored
order that names it elsewhere is ignored. The arrow keys no longer move a
section; the drag handle is a mark on the title row instead of a button, so
recorded accessibility trees no longer list one per section.
2026-11-17 16:08:20 +08:00
LegGasai 125546c46b fix(session-panel): show the section drag handle in place of the trailing count
Over a hovered title row the handle lay on top of the end of the trailing
count, which faded under it. The row's end now shows one of the two: the
count at rest, and the handle in its place while the pointer is over the
title row, while the handle has keyboard focus, and during a drag. The
hidden count keeps its box, so the title does not move.
2026-11-17 14:36:12 +08:00
LegGasai c88d0c45a6 fix(session-panel): lay the section drag handle over the title row's end
The handle kept a 16px column in every title row, which shortened the room
for the title's trailing count whether or not the handle showed. It now
lies over the row's end, takes no room, and shows only while the pointer is
over the title row, while it has keyboard focus, and during a drag; the
trailing content stays in place and fades out under it.
2026-11-17 14:20:02 +08:00
LegGasai e541ed3b5c feat(session-panel): let the reader drag sections into another order
Each section's title row is a native drag source with a grab cursor, and a
drag handle shows at its end, in the column of the rows' More buttons, while
the row is hovered or the handle has keyboard focus. Dragging a title row
dims its section and draws a line on the edge of the section under the
pointer where it would land; the arrow keys on the handle move a section
past its nearest shown neighbor and keep focus on the handle.

The order is one preference for every Session, persisted under
dsh.sessionPanel.sectionOrder as the ids of every live section. A section
registered after the reader arranged the others follows the section it
follows in the registered order.

The sections are positioned for the landing line, so the pin is positioned
above them to keep taking presses. Recorded accessibility trees gain the
handle's button in each section title row.
2026-11-17 14:12:57 +08:00
LegGasai 506532c6d9 feat(session-panel): pin the panel so the transcript makes room for it
The panel gets a pin in its top end corner. While the pin and the docking
preference are on and the end gutter is narrower than the 348px that docks
the panel, the panel asks the Conversation body to keep that gutter free and
docks in it; neither Escape nor an outside press hides it. Below an 860px
Chat frame the body makes no room and the pinned panel is the overlay it was.

The plugin learns two facts from 1px probes that do not depend on the pin:
the gutter holds the panel as the transcript stands, and the transcript can
make that room. It offers the pin only where a press has an effect, and
unpinning a panel that only the pin kept beside the transcript leaves it
open as the overlay. The pin persists under dsh.sessionPanel.held; the
docking preference keeps its key and is named docks in the shared state.
2026-11-17 12:56:35 +08:00
LegGasai 46cf27ce35 fix(session-panel): keep a row highlighted only for its own open menu
A panel row stayed highlighted while anything inside it carried
aria-expanded="true". The rule means a row's open menu, so it now names
the menu part: a body button that discloses something else highlights its
row on hover alone.

The layout e2e opens the working folder row's menu in the real app and
checks that the row keeps its highlight and its More button after the
pointer leaves for the menu.
2026-11-15 16:21:55 +08:00
LegGasai eba69b9fd6 refactor(session-panel): share the row look through CSS marks instead of a row Factory
A row Factory took each contributor's icon, text, trailing control, and
menu as React nodes in props, which the client rules forbid. Each
contributor now writes its own row markup and marks the parts with
`data-session-panel-row` and `data-row-part`; the panel's stylesheet lays
them out, so rows from every package keep one geometry and a contributor
can restyle a part with its own class.

A menu part that renders nothing, such as the shared menu button while its
target has no menu entries, takes no room and no longer makes the row
highlight.
2026-11-13 19:51:46 +08:00