- Rewrite hard constraint #1: apply must read Committed OpenSpec files as the execution source of truth - Promote sub-skill invocation to hard constraint #6; remove fallbacks.md and all degradation paths - Add file existence verification at commit and archive exit gates - Require grill question pool, evidence-driven conclusions, and user-interview confirmations to be written to decisions.md - Record v4.0 validation retrospective in workflow.md: propose overreach, sub-skill pseudo-calling, spec omitting user behavior - Archive knowledge-index-sort OpenSpec and devflow entries from prior run
1.0 KiB
1.0 KiB
knowledge-index-sort Tasks
需求追踪
| 需求 | 状态 | 备注 |
|---|---|---|
| 排序 UI 控件 | 已完成 | sort-select 下拉框 |
| 排序逻辑实现 | 已完成 | applyFilters() 中排序段 |
| 事件绑定 | 已完成 | bindSortSelect() |
| 清空筛选重置 | 已完成 | clearFilters() 重置 sort-select |
| 脚本同步 | 已完成 | update-knowledge-index.sh |
| 浏览器验证 | 已完成 | 用户确认通过 |
实现任务
- 在 filter-row 中添加 sort-select HTML(4 个 option)
- 在 applyFilters() 中添加排序逻辑(过滤后、渲染前)
- 实现 4 种排序模式(date-desc/date-asc/tags-desc/tags-asc)
- 添加 bindSortSelect() 函数绑定 change 事件
- 在 init 中调用 bindSortSelect()
- 在 clearFilters() 中重置 sort-select 为 date-desc
- 同步修改 scripts/update-knowledge-index.sh(HTML 模板 + JS 代码)
- 浏览器验证:测试 4 种排序模式
- 浏览器验证:测试排序与过滤组合
- 浏览器验证:测试清空筛选重置排序