Long-press-to-hub gesture as an alternative to the top-right HubPill #49

Open
opened 2026-05-07 09:52:38 +00:00 by padreug · 0 comments
Owner

The unified bottom-nav refactor adds a fixed top-right <HubPill> for "back to hub" navigation, plus a redundant link inside the profile sheet. A third (gestural) option proposed during planning was a long-press on the bottom-nav profile entry — quick to discover for power users, but invisible to first-time users.

Scope

  • Wire @vueuse/core's usePointer / useEventListener (already available — no new deps) on <ProfileSheetTrigger> to detect ~500ms long-press and route to the hub URL.
  • Decide UX: silent navigation, or first show a 200ms preview (e.g. show "Back to hub" tooltip on hover) so the gesture is somewhat self-documenting.

Why now

Filed as a follow-up to the unified bottom-nav plan; not implementing initially because the visible top-right pill is more discoverable and we want to validate that pattern first before adding hidden gestures.

Depends on

  • The unified app shell being merged.

Acceptance

  • Long-press on the profile button navigates to the hub root.
  • Doesn't conflict with normal short-tap (which opens the profile sheet).
  • Touch + mouse + keyboard accessibility — at minimum, doesn't break keyboard-only users.
The unified bottom-nav refactor adds a fixed top-right `<HubPill>` for "back to hub" navigation, plus a redundant link inside the profile sheet. A third (gestural) option proposed during planning was a long-press on the bottom-nav profile entry — quick to discover for power users, but invisible to first-time users. ## Scope - Wire `@vueuse/core`'s `usePointer` / `useEventListener` (already available — no new deps) on `<ProfileSheetTrigger>` to detect ~500ms long-press and route to the hub URL. - Decide UX: silent navigation, or first show a 200ms preview (e.g. show "Back to hub" tooltip on hover) so the gesture is somewhat self-documenting. ## Why now Filed as a follow-up to the unified bottom-nav plan; not implementing initially because the visible top-right pill is more discoverable and we want to validate that pattern first before adding hidden gestures. ## Depends on - The unified app shell being merged. ## Acceptance - [ ] Long-press on the profile button navigates to the hub root. - [ ] Doesn't conflict with normal short-tap (which opens the profile sheet). - [ ] Touch + mouse + keyboard accessibility — at minimum, doesn't break keyboard-only users.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/webapp#49
No description provided.