mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1455] [MERGED] Split heavy chat UI imports #5097
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1455
Author: @Xelvanis
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @Xelvanis
Base:
refactor← Head:chore/vite-code-splitting-warnings📝 Commits (1)
ff302cfSplit heavy chat UI imports📊 Changes
5 files changed (+21 additions, -9 deletions)
View changed files
📝
src/features/modes/game/components/GameSurface.tsx(+10 -6)➕
src/features/modes/shared/chat-ui/ChatGalleryDrawer.lazy.tsx(+8 -0)📝
src/features/modes/shared/chat-ui/components/ChatGalleryDrawer.tsx(+1 -1)📝
src/features/modes/shared/chat-ui/index.ts(+1 -1)📝
src/shared/lib/draft-translation.ts(+1 -1)📄 Description
Linked issue
N/A - local chore-list cleanup for Vite static/dynamic import warnings.
Why this change
translate-textandChatGalleryDrawer, preventing those modules from being split cleanly and keeping heavier UI/runtime code in earlier bundles.What changed
translate-textdynamically fromtranslateDraftTextso draft translation no longer statically imports the translation command helper.ChatGalleryDrawerentrypoint and route the shared chat-ui barrel through it.ChatGalleryDrawerPropstype export as type-only API.Suspenseand only mount it while the drawer is open.Refactor impact
Primary owner:
Shared mode chat UI and game mode UI.
Impact areas reviewed:
Boundary notes:
Pressure points touched:
GameSurfacetouched narrowly to wrap the gallery drawer lazy component.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
git diff --check origin/refactor...HEADpassed.pnpm check:architecturepassed.pnpm typecheckpassed.pnpm buildpassed.translate-text-...jsandChatGalleryDrawer-...jschunks.graphify update .was not run because local Graphify output refresh is paused until tracked-output churn is fixed;graphify-outis clean.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDocs/release note: no docs changes were made because this is an internal bundling/import-graph cleanup with no user-facing behavior change.
UI evidence
No screenshots or recordings. This PR does not intentionally change visible UI behavior.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.