Просмотр исходного кода

chore: check off Task 2 progress

xuyunhui 1 неделя назад
Родитель
Сommit
3b9ed2fbd4

+ 3 - 3
docs/superpowers/plans/2026-06-24-weapp-capsule-safearea.md

@@ -119,7 +119,7 @@ git commit -m "feat: add CapsuleSafeArea component for weapp capsule button safe
 - Consumes: `CapsuleSafeArea.vue`(默认 slot wrapper)
 - Produces: 右侧 `<slot name="right" />` 自动被 `CapsuleSafeArea` 包裹,页面无需感知胶囊安全区
 
-- [ ] **Step 1: 修改模板结构**
+- [x] **Step 1: 修改模板结构**
 
 将 `src/components/common/TopBar.vue` 的 `<template>` 部分替换为:
 
@@ -153,7 +153,7 @@ git commit -m "feat: add CapsuleSafeArea component for weapp capsule button safe
 1. 左侧内容区从 `flex items-center flex-1` 改为 `flex items-center flex-1 min-w-0`,确保 `truncate` 生效。
 2. 右侧 `<slot name="right" />` 外层包裹 `<CapsuleSafeArea>`,内部保留 `<view class="flex items-center">` 保持 flex 布局。
 
-- [ ] **Step 2: 添加组件导入**
+- [x] **Step 2: 添加组件导入**
 
 在 `<script setup>` 顶部添加导入:
 
@@ -197,7 +197,7 @@ function goBack() {
 </script>
 ```
 
-- [ ] **Step 3: Commit**
+- [x] **Step 3: Commit**
 
 ```bash
 git add src/components/common/TopBar.vue

+ 33 - 0
openspec/changes/weapp-capsule-safearea/.comet/subagent-progress.md

@@ -0,0 +1,33 @@
+# Subagent Progress
+
+- Change: weapp-capsule-safearea
+- Plan: docs/superpowers/plans/2026-06-24-weapp-capsule-safearea.md
+- Review Mode: standard
+- TDD Mode: tdd
+
+## Current Task
+
+- Task: Task 2: 改造 TopBar.vue 集成 CapsuleSafeArea
+- Plan Task Text: "Task 2: 改造 TopBar.vue 集成 CapsuleSafeArea"
+- OpenSpec Task Text: "1.2 Modify `src/components/common/TopBar.vue` to wrap the right slot with `CapsuleSafeArea`."
+- Stage: implementing
+- Review-Fix Round: 0
+
+## Completed Tasks
+
+- Task 1: 创建 CapsuleSafeArea.vue 组件(commit a5ccd6e)
+
+## Pending Tasks
+
+- Task 3: 改造调度端首页 DispatchHome.vue
+- Task 4: 改造销售端首页 SalesHome.vue
+- Task 5: 改造施工端首页 ConstructionHome.vue
+- Task 6: 改造任务列表页 TaskListView.vue
+- Task 7: 改造排班页 ScheduleView.vue
+- Task 8: 类型检查与构建验证
+
+## Notes
+
+- Task 1 已实现并提交,包含 CapsuleSafeArea.vue 和 CapsuleSafeArea.test.ts 测试文件。
+- 测试文件保留(用户已确认)。
+- 任务之间禁止暂停,连续执行。

+ 1 - 1
openspec/changes/weapp-capsule-safearea/tasks.md

@@ -1,7 +1,7 @@
 ## 1. Core component
 
 - [x] 1.1 Create `src/components/common/CapsuleSafeArea.vue` to compute and expose capsule safe width.
-- [ ] 1.2 Modify `src/components/common/TopBar.vue` to wrap the right slot with `CapsuleSafeArea`.
+- [x] 1.2 Modify `src/components/common/TopBar.vue` to wrap the right slot with `CapsuleSafeArea`.
 
 ## 2. Page header fixes