test(contributors): add responsive multi-device columns & mobile viewport layout tests#7945
Open
soumyasekharshee265-ux wants to merge 1 commit into
Conversation
…port layout tests
Aamod007
reviewed
Jul 10, 2026
Aamod007
left a comment
Collaborator
There was a problem hiding this comment.
Hello! Thanks for writing these responsive layout tests for the \contributors\ module. Verifying that the columns adapt cleanly across mobile viewports is essential for a good user experience. I noticed the main CI pipeline is currently running. Assuming it passes, this looks fantastic!
Labels assigned:
- \level:beginner: Standard responsive layout assertions.
- \quality:clean: Clean testing structure.
- \ ype:testing: Test coverage addition.
Contributor
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #6854
Adds a new isolated Vitest suite covering Responsive Multi-device Columns & Mobile Viewport Layouts for
app/contributors/ContributorsClient.tsx. The suite simulates a 375px-wide mobile viewport (iPhone SE class) and verifies that the ContributorsClient layout degrades gracefully across mobile devices — the largest segment of profile viewers.What this PR covers (5 test cases)
grid-cols-1 md:grid-cols-3collapses into a single vertical column on mobile, with all three stat cards remaining stacked.flex-col sm:flex-rowaction row stacks buttons vertically at 375px instead of overflowing horizontally.max-w-*,min-h-*, viewport units) plusoverflow-hiddenon the root.hidden md:blockso it does not render or intercept touch events on mobile.active:scale-95tap feedback is wired on CTAs (sincehover:is unreliable on touch devices) and responsive typography (text-5xl md:text-7xl) scales headings down.Files touched
app/contributors/ContributorsClient.responsive-breakpoints.test.tsx(new)Pillar
Visual Preview
No visual/SVG changes — this PR is a test-only addition. Verification is via Vitest output: all 5 tests pass in isolation, and the full suite runs green with no regressions.
Checklist before requesting a review:
CONTRIBUTING.mdfile.npm run test -- app/contributors/ContributorsClient.responsive-breakpoints.test.tsx— all 5 tests pass).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).npm run testand all tests pass locally.npm run test:coverageand branch coverage is at or above 70%.test(contributors): add responsive multi-device columns & mobile viewport layout tests).README.mdif I added a new theme or URL parameter. (N/A — no new theme or URL parameter)