mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #49] [MERGED] perf(client): split chat area surfaces and lazy-load overlays #4419
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#4419
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/49
Author: @TheLonelyDevil9
Created: 4/2/2026
Status: ✅ Merged
Merged: 4/2/2026
Merged by: @SpicyMarinara
Base:
main← Head:perf/lazy-chat-surfaces📝 Commits (4)
566aabaperf(client): split chat area surfaces4e8952eperf(client): defer optional roleplay modules7ebe7b1perf(client): defer roleplay info panelsceb0650perf(client): defer conversation autonomous effects📊 Changes
8 files changed (+2047 additions, -1319 deletions)
View changed files
📝
packages/client/src/components/chat/ChatArea.tsx(+193 -1222)➕
packages/client/src/components/chat/ChatCommonOverlays.tsx(+211 -0)➕
packages/client/src/components/chat/ChatConversationSurface.tsx(+187 -0)➕
packages/client/src/components/chat/ChatRoleplayPanels.tsx(+162 -0)➕
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1112 -0)➕
packages/client/src/components/chat/ConversationAutonomousEffects.tsx(+116 -0)📝
packages/client/src/components/chat/ConversationView.tsx(+21 -97)➕
packages/client/src/components/chat/chat-area.types.ts(+45 -0)📄 Description
Why This PR
Summary
ChatAreainto lazy-loaded conversation and roleplay surfacesRoleplayHUDWeatherEffectsSpriteOverlaySpriteSidebarEncounterModalSummaryPopoverEchoChamberPanelValidation
corepack pnpm --filter @marinara-engine/client buildcorepack pnpm checkBundle Impact
ChatAreachunk:436.06 kBraw /108.96 kBgzipChatArea+ChatConversationSurface+ChatCommonOverlays):153.90 kBraw /47.78 kBgzipChatArea+ChatRoleplaySurface+ChatCommonOverlays):166.24 kBraw /50.44 kBgzipChatRoleplaySurfacedropped from163.95 kBraw /42.21 kBgzip to65.42 kBraw /18.05 kBgzip after deferring optional roleplay modulesChatCommonOverlaysdropped from171.34 kBraw /39.29 kBgzip to49.05 kBraw /15.59 kBgzip after deferring drawers and modalsChatSettingsDraweris now its own deferred chunk at79.31 kBraw /16.29 kBgzipRoleplayHUD:47.20 kBraw /11.37 kBgzipEncounterModal:21.07 kBraw /5.62 kBgzipWeatherEffects:14.73 kBraw /4.29 kBgzipSpriteOverlay:6.92 kBraw /2.96 kBgzipSummaryPopover:5.29 kBraw /2.07 kBgzipEchoChamberPanel:4.98 kBraw /2.17 kBgzipSpriteSidebar:1.81 kBraw /1.01 kBgzipNotes
Follow-up
ChatSettingsDrawer, then the remaining roleplay toolbar widgets (WorldInfoButtonandAuthorNotesButton) if we want to keep reducing the roleplay-first-load path🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.