Commit Graph

5 Commits

Author SHA1 Message Date
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