[PR #5393] [MERGED] feat(ui): add contextual chat help overlays #6749

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5393
Author: @SpicyMarinara
Created: 8/22/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/5390-chat-help-overlay


📝 Commits (7)

  • 2bd5250 feat(ui): add contextual chat help overlays
  • a87cdd6 feat(ui): refine chat help access
  • 821b5da Merge branch 'staging' into feature/5390-chat-help-overlay
  • 9dd8508 fix(ui): keep chat Help preference with app toggles
  • bb1f343 fix(ui): address chat Help review findings
  • 0f15ea4 Merge remote-tracking branch 'origin/staging' into feature/5390-chat-help-overlay
  • 4a68198 test(ui): wait for Help persistence

📊 Changes

18 files changed (+1190 additions, -549 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+250 -0)
📝 packages/client/src/components/chat/ActiveLorebookEntriesButton.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+22 -0)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+1 -0)
➕ packages/client/src/components/chat/ChatHelpButton.tsx (+32 -0)
➕ packages/client/src/components/chat/ChatHelpOverlay.tsx (+602 -0)
📝 packages/client/src/components/chat/ChatMessageSearch.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+37 -22)
📝 packages/client/src/components/chat/ChatToolbarControls.tsx (+24 -0)
📝 packages/client/src/components/chat/ConversationPresenceCard.tsx (+1 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+26 -20)
📝 packages/client/src/components/game/GameSurface.tsx (+56 -61)
➖ packages/client/src/components/game/GameTutorial.tsx (+0 -436)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+17 -0)
➕ packages/client/src/lib/chat-help-events.ts (+32 -0)
📝 packages/client/src/localization/locales/en.json (+59 -0)
📝 packages/client/src/stores/ui.store.ts (+28 -10)

📄 Description

Linked issue

Fixes #5390

Why this change

Conversation, Roleplay, and Game chats expose many compact controls whose purpose is difficult to discover, especially on touch devices where hover tooltips are unavailable. Game had a separate step tutorial, but the other modes had no equivalent and its behavior did not match the requested dismiss-anywhere overview.

What changed

  • Add one shared, mode-aware chat Help overlay with numbered spotlights and concise descriptions.
  • Put Help first in every desktop chat action group and first in the existing mobile overflow menu.
  • Automatically open Help after setup for the first chat in each mode, then remember dismissal per mode.
  • Discover optional controls such as Calls, enabled-agent actions, Game widgets, and linked chats only when they are visible.
  • Add a permanent-hide action at the top of the overlay and an off-by-default Hide chat Help button toggle alongside the other controls in Settings → App Behavior.
  • Replace the old Game-only tutorial while migrating its dismissed state.
  • Add localized English copy and a changelog entry.

Validation

  • pnpm check passes locally
  • Focused regression passes locally
  • pnpm localization:check passes locally
  • pnpm smoke:ui 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

Automated evidence

  • pnpm check, passed.
  • Focused Playwright coverage for desktop and mobile, 6 passed:
    • all three modes expose their available controls in Help;
    • Help is first on desktop and in mobile overflow menus;
    • the first-chat overlay opens once and persists dismissal;
    • permanent hiding works from both the overlay and App Behavior.

Manual verification needed

  • Manually verify first-chat auto-open after each setup path.
  • Manually verify tap-anywhere and Escape dismissal.
  • Manually verify desktop and mobile layouts in all three modes.
  • Manually verify optional Call, agent, linked-chat, and Game widget targets.
  • Manually verify hiding and restoring the Help button from App Behavior.

Docs and release impact

  • No docs changes needed
  • Updated CHANGELOG.md
  • Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • New Features

    • Added a responsive Help walkthrough for Conversation, Roleplay, and Game chats.
    • Help opens automatically during first-time setup and can be reopened from chat toolbars.
    • Added mode-specific guidance for desktop and mobile controls.
    • Replaced the Game tutorial with the shared Help experience.
    • Added an App Behavior option to hide or re-enable the Help button.
    • Help preferences are remembered across sessions.
  • Bug Fixes

    • Improved overlay positioning, dismissal, focus restoration, and viewport behavior.

🔄 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/5393 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/5390-chat-help-overlay` --- ### 📝 Commits (7) - [`2bd5250`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2bd52509a0a7923ba8d40d00964dd3482f3bc1e2) feat(ui): add contextual chat help overlays - [`a87cdd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a87cdd64438492fbef94b0d0b6d60c4dd328f97b) feat(ui): refine chat help access - [`821b5da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/821b5da4ac0f35c8afe4803ce451bb4730c18ce4) Merge branch 'staging' into feature/5390-chat-help-overlay - [`9dd8508`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9dd8508f4f23dd8bf67b2fb8de7df9d4c0eb7462) fix(ui): keep chat Help preference with app toggles - [`bb1f343`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bb1f3431d3bb9d1bbdaf7c9b0b0b569872e99dbd) fix(ui): address chat Help review findings - [`0f15ea4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0f15ea49b51ec298c3c3572fb69c601269492024) Merge remote-tracking branch 'origin/staging' into feature/5390-chat-help-overlay - [`4a68198`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4a681982b28e158b9bbb313f09b2bdf4201d4573) test(ui): wait for Help persistence ### 📊 Changes **18 files changed** (+1190 additions, -549 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+250 -0) 📝 `packages/client/src/components/chat/ActiveLorebookEntriesButton.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+22 -0) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+1 -0) ➕ `packages/client/src/components/chat/ChatHelpButton.tsx` (+32 -0) ➕ `packages/client/src/components/chat/ChatHelpOverlay.tsx` (+602 -0) 📝 `packages/client/src/components/chat/ChatMessageSearch.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+37 -22) 📝 `packages/client/src/components/chat/ChatToolbarControls.tsx` (+24 -0) 📝 `packages/client/src/components/chat/ConversationPresenceCard.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+26 -20) 📝 `packages/client/src/components/game/GameSurface.tsx` (+56 -61) ➖ `packages/client/src/components/game/GameTutorial.tsx` (+0 -436) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+17 -0) ➕ `packages/client/src/lib/chat-help-events.ts` (+32 -0) 📝 `packages/client/src/localization/locales/en.json` (+59 -0) 📝 `packages/client/src/stores/ui.store.ts` (+28 -10) </details> ### 📄 Description ## Linked issue Fixes #5390 ## Why this change Conversation, Roleplay, and Game chats expose many compact controls whose purpose is difficult to discover, especially on touch devices where hover tooltips are unavailable. Game had a separate step tutorial, but the other modes had no equivalent and its behavior did not match the requested dismiss-anywhere overview. ## What changed - Add one shared, mode-aware chat Help overlay with numbered spotlights and concise descriptions. - Put Help first in every desktop chat action group and first in the existing mobile overflow menu. - Automatically open Help after setup for the first chat in each mode, then remember dismissal per mode. - Discover optional controls such as Calls, enabled-agent actions, Game widgets, and linked chats only when they are visible. - Add a permanent-hide action at the top of the overlay and an off-by-default `Hide chat Help button` toggle alongside the other controls in Settings → App Behavior. - Replace the old Game-only tutorial while migrating its dismissed state. - Add localized English copy and a changelog entry. ## Validation - [ ] pnpm check passes locally - [ ] Focused regression passes locally - [ ] pnpm localization:check passes locally - [ ] pnpm smoke:ui 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 ### Automated evidence - `pnpm check`, passed. - Focused Playwright coverage for desktop and mobile, 6 passed: - all three modes expose their available controls in Help; - Help is first on desktop and in mobile overflow menus; - the first-chat overlay opens once and persists dismissal; - permanent hiding works from both the overlay and App Behavior. ### Manual verification needed - Manually verify first-chat auto-open after each setup path. - Manually verify tap-anywhere and Escape dismissal. - Manually verify desktop and mobile layouts in all three modes. - Manually verify optional Call, agent, linked-chat, and Game widget targets. - Manually verify hiding and restoring the Help button from App Behavior. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated CHANGELOG.md - [ ] Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a responsive Help walkthrough for Conversation, Roleplay, and Game chats. * Help opens automatically during first-time setup and can be reopened from chat toolbars. * Added mode-specific guidance for desktop and mobile controls. * Replaced the Game tutorial with the shared Help experience. * Added an App Behavior option to hide or re-enable the Help button. * Help preferences are remembered across sessions. * **Bug Fixes** * Improved overlay positioning, dismissal, focus restoration, and viewport behavior. <!-- 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:13:21 +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#6749
No description provided.