mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4007] [MERGED] Extension UI polish: accent theming and floating-panel windows #6196
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#6196
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/4007
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/extension-ui-accent-panel📝 Commits (2)
d68861cAddress review: accent theming and floating-panel extension windows42d9577Align floating-panel maxHeight with the 70vh JS cap📊 Changes
5 files changed (+126 additions, -52 deletions)
View changed files
📝
docs/extending/personal-extensions.md(+4 -0)📝
packages/client/src/components/layout/PersonalExtensionInjector.tsx(+68 -25)📝
packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx(+4 -5)📝
packages/server/src/routes/personal-extensions.routes.ts(+44 -22)📝
scripts/regressions/extension-security.regression.ts(+6 -0)📄 Description
Linked issue
Follow-up to #4006 (merged), addressing maintainer UI feedback after testing the browser-extension window capability with Professor Mari.
Why this change
Testing surfaced four issues:
What changed
Settings UI
var(--primary)accent tokens instead of emerald/amber.tone: "destructive", so the confirm button uses the standard accent styling. The confirmation step and full risk copy are unchanged.Extension window presentation
ui-resize) so the host fits the panel; it no longer paints any page-covering backdrop.Third-party parity (requested)
ENABLE_EXTERNAL_EXTENSIONS+ Danger Zone opt-in + exact-hash approval). A third-party extension can add or change UI only through this same sandboxed window — it still cannot reach Marinara's own DOM. Docs updated to state this explicitly.Security posture (unchanged)
Making the window a smaller floating panel instead of a full-viewport overlay is strictly less surface. The iframe is still opaque-origin,
allow-scriptsonly,connect-src 'none'; the extension still has no DOM/network/host access and only describes a window the trusted host renders as text.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated:
pnpm checkandpnpm regression:extensions-security(including the real macOS Seatbelt server-sandbox proof) pass. The regression now also asserts the window is a floating panel — it reportsui-resizeand never paints a full-screen backdrop.Manual verification notes
Docs and release impact
docs/extending/personal-extensions.mdupdated here)UI evidence
Floating panel renders inside the sandbox iframe; screenshots to be added during manual verification.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.