Skip to content

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

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
NinadAmane:test/userecentsearches-mouse-interactivity
Jul 4, 2026
Merged

test(useRecentSearches-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5)#7394
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
NinadAmane:test/userecentsearches-mouse-interactivity

Conversation

@NinadAmane

Copy link
Copy Markdown
Contributor

Description

Fixes #7134

This PR adds an isolated mouse and touch interactivity unit test suite for the useRecentSearches hook. It integrates a mock test component to verify:

  • Simulating hover gestures (mouseenter/mouseleave) and validating hover state updates.
  • Computing coordinate positions for displaying interactive tooltip layouts.
  • User clicking, touch gestures (touchstart/touchend), and verifying click event propagation.
  • Assertion of appropriate cursor pointer style classes on active history tags.
  • Verifying that mouseleave events successfully hide temporary tooltip overlay visuals.

Pillar

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

Visual Preview

N/A (This PR only adds unit and interactivity tests)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally.
  • I have run npm run format and npm run lint locally and resolved all errors.
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have starred the repo.
  • I have made sure that I have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

✨ No significant bundle size changes detected.

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3883.44 KB 3883.44 KB 0 B
Total CSS 323.09 KB 323.09 KB 0 B

@github-actions github-actions Bot added the type:testing Adding, updating, or fixing tests label Jul 4, 2026
@Aamod007 Aamod007 added mentor:Aamod007 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 Jul 4, 2026

@Aamod007 Aamod007 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! Thanks for adding these interactivity tests for useRecentSearches. Mocking the localStorage and validating hover gestures with userEvent provides solid guarantees for our recent searches UI.

I'm assigning level:beginner, type:testing, and quality:clean.

Great test coverage, approving!

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 4, 2026
@JhaSourav07 JhaSourav07 merged commit c6417a3 into JhaSourav07:main Jul 4, 2026
8 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

🎉 Congratulations @NinadAmane! 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! 💻✨

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 level:beginner Small changes Usually isolated fixes or simple UI/text updates. mentor:Aamod007 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(useRecentSearches-mouse-interactivity): verify Interactive Tooltips, Cursor Hovers & Touch Event Propagation (Variation 5)

3 participants