polish(v0.6): make "New session" a grid tile instead of a heavy header button

The big solid-amber "+ New session" button clashed with the refined segmented
control. Replace it with a dashed "+" tile that leads the session grid (same
size as the session cards, re-prepended each refresh), so it reads as a natural
"create" cell. Header is now just the title + Sessions/Projects toggle; the
redundant empty-state message is gone (the tile is the CTA).

Frontend-only (launcher.ts + style.css). Verified: web typecheck + build clean,
preview-grid tests green, in-browser the grid leads with the New-session tile
followed by the session cards (Open/Kill).
This commit is contained in:
Yaojia Wang
2026-06-30 14:25:56 +02:00
parent bf5241e87b
commit 59de784c8a
3 changed files with 47 additions and 19 deletions

View File

@@ -146,6 +146,14 @@
- **commit**: <hash 或 N/A>
======================================================= -->
### 2026-06-30 · v0.6 "New session" 改为网格卡片(去掉别扭的大按钮)
- **状态**: `[x]` DONE。web typecheck 干净 · `build:web` OK · 真浏览器验证通过。
- **需求**(用户): 头部那个大的实心琥珀 " New session" 按钮很别扭(与精致的分段 pill 不协调)。
- **改动**(纯前端 `public/launcher.ts` + style): 删头部 `.launcher-new` 按钮 + `.launcher-actions`;改为 grid 内的 **`.mg-new-card` 虚线" New session"瓦片**(与 session 卡同尺寸,始终排在网格第一格,每次 refresh 重新 prepend),hover 变琥珀。删冗余 `.mg-empty` 空态(瓦片即 CTA)。头部只剩标题 + 段控,更干净。
- **验证**: `npx tsc -p tsconfig.web.json` 干净;`build:web` OK;`preview-grid` 测试 14 全绿;真浏览器:Sessions 网格首格为虚线 New 瓦片 + 其后 session 卡(Open/Kill),无旧大按钮。
- **commit**: (本次提交)
### 2026-06-30 · v0.6 删除 manage 独立页 — Sessions 选择器即会话管理
- **状态**: `[x]` DONE。**453 测试全绿** · web typecheck 干净 · `build:web` OK(仅 main,无 manage 产物)· 真浏览器验证通过。