feat: mobile optimization, lobby share button, and mobile e2e tests#23
Open
feat: mobile optimization, lobby share button, and mobile e2e tests#23
Conversation
- GameBoard: 2-column responsive grid on mobile (xs=6/sm=3), shorter cards (56px mobile / 80px desktop), touch-action manipulation, smaller font, full-width submit button on mobile, wrapping keyword/legend areas - HackerPrompt: stack keyword input, card-count select, and send button vertically on mobile (xs=column / sm=row); disable autocorrect on keyword input - GameContent: responsive padding (2 mobile / 4 desktop) and heading font size - GameStatusIndicator: teams stack full-width (xs=12/sm=5) on mobile with inline "Active" chip; hide arrow indicator below sm breakpoint - LobbyDetails: new "Share Lobby" button using Web Share API on mobile, clipboard copy fallback on desktop with Snackbar confirmation; uses data-testid="share-lobby-button" for test targeting - playwright.config.js: add mobile-chrome (Pixel 5) and mobile-safari (iPhone 12) Playwright projects scoped to mobile-game.spec.js - e2e/mobile-game.spec.js: three new mobile test suites — (1) share button renders and copies to clipboard, (2) board renders in 2-column layout on mobile viewport, (3) full 4-player game completed with tap() interactions on mobile https://claude.ai/code/session_01LXbcxBMq954kuGguFgnUzX
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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.
cards (56px mobile / 80px desktop), touch-action manipulation, smaller
font, full-width submit button on mobile, wrapping keyword/legend areas
vertically on mobile (xs=column / sm=row); disable autocorrect on keyword input
inline "Active" chip; hide arrow indicator below sm breakpoint
clipboard copy fallback on desktop with Snackbar confirmation; uses
data-testid="share-lobby-button" for test targeting
(iPhone 12) Playwright projects scoped to mobile-game.spec.js
(1) share button renders and copies to clipboard,
(2) board renders in 2-column layout on mobile viewport,
(3) full 4-player game completed with tap() interactions on mobile
https://claude.ai/code/session_01LXbcxBMq954kuGguFgnUzX