Skip to content

Live date tooltip on bar resize drag#7

Draft
Tanops wants to merge 1 commit into
mainfrom
cursor/resize-drag-tooltip-2073
Draft

Live date tooltip on bar resize drag#7
Tanops wants to merge 1 commit into
mainfrom
cursor/resize-drag-tooltip-2073

Conversation

@Tanops

@Tanops Tanops commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a dynamic date tooltip while resizing task bars by dragging their edge handles.

Behavior

  • Left handle: shows the start date updating live as you drag
  • Right handle: shows the due date updating live as you drag
  • Tooltip follows the cursor and uses the existing #gtip styling (e.g. 12 Jun)
  • Appears immediately on handle press and hides when the drag ends
  • Hover tooltips remain suppressed during resize so they don't conflict

Implementation

  • showDragTip() / hideDragTip() reuse the existing tooltip element
  • dragTip flag prevents hover/scroll handlers from dismissing the resize tooltip mid-drag
  • Updates on every barMove frame while mode is l or r

Testing

  • npm test — all 26 tests pass
  • node --check src/app/main.js
Open in Web Open in Cursor 

Display the current start or due date in #gtip while dragging a bar's
left or right resize handle, updating in real time as the edge moves.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://Summon-RnD.github.io/task-manager/pr-preview/pr-7/

Built to branch gh-pages at 2026-07-07 14:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

2 participants