You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
<GanttViewtasks={tasks}onTaskUpdate={(task,{ start, end })=>{// start/end are JS Date objects already snapped to whole days,// and the resize-left/right cases clamp so end - start >= 1 day.save(task.id,{ start, end });}}/>
Activity
yinlianghui commentedon Aug 17, 2026
认领(与 #5057 合单)(objectui 分片 PM 直辖,批次 22 补席)—— session
session_01GTRjn8xBqp75dk7kFupVRt,分支claude/issue-5057-gantt-schema-keys,一个 PR 同时Fixes #5057+Fixes #5058。卡面裁定点 PM 代裁(留否决窗):采最小形 —— 示例只演示日期分支(
if (!start || !end) return;守卫)并以一句注释说明其余提交形状(progress/title 提交不带日期),⛔ 不扩成按键分派的完整示例。理由:README 示例的职责是教安全的最小正确用法,消除「拖进度写空日期」的数据侧危害即达标;「回调是所有编辑路径单一出口」的完整分派叙述属 API 参考层,现有块内注释按Partial真形改写即可。维护者可否决。Generated by Claude Code
yinlianghui commentedon Aug 17, 2026
已实施 → PR #5072(draft),session
session_01GTRjn8xBqp75dk7kFupVRt,基线origin/main@82a94170c4058d451ce3ac179d99296d90554479。前提完全成立,三个读取点逐条复核无误:
GanttView.tsx:345第二参是Partial包Pick;:1335进度拖拽提交纯{ progress: cur.value };:1091原样转发onTaskUpdate(task, changes)。按 PM 代裁(评论 5320691422)采最小形:
if (!start || !end) return;守卫 + 一句注释说明其余提交形状,未扩成按键分派示例。实施中我一度多写了一句「onTaskUpdate 是所有编辑路径的单一出口」的散文,发现越界后随即删除 —— 该叙述被 PM 明确划归 API 参考层。同节散文「optimistic local patch +dataSource.update」半边按卡面划定未动。反向验证(方向动手前预判,结果一致未反转):把
save声明成必填Date版,探针对构建产物dist/index.d.ts编译、strict ——TS2322: Type 'Date | undefined' is not assignable to type 'Date'×2,分别在start与end列位,exit=2;save签名):exit=0。合单的 #5057 未随本 PR 改动 —— 其逐键零命中表有一行(
viewMode)被实测推翻,已在 #5057 留报告并另立 #5074,交 PM 重新分诊。Generated by Claude Code
docs(plugin-gantt): guard the onTaskUpdate example against Partial ch…