Skip to content

test(ContributorsLoading-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5) #2847#3638

Merged
JhaSourav07 merged 5 commits into
JhaSourav07:mainfrom
alishaalmeida10:fix-contributors-loading-interactivity
Jun 12, 2026
Merged

test(ContributorsLoading-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5) #2847#3638
JhaSourav07 merged 5 commits into
JhaSourav07:mainfrom
alishaalmeida10:fix-contributors-loading-interactivity

Conversation

@alishaalmeida10

Copy link
Copy Markdown
Contributor

Description

Fixes #2847

This PR adds a dedicated interaction test suite containing 5 targeted cases for the ContributorsLoading layout module. It ensures seamless coordinate mapping, responsive tooltip rendering, and safe touch events.

What was done:

  • Designed 5 isolated integration assertions inside app/contributors/loading.mouse-interactivity.test.tsx using Vitest.
  • Simulates precise mouseenter operations to trigger local layout tooltip tracking arrays.
  • Implements custom mousemove triggers to verify reactive cursor client state coordinate recalculations (clientX/clientY).
  • Validates that pointer state visibility helper classes properly append during cursor intersections.
  • Assesses touch mechanics safely across element containment boundaries via touchStart and touchEnd.
  • Ensures overlay assets correctly tear down during active mouseleave events.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕒 Pillar 3 — Timezone Logic Optimization
  • 🚀 Other (Bug fix, refactoring, docs, testing)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings/linter errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Visual Preview

All 5 required interaction states, cursor alignments, and coordinate boundaries compile and pass effortlessly within local environments.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@alishaalmeida10 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aamod-Dev Aamod-Dev added gssoc26 GSSoC 2026 mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. level:beginner Small changes Usually isolated fixes or simple UI/text updates. type:testing Adding, updating, or fixing tests testing labels Jun 4, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi there! 👋 Thanks for working on these interactivity tests! I noticed a small issue: the tests in ThemeSwitch.mouse-interactivity.test.tsx and loading.mouse-interactivity.test.tsx are currently rendering and testing mock components (MockThemeSwitch and MockContributorsLoading) defined right inside the test files, rather than the actual ThemeSwitch and ContributorsLoading components from the codebase.

To ensure the tests are verifying the real application behavior, could you update the test files to import and test the actual components instead of the mocks? Let me know if you need any help adjusting the tests for the real components!

@Aamod-Dev Aamod-Dev added the status:blocked This PR is blocked due to a failing CI check. label Jun 4, 2026
@alishaalmeida10

Copy link
Copy Markdown
Contributor Author

Hi @Aamod007, thanks for the feedback! That makes total sense, testing the actual components definitely makes more sense than using mocks. I'm swapping them out right now for both files and I'll update the PRs as soon as they're ready. Will let you know if I get stuck anywhere. Thanks!

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM on the code side! However, the CI checks are failing. Please fix the CI issues so this can be merged.

@Aamod-Dev Aamod-Dev removed the gssoc26 label Jun 4, 2026
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jun 4, 2026
@alishaalmeida10

Copy link
Copy Markdown
Contributor Author

Just updated this, used real component instead of a fake mock. Also the CI pipeline passed everything now.

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hey there! 👋 It looks like you've included tests for both heme-switch and ContributorsLoading in this PR. Could you please split the heme-switch tests into a separate pull request so we can keep each PR focused on a single component? Thanks!

@alishaalmeida10 alishaalmeida10 force-pushed the fix-contributors-loading-interactivity branch from c843f65 to 968eea4 Compare June 5, 2026 08:07
@alishaalmeida10 alishaalmeida10 force-pushed the fix-contributors-loading-interactivity branch from 968eea4 to c329f27 Compare June 5, 2026 08:13
@alishaalmeida10

alishaalmeida10 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Hi, I updated the branch against main and completely removed the extra theme-switch test file. It only focuses on the ContributorsLoading component tests now.

@Aamod-Dev Aamod-Dev added level:intermediate Moderate complexity tasks quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. and removed level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. labels Jun 6, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

I have re-analyzed this PR and must request changes.

Required Changes

Issue 1

  • Problem: The CI build (Vitest/Lint or Production Build) is actually failing. Please check the GitHub Actions logs.
  • Impact: Code quality and CI.
  • Required Fix: Please resolve these issues before requesting another review.

@alishaalmeida10

Copy link
Copy Markdown
Contributor Author

Hi @Aamod007
I’ve updated the branch against main, and both required core CI checks are now passing completely green with zero conflicts.
The only red mark remaining seems to be the Vercel deployment, which is just awaiting maintainer authorization. If there is a specific code failure or a different log you are referring to, could you please let me know? I'd be happy to address it.
Thank you for your guidance!

@Aamod-Dev Aamod-Dev added level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. and removed level:intermediate Moderate complexity tasks quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. testing labels Jun 7, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

The PR follows a known pattern of AI-generated superficial test files or inappropriate modifications that provide little to no meaningful runtime coverage and clutter the repository.

Required Changes

Issue 1

  • Problem: The test file creates or simulates interactions on dummy structures, or simply adds redundant tests.
  • Impact: It provides 0 real test coverage.
  • Required Fix: Ensure the PR tests actual new runtime behavior and does not just add redundant tests.

@Aamod-Dev Aamod-Dev added level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. and removed level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. labels Jun 7, 2026
@JhaSourav07 JhaSourav07 added the needs-rebase This PR has merge conflicts and needs a rebase. label Jun 8, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Appreciate you taking the time to submit this PR. I went through the implementation and the approach looks solid.

I'm happy to approve this. Great job!

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contribution. I went through the changes and the overall approach looks good, but there are a few issues that should be addressed before this can be merged. Most of the concerns are related to correctness and maintainability.

  • There are merge conflicts with the base branch. Please resolve them to ensure existing functionality isn't broken.

Once these issues are addressed, I'll be happy to take another look. Thanks again for the contribution.

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contribution. It looks like there are merge conflicts with the base branch. Please rebase and resolve the conflicts so we can proceed with testing and merging. Thanks!

@alishaalmeida10

Copy link
Copy Markdown
Contributor Author

Thanks for the approval! I see the new conflicts from the recent updates to main. Working on resolving them right now so we can get this merged.

@alishaalmeida10

Copy link
Copy Markdown
Contributor Author

Hi, I've resolved the merge conflicts. All CI pipeline tests are now passing completely green and are ready for your review!

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for resolving the merge conflicts! Approving.

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jun 12, 2026
@JhaSourav07 JhaSourav07 merged commit 985ac18 into JhaSourav07:main Jun 12, 2026
5 of 6 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jun 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @alishaalmeida10! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

@JhaSourav07 JhaSourav07 added gssoc:approved PR has been reviewed and accepted for valid contribution points and removed gssoc:approved PR has been reviewed and accepted for valid contribution points labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points gssoc:needs-rebase GSSoC 2026 level:beginner Small changes Usually isolated fixes or simple UI/text updates. mentor:Aamod007 needs-rebase This PR has merge conflicts and needs a rebase. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:testing Adding, updating, or fixing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(ContributorsLoading-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5)

3 participants