Commit Graph
2 Commits
Author SHA1 Message Date
Jinjing 4c1c8a02d6 Ensure draft comment textarea auto-focuses and preserve drafts through e
- Focus textarea on mount via requestAnimationFrame for reliable focusing
- Add onDomNodeTop callback to focus textarea when zone reaches viewport
- Preserve pending draft when editor model refreshes and re-anchor on reload
- Add editor.getModel() checks before opening and re-anchoring drafts
- Test that textarea is focused on creation and errors are surfaced
2026-09-21 22:54:20 -07:00
Jinjing 90c404d578 feat(diff-comments): draft inline notes as editor view zones
Move comment drafting from floating popover to inline view zone. The draft card now appears in the editor flow, preventing overlap with code and integrating naturally with the diff layout. Includes styled margin indicator, auto-resizing textarea, and keyboard/submission handling.
2026-09-21 22:54:20 -07:00