[PR #552] [MERGED] Add copy message action to GM mode #4670

Closed
opened 2026-10-22 04:09:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/552
Author: @TheLonelyDevil9
Created: 5/8/2026
Status: ✅ Merged
Merged: 5/8/2026
Merged by: @TheLonelyDevil9

Base: main ← Head: fix/issue-468-gm-copy-message


📝 Commits (2)

  • e1f2272 Add GM mode copy message actions
  • 07f8ed0 Tighten GM copy button positioning

📊 Changes

1 file changed (+122 additions, -23 deletions)

View changed files

📝 packages/client/src/components/game/GameNarration.tsx (+122 -23)

📄 Description

Linked issue

Closes #468

Why this change

  • GM mode dialogue, narration, notes, books, and session log entries did not expose a copy-message action, forcing users to manually select text from the game narration UI.

What changed

  • Added copy actions to the active GM message surfaces for dialogue, narration, and readable note/book content.
  • Added copy actions to GM session log rows alongside the existing edit/delete controls.
  • Reused the existing clipboard helper and copied the cleaned readable text instead of raw GM control markup.
  • Added short checkmark feedback after a successful copy.

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

Manual verification notes

  • pnpm --filter @marinara-engine/client lint passed locally.
  • pnpm --filter @marinara-engine/client build passed locally.
  • pnpm check passed locally.
  • git diff --check passed locally.
  • Browser/manual UI verification still needs to be completed by the contributor before merging.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or release metadata changes are expected for this focused UI action update.

UI evidence (if applicable)

No screenshot or recording captured in this session. This should be verified manually in GM mode before merge.

Summary by CodeRabbit

  • New Features
    • Added copy buttons to dialogue, narration, and log segments for quick copying to clipboard
    • Copy action displays visual confirmation for 1.5 seconds to indicate success

🔄 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/552 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 5/8/2026 **Status:** ✅ Merged **Merged:** 5/8/2026 **Merged by:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Base:** `main` ← **Head:** `fix/issue-468-gm-copy-message` --- ### 📝 Commits (2) - [`e1f2272`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e1f2272785fce0912d272cf9b48fe6d84f311e8f) Add GM mode copy message actions - [`07f8ed0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/07f8ed093e088ebf4a5789e7410ce889e1b8836c) Tighten GM copy button positioning ### 📊 Changes **1 file changed** (+122 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameNarration.tsx` (+122 -23) </details> ### 📄 Description ## Linked issue Closes #468 ## Why this change - GM mode dialogue, narration, notes, books, and session log entries did not expose a copy-message action, forcing users to manually select text from the game narration UI. ## What changed - Added copy actions to the active GM message surfaces for dialogue, narration, and readable note/book content. - Added copy actions to GM session log rows alongside the existing edit/delete controls. - Reused the existing clipboard helper and copied the cleaned readable text instead of raw GM control markup. - Added short checkmark feedback after a successful copy. ## 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` ### Manual verification notes - `pnpm --filter @marinara-engine/client lint` passed locally. - `pnpm --filter @marinara-engine/client build` passed locally. - `pnpm check` passed locally. - `git diff --check` passed locally. - Browser/manual UI verification still needs to be completed by the contributor before merging. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or release metadata changes are expected for this focused UI action update. ## UI evidence (if applicable) No screenshot or recording captured in this session. This should be verified manually in GM mode before merge. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added copy buttons to dialogue, narration, and log segments for quick copying to clipboard * Copy action displays visual confirmation for 1.5 seconds to indicate success <!-- 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-22 04:09:38 +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#4670
No description provided.