[PR #4534] [MERGED] Fix World Maps chat context presentation #6413

Closed
opened 2026-10-23 04:10:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4534
Author: @thetopham
Created: 8/3/2026
Status: ✅ Merged
Merged: 8/3/2026
Merged by: @thetopham

Base: staging ← Head: agent/4532-4533-world-maps-context-sweep


📝 Commits (3)

  • 1828c39 Fix World Maps chat context presentation
  • 83b7041 Add World Maps PR verification screenshots
  • 3a8af15 Tighten World Maps regression scoping

📊 Changes

10 files changed (+112 additions, -2 deletions)

View changed files

➕ .github/pr-evidence/4534/game-shared-world-library.png (+0 -0)
➕ .github/pr-evidence/4534/game-world-maps-settings.png (+0 -0)
➕ .github/pr-evidence/4534/roleplay-shared-world-library.png (+0 -0)
➕ .github/pr-evidence/4534/roleplay-world-maps-settings.png (+0 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+5 -2)
📝 packages/client/src/components/game/GameInput.tsx (+1 -0)
📝 packages/client/src/components/game/GameMap.tsx (+2 -0)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 scripts/regressions/open-issues.regression.ts (+102 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4532
Closes #4533

Why this change

  • World Maps replacement/library actions receive a chat ID but not its mode from runtime and in-game Engine entry points, so the package cannot recognize the supported target chat and hides Link to chat.
  • Chat Settings reuses World Maps installation guidance inside the active Agent card, redundantly instructing users to navigate to the screen they already reached.

What changed

  • Preserve the Roleplay or Game chat mode in every World Maps runtime, desktop-map, and mobile-map capability contribution.
  • Use a localized, settings-specific World Maps feature summary for active Roleplay and Game cards while leaving the package/catalog installation description unchanged.
  • Add issue regressions covering all capability hosts and both Chat Settings presentation paths.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Completed evidence (checkboxes intentionally remain a human contributor to-do list):

  • Final-head local pnpm check passed, including localization, lint, TypeScript, and production client/server builds.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts passed.
  • Targeted desktop Chromium test World Maps stays in Agents and Chat Settings passed.
  • A broader UI smoke run reached 179 passed / 97 skipped / 10 unrelated failures; its World Maps case passed. The failures were existing shell/layout/timing cases outside this six-file patch.
  • GitHub pnpm-validate and container-build-test passed on final PR head 83b70419f18a0dcfe469c16f0c0d16ca80847a06; that screenshot-only commit sits directly on validated application commit 1828c390fba3ddaae166f0dd74efe392fd0c658e.
  • CodeRabbit completed with all pre-merge checks passed and no review threads or actionable findings.
  • git diff --check passed.

Manual verification notes

  • Installed the exact validated artifact locally. /api/health reported 2.4.1+1828c390fba3, and the served index-DZAGjRji.js matched the worktree SHA-256 (40fa362aa4b761606370ef77bb19786693f36497ab95aa9da4f17f091bf07930).
  • In a disposable Roleplay chat, opened Chat Settings → Agents → Tracker Agents → World Maps. The active card showed only the focused feature summary and did not repeat “Add the Agent in Chat Settings…”.
  • In a disposable Game chat, opened Chat Settings → World Maps and observed the same focused summary with no activation instruction.
  • From both chats, opened Agents → World Maps → Open world library. All three real shared-world cards, including dungeon crawler world, visibly showed Link to chat. No shared world was linked, edited, copied, or deleted.
  • Deleted every disposable verification chat after capturing the result. Repeated aborted browser passes left eight guarded Game test campaigns; those exact, uniquely named IDs were force-deleted through the supported API, and a final query returned zero matches. The dummy Game shell logged two 404s for pre-existing missing illustration files; neither request involved World Maps or a changed path.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No install, update, release, or user-facing documentation behavior changes are expected.

UI evidence (if applicable)

The screenshots below are pinned to evidence commit 83b70419f18a0dcfe469c16f0c0d16ca80847a06. The application code and exact locally installed artifact remain commit 1828c390fba3ddaae166f0dd74efe392fd0c658e.

Roleplay

The active World Maps card shows the focused feature summary without repeating the activation instructions.

Roleplay Chat Settings with the focused World Maps summary

The real shared-world library exposes Link to chat on all three shared-world cards.

Roleplay World Maps library with Link to chat actions

Game

The active World Maps card uses the same focused summary in Game Chat Settings.

Game Chat Settings with the focused World Maps summary

The Game shared-world library also exposes Link to chat on all three cards.

Game World Maps library with Link to chat actions

Summary by CodeRabbit

  • New Features

    • World Maps now displays a localized feature summary in Chat Settings.
    • World Maps preserves the active chat mode across roleplay and game experiences, including mobile and desktop maps.
  • Bug Fixes

    • Improved World Maps integration to ensure the correct experience is maintained when launching or viewing maps.
  • Tests

    • Added regression coverage for World Maps behavior and localized settings descriptions.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4534 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `agent/4532-4533-world-maps-context-sweep` --- ### 📝 Commits (3) - [`1828c39`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1828c390fba3ddaae166f0dd74efe392fd0c658e) Fix World Maps chat context presentation - [`83b7041`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83b70419f18a0dcfe469c16f0c0d16ca80847a06) Add World Maps PR verification screenshots - [`3a8af15`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3a8af15173fec243d820bba17fed2a463f34d43b) Tighten World Maps regression scoping ### 📊 Changes **10 files changed** (+112 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.github/pr-evidence/4534/game-shared-world-library.png` (+0 -0) ➕ `.github/pr-evidence/4534/game-world-maps-settings.png` (+0 -0) ➕ `.github/pr-evidence/4534/roleplay-shared-world-library.png` (+0 -0) ➕ `.github/pr-evidence/4534/roleplay-world-maps-settings.png` (+0 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+5 -2) 📝 `packages/client/src/components/game/GameInput.tsx` (+1 -0) 📝 `packages/client/src/components/game/GameMap.tsx` (+2 -0) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+102 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #4532 Closes #4533 ## Why this change - World Maps replacement/library actions receive a chat ID but not its mode from runtime and in-game Engine entry points, so the package cannot recognize the supported target chat and hides **Link to chat**. - Chat Settings reuses World Maps installation guidance inside the active Agent card, redundantly instructing users to navigate to the screen they already reached. ## What changed - Preserve the Roleplay or Game chat mode in every World Maps runtime, desktop-map, and mobile-map capability contribution. - Use a localized, settings-specific World Maps feature summary for active Roleplay and Game cards while leaving the package/catalog installation description unchanged. - Add issue regressions covering all capability hosts and both Chat Settings presentation paths. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Completed evidence (checkboxes intentionally remain a human contributor to-do list): - Final-head local `pnpm check` passed, including localization, lint, TypeScript, and production client/server builds. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` passed. - Targeted desktop Chromium test `World Maps stays in Agents and Chat Settings` passed. - A broader UI smoke run reached 179 passed / 97 skipped / 10 unrelated failures; its World Maps case passed. The failures were existing shell/layout/timing cases outside this six-file patch. - GitHub `pnpm-validate` and `container-build-test` passed on final PR head `83b70419f18a0dcfe469c16f0c0d16ca80847a06`; that screenshot-only commit sits directly on validated application commit `1828c390fba3ddaae166f0dd74efe392fd0c658e`. - CodeRabbit completed with all pre-merge checks passed and no review threads or actionable findings. - `git diff --check` passed. ### Manual verification notes - Installed the exact validated artifact locally. `/api/health` reported `2.4.1+1828c390fba3`, and the served `index-DZAGjRji.js` matched the worktree SHA-256 (`40fa362aa4b761606370ef77bb19786693f36497ab95aa9da4f17f091bf07930`). - In a disposable Roleplay chat, opened **Chat Settings → Agents → Tracker Agents → World Maps**. The active card showed only the focused feature summary and did not repeat “Add the Agent in Chat Settings…”. - In a disposable Game chat, opened **Chat Settings → World Maps** and observed the same focused summary with no activation instruction. - From both chats, opened **Agents → World Maps → Open world library**. All three real shared-world cards, including `dungeon crawler world`, visibly showed **Link to chat**. No shared world was linked, edited, copied, or deleted. - Deleted every disposable verification chat after capturing the result. Repeated aborted browser passes left eight guarded Game test campaigns; those exact, uniquely named IDs were force-deleted through the supported API, and a final query returned zero matches. The dummy Game shell logged two 404s for pre-existing missing illustration files; neither request involved World Maps or a changed path. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No install, update, release, or user-facing documentation behavior changes are expected. ## UI evidence (if applicable) The screenshots below are pinned to evidence commit `83b70419f18a0dcfe469c16f0c0d16ca80847a06`. The application code and exact locally installed artifact remain commit `1828c390fba3ddaae166f0dd74efe392fd0c658e`. ### Roleplay The active World Maps card shows the focused feature summary without repeating the activation instructions. ![Roleplay Chat Settings with the focused World Maps summary](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/83b70419f18a0dcfe469c16f0c0d16ca80847a06/.github/pr-evidence/4534/roleplay-world-maps-settings.png) The real shared-world library exposes **Link to chat** on all three shared-world cards. ![Roleplay World Maps library with Link to chat actions](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/83b70419f18a0dcfe469c16f0c0d16ca80847a06/.github/pr-evidence/4534/roleplay-shared-world-library.png) ### Game The active World Maps card uses the same focused summary in Game Chat Settings. ![Game Chat Settings with the focused World Maps summary](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/83b70419f18a0dcfe469c16f0c0d16ca80847a06/.github/pr-evidence/4534/game-world-maps-settings.png) The Game shared-world library also exposes **Link to chat** on all three cards. ![Game World Maps library with Link to chat actions](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/83b70419f18a0dcfe469c16f0c0d16ca80847a06/.github/pr-evidence/4534/game-shared-world-library.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * World Maps now displays a localized feature summary in Chat Settings. * World Maps preserves the active chat mode across roleplay and game experiences, including mobile and desktop maps. * **Bug Fixes** * Improved World Maps integration to ensure the correct experience is maintained when launching or viewing maps. * **Tests** * Added regression coverage for World Maps behavior and localized settings descriptions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6413
No description provided.