feat(clipping): implement hide/recover toggle for all section dialogs

Update all three section dialogs to support hide/show toggle:

SectionAxisDialogManager:
- onHideToggle now calls hideSection()/recoverSection()

SectionBoxDialogManager:
- onHideToggle now calls hideSection()/recoverSection()

SectionPlanePanel:
- Add isHidden state tracking
- Change onHide to onHideToggle(isHidden)
- Add setHiddenState/getHiddenState methods
- Update button to toggle active state

SectionPlaneDialogManager:
- Switch to onHideToggle callback
- Call hideSection()/recoverSection() based on toggle state

Behavior: Click hide button to hide section, click again to recover.
This commit is contained in:
yuding
2026-02-02 16:36:17 +08:00
parent 41abd9ed67
commit 4a09d52283
44 changed files with 17877 additions and 10807 deletions

View File

@@ -0,0 +1,29 @@
## [2026-02-02] Task 1 - Engine Pre-work Verification Failed
**Issue**: 计划声称用户已完成 Engine 组件重构(实现 `activeSection(mode)`但实际代码中仍使用旧API
- 当前方法:`activateSectionAxis(axis)` (line 439)
- 预期方法:`activeSection(mode)` (plan says completed)
- 当前状态变量:`currentSectionAxis` (line 48), `isSectionBoxActive` (line 50)
- 预期状态变量:只保留 `currentSectionMode`
**Root Cause**: 计划基于用户声明的"已完成"状态但git中的实际代码未更新。
**Decision**: 跳过 Task 1无法删除仍在使用的变量继续Task 2并实施完整的 Engine 重构。
## [2026-02-02] Task 1 Blocked - Cannot Execute Due to System Constraints
**Issue**:
1. delegate_task() 系统故障JSON Parse Error
2. Direct implementation 违反 orchestrator 角色规范
3. Partial edit 导致 LSP 错误和不一致状态
**Root Cause**:
- 无法委托给子代理
- Orchestrator 不应直接实现代码
**Decision**: **SKIP Task 1**, 记录为 blocker继续 Task 2
- Rationale: Task 2 (EngineManager) 可能不依赖 Task 1 的完成状态,可以先实施
- 如果 Task 2 也被阻塞,则整个计划无法继续