[PR #5275] [MERGED] Fix macro modal rendering and layering #6697

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

📋 Pull Request Information

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

Base: staging ← Head: fix/macro-modal-regressions-5266-5267-5270


📝 Commits (2)

  • 83c292b Fix macro modal rendering and layering
  • a16cc7c Keep summary macro editors mounted during dismissal

📊 Changes

8 files changed (+90 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+75 -2)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+5 -1)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+2 -0)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+4 -4)
📝 packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/client/src/localization/locales/ko.json (+1 -1)
📝 packages/client/src/localization/locales/zh-Hans.json (+1 -1)

📄 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 issues

Closes #5266
Closes #5267
Closes #5270

Why this change

  • The macro example value recursively collided with the <macro> component key, so react-i18next rendered [object Object] instead of {{macro}}.
  • Both body-portaled macro dialogs used z-indexes below the mobile Author's Notes panel, the summary panel, and other floating chat panels, making the dialogs inaccessible and allowing parent panels to dismiss them.

What changed

  • Renamed the internal translated component tag and interpolation key while preserving the existing English, Korean, and Simplified Chinese text.
  • Raised both shared macro-dialog backdrops above the existing floating-panel stack.
  • Extended Author's Notes coverage to mobile and added a focused summary-editor layering regression.
  • Added the user-facing changelog entry.

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 check passed locally (localization, formatting, lint, TypeScript, and production builds).
  • Focused Playwright coverage passed on desktop Chromium and Pixel 7 mobile Chromium: 4 tests passed.
  • The focused tests verify literal {{macro}} guidance, dialog z-order above Author's Notes and summary panels, and preservation of the parent panel after the expanded editor closes.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Automated viewport evidence is covered by the focused desktop/mobile Playwright run above. The in-app browser was unavailable for a separate screenshot attachment.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed macro references and expanded editors appearing behind floating panels, especially at narrow viewport widths.
    • Improved layering for macro-related dialogs and summary editors.
  • Localization

    • Updated macro usage guidance placeholders across English, Korean, and Simplified Chinese translations.
  • Tests

    • Expanded end-to-end coverage for mobile layouts, macro references, floating panels, and summary editing workflows.
  • Documentation

    • Added release notes for the v2.4.3 rendering and layering fixes.

🔄 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/5275 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/macro-modal-regressions-5266-5267-5270` --- ### 📝 Commits (2) - [`83c292b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83c292b2aa851e218bfd69c84a5c12799b601597) Fix macro modal rendering and layering - [`a16cc7c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a16cc7c2081638310d990c4eb8944e0551c90853) Keep summary macro editors mounted during dismissal ### 📊 Changes **8 files changed** (+90 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+75 -2) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+5 -1) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+2 -0) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+4 -4) 📝 `packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/client/src/localization/locales/ko.json` (+1 -1) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+1 -1) </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`. ## Linked issues Closes #5266 Closes #5267 Closes #5270 ## Why this change - The macro example value recursively collided with the `<macro>` component key, so react-i18next rendered `[object Object]` instead of `{{macro}}`. - Both body-portaled macro dialogs used z-indexes below the mobile Author's Notes panel, the summary panel, and other floating chat panels, making the dialogs inaccessible and allowing parent panels to dismiss them. ## What changed - Renamed the internal translated component tag and interpolation key while preserving the existing English, Korean, and Simplified Chinese text. - Raised both shared macro-dialog backdrops above the existing floating-panel stack. - Extended Author's Notes coverage to mobile and added a focused summary-editor layering regression. - Added the user-facing changelog entry. ## 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 check` passed locally (localization, formatting, lint, TypeScript, and production builds). - Focused Playwright coverage passed on desktop Chromium and Pixel 7 mobile Chromium: 4 tests passed. - The focused tests verify literal `{{macro}}` guidance, dialog z-order above Author's Notes and summary panels, and preservation of the parent panel after the expanded editor closes. ## 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]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Automated viewport evidence is covered by the focused desktop/mobile Playwright run above. The in-app browser was unavailable for a separate screenshot attachment. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed macro references and expanded editors appearing behind floating panels, especially at narrow viewport widths. * Improved layering for macro-related dialogs and summary editors. * **Localization** * Updated macro usage guidance placeholders across English, Korean, and Simplified Chinese translations. * **Tests** * Expanded end-to-end coverage for mobile layouts, macro references, floating panels, and summary editing workflows. * **Documentation** * Added release notes for the v2.4.3 rendering and layering fixes. <!-- 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:12:50 +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#6697
No description provided.