Hover-to-Preview Pull Requests Tab on Issue Page #3100
Zak Siddiqui opened 3 hours ago

On an issue page in OneDev, there is a "Pull Requests" tab. Currently, a user must click the tab to navigate to the pull request list, then click again to open a specific PR — that's 2 clicks. This feature reduces that to 1 click by showing a hover preview (for mouse users) or a tap-to-activate preview (for touch users).

Proposed Behavior:

  1. When a user hovers (mouse) or taps (touch) the "Pull Requests" tab on an issue page, after a 300ms delay, a floating element appears immediately below the tab.
  2. The floating element displays everything that is currently shown on the Pull Requests tab page (PR titles, statuses, assignees, branches, etc.).
  3. Clicking the "Pull Requests" tab (instead of just hovering/tapping) displays the hover list — it does NOT navigate to the Pull Requests tab page. This avoids the conflict where a user who triggers the hover accidentally navigates away.
  4. Once the floating list appears, the user can move the mouse to the desired pull request entry and click it to open that PR directly. That's 1 click total.
  5. If the user moves the mouse away from the tab or the floating element, the floating element disappears after a short delay (e.g., 200ms).
  6. This works for all users (mouse and touch). On touch devices, tapping the tab opens the floating list; the user then taps a specific PR to open it. That's 1 tap instead of 2.

What the floating element should display:

Everything that is currently shown on the Pull Requests tab on an issue page — full content, not a truncated preview.

Timing:

  • Hover/tap to trigger: 300ms delay before showing the floating element
  • Move away: 200ms delay before hiding the floating element

Important notes:

  • Do not assume the user's level of knowledge — provide clear documentation comments in code.
  • This feature is for all users — both mouse and touch. On touch, tap = activate the hover list the same way hover does on desktop.
1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-3100
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover