Commit Graph

11 Commits

Author SHA1 Message Date
qyh15 362e3e13fb fix: give the dock regions their own share of the sidebar
The bucket and the expanded session list now stop growing at about a
quarter of the viewport each and scroll from there, so with the tree, the
bucket and the default workspace all expanded no single region can push the
other two out of view.
2026-10-28 20:55:01 +08:00
qyh15 932e652bad fix: let the docked bucket keep its height so it can expand
A shrinkable bucket stayed one row tall however far it was expanded, which
reads as "cannot expand". The bucket no longer gives up height; it scrolls
past its cap, and the expanded default-workspace list below absorbs the
shrink instead.
2026-10-28 20:52:45 +08:00
qyh15 a119358fb3 fix: restore the dock height cap that swallowed the tree
A min-content floor outweighs max-height, so the dock grew to the full
session list: the tree was squeezed to nothing and the dock ran past the
sidebar's bottom edge, which is what read as the workspace row overlapping
the bucket. The floor is a fixed length again (84px), the bar clips its own
content, and the bucket may shrink only down to one row.
2026-10-28 20:46:45 +08:00
qyh15 49ffe318f3 fix: stop the dock from squeezing the not-classified bucket
The bucket was allowed to shrink inside the capped dock, so an expanded
default workspace squeezed it below one row and left a halved row above the
bar. The bucket now keeps its height (it scrolls on its own past its cap),
the dock never shrinks below its own rows, and the expanded session list is
the only child that gives up height.
2026-10-28 20:43:45 +08:00
qyh15 a97644d08c fix: bound the bottom dock so the expanded default workspace cannot leak
The dock was an unbounded flex item: a long default-workspace session list
grew past the sidebar, got clipped by the root, and a partial row showed
through at the edge. The dock is now a capped, opaque, self-clipping panel
with its expanded session list in its own scroll area, so the workspace row
stays put and every row is either fully shown or scrolled.
2026-10-28 20:38:25 +08:00
qyh15 5544f82ccd feat: dock the not-classified bucket above the default workspace
The 'not classified yet' bucket (???/???/???/???/???/Uncategorized)
now leaves the scrolling tree and shares the bottom dock with the pinned Host
default workspace, above a divider. It keeps its category row, children,
menus and drag behaviour; the dock caps its height and scrolls it on its own,
so a large bucket never swallows the tree. Search results never repeat the
bucket (matches are shown in the dock instead), and the rail hides the dock.
2026-10-28 20:34:09 +08:00
qyh15 fe455421c5 feat: science icons, pinned default workspace and one trailing row slot
- add 28 hand-drawn "materials & lab" glyphs (lab operations, materials,
  characterization, devices) to the group icon set and expose them as their own
  sections in the appearance picker; identical 16x16 line style, bilingual
  labels, old ids untouched
- make the appearance dialog scroll inside the host modal so the footer and the
  pin button never collide with the icon grid
- give every row kind one right-aligned trailing slot: the member count or the
  session time sits flush with the row's right edge and yields to the "+" / "..."
  buttons on hover or keyboard focus without any reflow; all rows now order them
  "+" then "..."
- move the host default workspace out of the tree into a pinned bottom bar with
  the full workspace row capabilities, deduplicated from groups, top level and
  search results
- add tools/verify-row-layout.mjs: vitest cannot start in this checkout, so the
  layout invariants are asserted over the stylesheet and the row markup
2026-10-28 20:08:18 +08:00
qyh15 2fb87d1904 release: workspace-groups-local 1.0.0 2026-10-28 18:44:51 +08:00
qyh15 a17f2ef153 fix(folders): keep a remote terminal for sessions in mirror subfolders
remote-ssh resolves a session's remote side by reading .remote-ssh.json at the session cwd and never walks up, so a session started in <mirror>/sub silently fell back to a local terminal. The folders route gained POST, which stamps the workspace's connection record into the new subfolder with remotePath adjusted to the matching remote directory; remote-ssh always excludes that file from sync. The client asks for the stamp right after adding such a folder.
2026-10-28 15:33:52 +08:00
qyh15 d166d4a872 fix(folders): remote-ssh projects only take mirror subdirectories
@zhangfengshun/dsh-remote-ssh registers a remote workspace as an ordinary workspace whose directory is a local mirror of the remote root. The folder picker would have accepted any local directory for such a project, and sessions started there would never sync. The host now reports the mirror base alongside the overlay, the dialog swaps the picker for a relative-path field for mirror-backed projects, and joinSubpath refuses absolute input and .. escapes so a typo cannot leave the mirror.
2026-10-28 15:21:04 +08:00
qyh15 0db6e06ccf feat(sidebar): multi-root workspaces (extra folders + one root per project)
A DSH workspace owns exactly one canonical directory, so the folder layer is a plugin-side overlay instead of a core change: \/workspace-groups.folders.json stores extra folders and the chosen root per workspace id (strict on write, tolerant on read). The tree gains a folder row only when a project actually has extras, and sessions are partitioned by their recorded cwd with the most specific folder winning. A folder row can start a session in its own directory through sessions.create({workspaceId, cwd}); the base folder keeps the platform gesture so repeated clicks reuse the blank session. Folders start expanded so attaching one never hides rows that were already visible.
2026-10-28 00:41:51 +08:00