Skip to content

Pointer-type-aware panel header text - #375

Open
jzgom067 wants to merge 5 commits into
v0.5.0from
coarse-pointer-hook
Open

Pointer-type-aware panel header text#375
jzgom067 wants to merge 5 commits into
v0.5.0from
coarse-pointer-hook

Conversation

@jzgom067

Copy link
Copy Markdown
Member

This PR makes some minor changes to the results panel header text, making it more device-aware.

Panel Text Updates

The text is now aware of the type of device used:

  • "Hover grid for availability"
    • For devices with a mouse, remains the same
    • For touch devices, it is now "Tap grid for availability"
  • "Select to remove" (when removing attendees)
    • For devices with a mouse, it is now "Click to remove"
    • For touch devices, it is now "Tap to remove"

New usePointerType Hook

The pointer type was checked in the InfoPoint to determine whether the tooltip would show, versus a drawer on tap. This logic was moved to a separate hook so it can be reused.

@jzgom067 jzgom067 added this to the v0.5.0 milestone Jul 13, 2026
@jzgom067 jzgom067 added cleanup Involves refactoring or small changes frontend Related to frontend stuff labels Jul 13, 2026
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Added a shared usePointerType hook that detects coarse or fine pointers and responds to media query changes. InfoPoint now uses it to control drawer opening on clicks, while PanelHeader uses it to display pointer-specific attendee interaction guidance.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f84214a5-2d2c-44e6-8c41-786babd071af

📥 Commits

Reviewing files that changed from the base of the PR and between 15c49ad and dc16119.

📒 Files selected for processing (3)
  • frontend/src/components/info-point.tsx
  • frontend/src/features/event/results/attendees/panel-header.tsx
  • frontend/src/lib/hooks/use-pointer-type.ts

Comment thread frontend/src/lib/hooks/use-pointer-type.ts
Comment thread frontend/src/lib/hooks/use-pointer-type.ts
@jzgom067
jzgom067 requested a review from mirmirmirr July 13, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Involves refactoring or small changes frontend Related to frontend stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant