Skip to content

Use gpui-kit HoverCard for datetime cell hovers - #35

Merged
pavi2410 merged 2 commits into
mainfrom
cursor/datetime-hovercard-f4e8
Oct 3, 2026
Merged

pavi2410 merged 2 commits into
mainfrom
cursor/datetime-hovercard-f4e8

Conversation

@pavi2410

@pavi2410 pavi2410 commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Follow-up to #34. Datetime grid cells now use gpui-kit HoverCard instead of a custom Positioner card.

  • The cell is the trigger: HoverCard::new + .trigger(cell) + .anchor(Anchor::TopLeft) so the popup hangs just under the cell and the kit can flip it.
  • Same four read-only lines: Unix ms, UTC, local (IANA zone or Local), relative.
  • Datetime columns still get the card, including timestamptz / timestamp with time zone remapped to INTEGER when the cell text is a parseable instant. Real integers stay numeric.
  • Date-only, time-only, and infinity stay plain (no popup).

Popover stays click-to-open and Tooltip stays a hint; HoverCard is the hover overlay that fits this.

Draft only — please do not mark ready or merge from this PR.

Open in Web Open in Cursor 

cursoragent and others added 2 commits October 3, 2026 20:03
The cell is the trigger and Anchor::TopLeft lets the kit place the
card just under the cell and flip it. Drop the custom Positioner.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
The helper's impl IntoElement captured the content Fn's rows/cx
lifetimes and failed to compile.

Co-authored-by: Pavitra Golchha <hello@pavi2410.com>
@pavi2410
pavi2410 marked this pull request as ready for review October 3, 2026 20:22
@pavi2410
pavi2410 merged commit e7b1d83 into main Oct 3, 2026
2 checks passed
@pavi2410
pavi2410 deleted the cursor/datetime-hovercard-f4e8 branch October 3, 2026 20:23
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