Skip to content

fix: proposed fix for competing UI on mobile - #17

Open
xmreur wants to merge 7 commits into
sourcelocation:mainfrom
xmreur:fix/issue-8-mobile-friendly-toggle
Open

fix: proposed fix for competing UI on mobile#17
xmreur wants to merge 7 commits into
sourcelocation:mainfrom
xmreur:fix/issue-8-mobile-friendly-toggle

Conversation

@xmreur

@xmreur xmreur commented Jun 14, 2026

Copy link
Copy Markdown

Improves mobile gameplay by replacing the cramped bottom minimap strip with a full-screen Street View / map toggle.

On viewports under 768px, Street View now uses the full screen by default. A floating Guess button (bottom-right) opens a full-screen map overlay for pin placement; Back returns to Street View. The existing Place Pin / Guess / Waiting finalize flow is unchanged. Desktop keeps the hover-to-expand bottom-right minimap.

What changed:

MinimapPanel — Mobile uses a two-state mapViewOpen toggle instead of tap-to-expand partial minimap, backdrop collapse, and the 80px right gutter. Map overlay sits at z-30 (below HUD at z-40). New optional roundKey prop resets to Street View when the round changes.
InGameScene — Passes roundKey={streetViewSrc} so each new round starts in Street View.
MinimapPanel.test.tsx — Tests for mobile toggle, round reset, and unchanged desktop behavior.

@CLAassistant

CLAassistant commented Jun 14, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sourcelocation

Copy link
Copy Markdown
Owner

Thanks! I'll check this once I find time 👍

@sourcelocation
sourcelocation self-requested a review June 14, 2026 16:09
@sourcelocation

Copy link
Copy Markdown
Owner

i still remember about this PR, just have to find time, sorry for a long time to review

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

yeah no worries, take your time my man

@sourcelocation

Copy link
Copy Markdown
Owner

you will need to fix the merge conflicts though. can't review the PR until those are solved

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

resolved the merge conflicts, let me know 😄

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

should've fixed the CI issues, my bad

@sourcelocation

Copy link
Copy Markdown
Owner
Screenshot 2026-07-01 at 23 57 07 just tested the thing, the minimap seems too small in height. maybe make it so it expands to full screen when Guess is clicked?

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

hold up thats strange hahaha, i had replaced the thing with a button that switched the google map screen with the map but it looks like its gone, ill take a look asap

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

yeah looks like i messed up the merge, gimme a sec i'll re apply the fix on the latest version, 5 minutes and i'll commit

@sourcelocation

Copy link
Copy Markdown
Owner

no rush, take your time

…nd functionality

- Updated button labels in MinimapPanel from 'Open map to place guess' to 'Open map' for clarity.
- Adjusted test cases in MinimapPanel.test.tsx to reflect the new button labels and ensure accurate functionality.
- Removed unused refs and simplified state management in MinimapPanel for better performance.
@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

should be fixed, let me know :D

@sourcelocation

Copy link
Copy Markdown
Owner
Screen.Recording.2026-07-02.at.00.30.52.mov

Looks much better than what we have right now in prod, but would you mind fixing this bug where zoom level resets every time you close the map?

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

yeah gimme a sec

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

did it

@sourcelocation

Copy link
Copy Markdown
Owner

bug is still there. please attach a video demonstration in the follow up comment

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author
Screen-Recording.mp4

ignore streetview not showing anything ( i didnt setup the keys)

@sourcelocation

Copy link
Copy Markdown
Owner

doesn't seem to be the case on my side. resets just like before on commit 844f525

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

thats strange... check line 247 on the MinimapPanel.tsx file, does it have : 'hidden' ?

@sourcelocation

Copy link
Copy Markdown
Owner

yes I'm on latest commit of your branch

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

i swear i'm not understanding how this is happening hahaha, i guess you alr tried hard reloading right?

@xmreur

xmreur commented Jul 1, 2026

Copy link
Copy Markdown
Author

i'll try another fix, gimme a sec

@sourcelocation

Copy link
Copy Markdown
Owner

same issue unfortunately. I can reimplement this feature myself in another commit + credit you as a coauthor in it if you'd like.

@xmreur

xmreur commented Jul 2, 2026

Copy link
Copy Markdown
Author

yeah it's fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants