frontend: add connect page, collection selection and fixed workspace context

补齐 FE-003:实现连接表单、连接中/错误态、配置回填,连接成功后加载并确认 Collection,
自动确保默认 Workspace,进入工作台后由 home.tsx 持有固定上下文(serverUri/collection/workspace)。
新增 input/label 基础组件与 connect-view/workspace-shell 业务组件。

pnpm typecheck 通过。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-09 20:52:18 +08:00
co-authored by Cursor
parent ca4089a885
commit 097cc510a7
9 changed files with 465 additions and 32 deletions
+9
View File
@@ -0,0 +1,9 @@
import type { MappingInfo } from "~/lib/api"
// 工作台进入后固定的共享上下文,serverUri / collection / workspace 不再在台内切换。
export interface WorkspaceSession {
serverUri: string
collection: string
workspace: string
mappings: MappingInfo[]
}