Skip to content

fix: resolve pointer event blocking in LoadMoreFooter#3883

Merged
chronark merged 2 commits intomainfrom
eng-1988-ui-table-footer-blocks-click-interaction
Sep 1, 2025
Merged

fix: resolve pointer event blocking in LoadMoreFooter#3883
chronark merged 2 commits intomainfrom
eng-1988-ui-table-footer-blocks-click-interaction

Conversation

@perkinsjr
Copy link
Member

@perkinsjr perkinsjr commented Aug 29, 2025

What does this PR do?

The LoadMoreFooter component was blocking user interactions with table rows due to its full-width fixed positioning with z-index overlay.

Changes:

  • Add pointer-events-none to outer container to allow clicks through transparent areas
  • Add pointer-events-auto to inner content div to maintain footer interactivity
  • Remove redundant inline pointerEvents style

This allows users to interact with table elements (three-dot menus, key IDs)
that appear behind the footer while preserving all footer functionality.

Fixes #3786

CleanShot.2025-08-29.at.08.45.21.mp4

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Make sure you have at least 100 or so keys
  • Got to apis and with the load more try and interact with keys behind
  • Make sure Load More button works.

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Summary by CodeRabbit

  • Bug Fixes

    • Prevents accidental interactions with content beneath the loading indicator; underlying items are non-interactable while loading and restore normal interactions afterward.
    • Accessibility improved by marking hidden loading content appropriately.
  • Style

    • Switched loading indicator interaction handling to CSS-based pointer-event control for more consistent, smoother behavior.

The LoadMoreFooter component was blocking user interactions with table
rows due to its full-width fixed positioning with z-index overlay.

Changes:
- Add pointer-events-none to outer container to allow clicks through
transparent areas
- Add pointer-events-auto to inner content div to maintain footer
interactivity
- Remove redundant inline pointerEvents style

This allows users to interact with table elements (three-dot menus, key
IDs)
that appear behind the footer while preserving all footer functionality.
@linear
Copy link

linear bot commented Aug 29, 2025

@changeset-bot
Copy link

changeset-bot bot commented Aug 29, 2025

⚠️ No Changeset found

Latest commit: 97c65c2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dashboard Ready Ready Preview Comment Aug 29, 2025 1:01pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
engineering Ignored Ignored Preview Aug 29, 2025 1:01pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 29, 2025

📝 Walkthrough

Walkthrough

Replaces inline pointerEvents gating with CSS classes: outer wrapper uses pointer-events-none and the inner content toggles pointer-events-auto when visible; adds aria-hidden when hidden. No API/signature changes; rendering and animations unchanged.

Changes

Cohort / File(s) Summary
Pointer-events handling update
apps/dashboard/components/virtual-table/components/loading-indicator.tsx
Replaced inline style.pointerEvents logic with Tailwind classes: outer container pointer-events-none, inner content toggles pointer-events-auto / pointer-events-none; added aria-hidden when hidden. No public API changes.

Sequence Diagram(s)

sequenceDiagram
    actor User
    participant Table as Virtual Table
    participant Footer as LoadingIndicator

    User->>Table: Click last row action
    Table->>Footer: Footer rendered over table area
    Note right of Footer #f0f9ff: Outer wrapper = pointer-events-none\nInner content = pointer-events-auto when visible
    User->>Footer: Click passes through non-interactive overlay
    Footer-->>Table: No interception for clicks on non-interactive area
    Table-->>User: Row/action receives click
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
Fix footer overlay blocking clicks on last row and actions (#3786)

Possibly related PRs

Suggested reviewers

  • mcstepp
  • chronark
  • ogzhanolguncu
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch eng-1988-ui-table-footer-blocks-click-interaction

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbit in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbit in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbit gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbit read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbit help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbit ignore or @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbit summary or @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbit or @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the Bug Something isn't working label Aug 29, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 29, 2025

Thank you for following the naming conventions for pull request titles! 🙏

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5cde58d and 80f00c2.

📒 Files selected for processing (1)
  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{js,jsx,ts,tsx}: Use Biome for formatting and linting in TypeScript/JavaScript projects
Prefer named exports over default exports in TypeScript/JavaScript, except for Next.js pages

Files:

  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Follow strict TypeScript configuration
Use Zod for runtime validation in TypeScript projects

Files:

  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Test Go API Local / Test
  • GitHub Check: Build / Build
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
apps/dashboard/components/virtual-table/components/loading-indicator.tsx (1)

86-86: Good fix: parent passthrough via pointer-events-none

This unblocks interactions behind the footer while keeping the inner content eligible to handle events. Looks correct for the reported issue.

Improve the a11y by indicating when the it is hidden or not and don't
hijack some other parts.
@vercel vercel bot temporarily deployed to Preview – dashboard August 29, 2025 13:01 Inactive
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
apps/dashboard/components/virtual-table/components/loading-indicator.tsx (1)

92-97: Inner content gating + aria-hidden implemented correctly

Conditional pointer-events and aria-hidden on the card make it interactive only when visible and inert otherwise. This matches the earlier suggestion.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 80f00c2 and 97c65c2.

📒 Files selected for processing (1)
  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{js,jsx,ts,tsx}: Use Biome for formatting and linting in TypeScript/JavaScript projects
Prefer named exports over default exports in TypeScript/JavaScript, except for Next.js pages

Files:

  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Follow strict TypeScript configuration
Use Zod for runtime validation in TypeScript projects

Files:

  • apps/dashboard/components/virtual-table/components/loading-indicator.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Test Go API Local / Test
  • GitHub Check: Build / Build
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
apps/dashboard/components/virtual-table/components/loading-indicator.tsx (2)

86-90: Fix validated: wrapper is click-through

Adding pointer-events-none on the fixed wrapper correctly unblocks interactions with underlying rows while allowing the child to opt-in. Looks good.


92-97: All LoadMoreFooter instances include an onLoadMore prop Verified via ripgrep that no usages omit onLoadMore.

return (
<div
className="fixed bottom-0 left-0 right-0 w-full items-center justify-center flex z-10 transition-all duration-300 ease-out"
className="fixed bottom-0 left-0 right-0 w-full items-center justify-center flex z-10 transition-all duration-300 ease-out pointer-events-none"
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Nit: w-full is redundant with left-0 right-0

left-0 right-0 on a fixed element already spans full width.

-      className="fixed bottom-0 left-0 right-0 w-full items-center justify-center flex z-10 transition-all duration-300 ease-out pointer-events-none"
+      className="fixed bottom-0 left-0 right-0 items-center justify-center flex z-10 transition-all duration-300 ease-out pointer-events-none"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
className="fixed bottom-0 left-0 right-0 w-full items-center justify-center flex z-10 transition-all duration-300 ease-out pointer-events-none"
className="fixed bottom-0 left-0 right-0 items-center justify-center flex z-10 transition-all duration-300 ease-out pointer-events-none"
🤖 Prompt for AI Agents
In apps/dashboard/components/virtual-table/components/loading-indicator.tsx
around line 86, the class list on the fixed element includes both left-0 right-0
and w-full; remove the redundant w-full class so the element relies on left-0
and right-0 to span full width and keep the remaining utility classes unchanged.

Comment on lines +92 to +97
<div
className={`w-[740px] border bg-gray-1 dark:bg-black border-gray-6 min-h-[60px] flex items-center justify-center rounded-[10px] drop-shadow-lg shadow-sm mb-5 transition-all duration-200 hover:shadow-lg ${
shouldShow ? "pointer-events-auto" : "pointer-events-none"
}`}
aria-hidden={!shouldShow}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Also prevent keyboard focus when hidden (use inert)

Hidden state can still be tabbed to. Add inert to fully disable focus/interaction when shouldShow is false.

       <div
         className={`w-[740px] border bg-gray-1 dark:bg-black border-gray-6 min-h-[60px] flex items-center justify-center rounded-[10px] drop-shadow-lg shadow-sm mb-5 transition-all duration-200 hover:shadow-lg ${
           shouldShow ? "pointer-events-auto" : "pointer-events-none"
         }`}
         aria-hidden={!shouldShow}
+        inert={!shouldShow}
       >

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In apps/dashboard/components/virtual-table/components/loading-indicator.tsx
around lines 92-97, the container is visually hidden but still reachable by
keyboard; add the inert attribute when shouldShow is false to fully disable
focus/interaction (e.g., inert={shouldShow ? undefined : ''} or inert={
!shouldShow }), keep aria-hidden in sync, and if TypeScript/React flags the
inert prop, either cast the prop or set a fallback by also applying
tabIndex={shouldShow ? 0 : -1} and/or role adjustments so the element is truly
inert when hidden.

Copy link
Contributor

@ogzhanolguncu ogzhanolguncu left a comment

Choose a reason for hiding this comment

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

LGTM

@chronark chronark merged commit 843457e into main Sep 1, 2025
18 checks passed
@chronark chronark deleted the eng-1988-ui-table-footer-blocks-click-interaction branch September 1, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Table footer blocks click interaction

3 participants