Skip to content

时间轴标记 - #81

Open
devin-ai-integration[bot] wants to merge 5 commits into
devin/1796487669-canvas-backgroundfrom
devin/1796488006-timeline-markers
Open

devin-ai-integration[bot] wants to merge 5 commits into
devin/1796487669-canvas-backgroundfrom
devin/1796488006-timeline-markers

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

在时间轴标尺上打标记点。叠在 #80 上。

  • 新 store useMarkerState:标记 { id, frame, label? },按帧排序;同一帧只保留一个标记(拖到另一个标记上会合并成一个)。
  • TimelineMarkers.vue 通过 Teleport 挂到 .tk-timeline-main,和标尺对齐,层级比播放头(z-index 30)高,所以播放头停在标记上时仍能点到标记。点击标记跳到该处,拖动移动,双击命名,右键删除。
  • 快捷键:M 在播放头处添加或删除标记,[ / ] 跳到上一个 / 下一个标记。
  • 移动片段时会通过 timeline-kit 的 snapProviders 吸附到标记。timeline-kit 的裁剪不读取吸附点,所以裁剪不会吸附。
  • 工程草稿新增紧凑字段 mk: [frame, label?][],没有标记时不写。
  • MCP 新增 add_marker / update_marker / remove_marker 命令,get_timeline() 返回 markers: [{ id, time, label? }]。

测试:markerState 单测、草稿读写单测、MCP e2e(添加、移动、读取、单击后双击重命名、右键删除)。

Link to Devin session: https://app.devin.ai/sessions/a882af08b80c444280600c6cdc988c2e
Open in Devin Desktop: https://app.devin.ai/desktop/session/a882af08b80c444280600c6cdc988c2e?variant=devin
Requested by: @x007xyz


🟢 Devin fixed all 4 findings · Follow Devin's work

Devin Review

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
fly-cut Ready Ready Preview Dec 5, 2026 4:51pm UTC

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration Bot and others added 5 commits December 5, 2026 16:50
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1796488006-timeline-markers branch from 803ef60 to 1a2914d Compare December 5, 2026 16:50

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 findings. Devin automatically fixed all 4 findings.

Fixed by Devin (4)
  • Playhead blocks unnamed marker renaming — Markers now render in .tk-timeline-main above the playhead (z-index 31); e2e covers click then double-click rename.
  • Double Shift-wheel scroll over markers — forwardWheel now skips Shift-wheel with dominant vertical delta, which timeline-kit's wheel-navigation already scrolls horizontally.
  • Shift-scrolling over markers moves tracks vertically — With Shift held, forwardWheel no longer applies the vertical delta.
  • Timeline scrolling stalls over markers — Marker layer forwards non-zoom wheel deltas to the timeline scroller (Ctrl/Cmd zoom still handled by timeline-kit).

View findings in Devin Review · Follow Devin's work

Devin Review

This branch was successfully deployed

1 active deployment
Preview — 1a2914dd Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant