mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #457] [MERGED] fix(game-map): show Set destination button for unknown locations on mobile #4626
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4626
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/457
Author: @Romuromylus
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/mobile-map-unknown-location-set-destination📝 Commits (1)
bd063cefix(game-map): show Set destination button for unknown locations on mobile📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
packages/client/src/components/game/GameMap.tsx(+3 -3)📄 Description
Linked issue
Closes #456
Why this change
GameMapPanelcallsonMoveimmediately on click rather than using the mobile select-then-confirm flow.What changed
packages/client/src/components/game/GameMap.tsx(MobileMapButton): the selected-node footer was wrapped in{selectedNodeData && selectedNodeData.discovered && (...)}, hiding it entirely for undiscovered nodes even whencanTravelwould have allowed travel. Removed the outerdiscoveredgate so the footer renders for any selected node, and masked the unknown node's emoji/label with❓/Unknown locationto match the on-map ❓ treatment.canTravel, which already permits travel to undiscovered adjacent nodes (and to the current node), so the eligibility logic is unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What was personally verified before opening this PR:
pnpm checklocally on the fix branch (TypeScript + ESLint + production build, all clean).❓ Unknown location+ Set destination button. ✅The "Checked edge cases" box is intentionally left unchecked: only the mobile flow above was exercised. Light/dark mode parity, non-Chromium mobile browsers (Safari iOS), and the no-Set-destination-for-non-adjacent-unknowns case were not personally re-verified and would benefit from a reviewer eyeball.
Docs and release impact
UI evidence (if applicable)
Before / after captured at the same Android viewport:
Before — unknown ("?") location selected, no footer rendered:
After — unknown location selected, footer + button now rendered:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.