mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7562] [MERGED] fix(chat): let Load More and history buttons follow the chat widget style #7798
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#7798
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/7562
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/themed-load-more-buttons📝 Commits (2)
6d534a3fix(chat): let Load More and history pagers follow the chat stylea654fddtest(chat): prove Load More and Show older follow the chat style switches📊 Changes
8 files changed (+289 additions, -28 deletions)
View changed files
➕
e2e/history-pager-widget-style.e2e.ts(+255 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+2 -2)📝
packages/client/src/components/chat/ConversationView.tsx(+2 -6)📝
packages/client/src/components/chat/TranscriptWindowControls.tsx(+6 -4)📝
packages/client/src/components/game/GameNarration.tsx(+4 -3)📝
packages/client/src/components/game/GameSurface.tsx(+2 -1)📝
packages/client/src/styles/themes/chat-widget-surfaces.css(+16 -10)📝
scripts/regressions/open-issues.regression.ts(+2 -2)📄 Description
Linked issue
Closes #7561
Why this change
What changed
HISTORY_PAGER_BUTTON_CLASSinTranscriptWindowControls.tsx, now styles every in-chat history button. It is the class Show older already used, plus the chat-style opt-in (mari-chat-style-control) and amari-chat-history-pagermarker:ChatRoleplaySurface.tsx)ConversationView.tsx)TranscriptWindowControls.tsx)GameNarration.tsx), and combat logs Show more older logs (N) (GameSurface.tsx)chat-widget-surfaces.css: the existing action-panel rules now also cover history pagers, so they keep their normal and hover fill under Apply preset shape alone, and keep the preset paint (not the gradient chrome) when the app accent is a gradient. The action-panel buttons keep the same selector weight as before, and the production build keeps the:is()selectors as written.e2e/history-pager-widget-style.e2e.ts: Roleplay and Conversation, Dottore (dark) and Mari (light), with a gradient app accent, on desktop and phone. It checks that Load More matches Show older; that font, shape and colors each apply on their own; that custom gradient colors paint both buttons; that hover keeps the preset paint; and that turning the switches off restores the Default look. It fails on staging's code.scripts/regressions/open-issues.regression.ts: the #3798 guard pinned the old constantTRANSCRIPT_WINDOW_BUTTON_CLASS. It now pins the renamed shared class. It still requires the samemari-chrome-control mari-chrome-control--small px-3 text-xsclasses, all three transcript buttons using the class, and no muted text. It now also requires the chat-style opt-in, so it is stricter, not looser. This is the behaviour change requested in #7561.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent command notes (for the reviewer to confirm; boxes above are left for the human):
pnpm check: passed (localization, format, lint, e2e types, build).pnpm localization:check: passed. No copy changed.node ./scripts/run-regressions.mjs --filter agent-activation: passed (2/2).node ./scripts/run-regressions.mjs --filter spatial-context: passed (1/1).node ./scripts/run-regressions.mjs --filter open-issues: passed after the guard update described above (it failed before the update only on the renamed constant).playwright test e2e/history-pager-widget-style.e2e.ts --project=desktop-chromium --project=mobile-chromium: 4/4 passed. With the component and CSS changes reverted to staging, the Dottore test fails at "Load More matches Show older".playwright test e2e/message-action-widget-style.e2e.ts(shares the CSS rules I extended), desktop and phone: 4/4 passed.core-flows"mobile Load More stays reachable beside the collapsed Echo Chamber" and "mobile reopening Echo Chamber and editing older Roleplay messages…": passed on rerun.client-runtime-diagnostics"Roleplay edit and older-message scrolling…" (mobile): flaky on staging too. The first run after a server start hangs on the "Loading..." screen before the chat opens, and later runs pass. That happened on both staging's code (1 failed, 1 passed) and this branch (1 failed, 2 passed).coderabbit review --agent --committed): one finding, on the guard update inopen-issues.regression.ts. Kept, because Mari requested this behaviour change in #7561 and the guard is stricter, not looser (see What changed).Manual verification notes
Manual verification needed:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Before/after screenshots (private page for the maintainer): https://claude.ai/artifact/NymMQDqLCqtwbUa8RVetHX
All shots come from the repo's Playwright setup, on desktop (1440 px) and phone (390 px):
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.