Skip to content

fix: explore prompt shows after fragment, hides after first kill#311

Merged
mokn merged 5 commits intodevfrom
feat/i18n-z2-pages
Mar 27, 2026
Merged

fix: explore prompt shows after fragment, hides after first kill#311
mokn merged 5 commits intodevfrom
feat/i18n-z2-pages

Conversation

@mokn
Copy link
Copy Markdown
Collaborator

@mokn mokn commented Mar 27, 2026

Summary

  • Show "Explore the Dark Cave" after fragment claim (FIRST_STEPS), not at JUST_SPAWNED
  • Hide it after first monster kill (FIRST_BLOOD)
  • Matches designed onboarding flow: spawn → fragment → explore prompt → first combat

🤖 Generated with Claude Code

mokn and others added 5 commits March 26, 2026 17:41
Wire useTranslation('ui') into all three Z2 pages:
- GameBoard: loading, reconnecting, stats drawer, Winding Dark warning
- Guild: full coverage — create modal, withdraw modal, directory,
  member rows, leader controls, applications, all buttons/labels
- Leaderboard: tabs, filters, sort headers, Race to Max, PvP rankings,
  empty states, column headers

All 4 locales updated (EN/KO/JA/ZH) with ~80 new keys each.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
"Tile Details", "You have not yet spawned", "An error occurred",
and "In order to begin battling, you must spawn" were hardcoded
despite the components having useTranslation hooks. Added keys
to gameBoard namespace in all 4 locales (EN/KO/JA/ZH).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add overflow: hidden to header Grid. CJK nav text widths caused
the logo to bleed into the map panel below via negative margins.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 combat.* keys, 4 tile.* keys, 5 zone.* keys were used in t()
calls but missing from all locale JSON files — causing raw keys
like "combat.moveToFind" and "tile.players" to render in the UI.

Also translate zone names ("Dark Cave" / "Windy Peaks") via i18n
in MapContext instead of hardcoded English.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Changed from stage <= JUST_SPAWNED to stage >= FIRST_STEPS && < FIRST_BLOOD.
The explore prompt now appears after claiming the first fragment and
disappears after the first monster kill.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mokn mokn merged commit c66fbe6 into dev Mar 27, 2026
1 of 5 checks passed
@mokn mokn deleted the feat/i18n-z2-pages branch March 27, 2026 10:59
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Building Building Preview, Comment Mar 27, 2026 10:59am
ud Building Building Preview, Comment Mar 27, 2026 10:59am
ud-api Building Building Preview, Comment Mar 27, 2026 10:59am
ud-api-beta Building Building Preview, Comment Mar 27, 2026 10:59am

Request Review

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.

1 participant