mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4012] [MERGED] Add safe extension UI contribution slots #6201
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#6201
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/4012
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feature/extension-ui-contributions📝 Commits (4)
041daaaAdd safe extension UI contribution slots9359a03Merge branch 'staging' into feature/extension-ui-contributions155f09aFix contribution UI type narrowingbf36798fix(extensions): address contribution review📊 Changes
16 files changed (+1596 additions, -69 deletions)
View changed files
📝
CHANGELOG.md(+1 -1)📝
docs/development/personal-extensions.md(+22 -3)📝
docs/extending/personal-extensions.md(+64 -12)➕
packages/client/src/components/extensions/PersonalExtensionContributionIcon.tsx(+50 -0)➕
packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx(+231 -0)📝
packages/client/src/components/layout/PersonalExtensionInjector.tsx(+37 -2)📝
packages/client/src/components/layout/RightPanel.tsx(+19 -2)📝
packages/client/src/components/layout/TopBar.tsx(+7 -0)➕
packages/client/src/components/panels/PersonalExtensionPanel.tsx(+232 -0)➕
packages/client/src/lib/personal-extension-contributions.ts(+381 -0)📝
packages/client/src/localization/locales/en.json(+9 -0)📝
packages/client/src/stores/ui.store.ts(+2 -1)📝
packages/server/src/routes/personal-extensions.routes.ts(+325 -23)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+7 -16)📝
packages/shared/src/types/personal-extension.ts(+94 -0)📝
scripts/regressions/extension-security.regression.ts(+115 -9)📄 Description
Closes #4009
Why
Personal Extensions need first-class entry points in Marinara's menus without restoring arbitrary host DOM, React-internal, network, or direct API access. This gives Professor Mari-authored and explicitly enabled External Extensions a useful, themed UI surface while keeping rendering and navigation under Marinara's control.
What changed
marinara.ui.registerContribution(...)forbutton,menu-item, andpanelcontributions.Security boundary
Extensions provide declarative data only. They cannot contribute HTML, CSS, URLs, React components, or callbacks to the host tree. Activation and form events return to the isolated Worker associated with the same extension ID and approved content hash. This PR does not add app-data or visual-effects authority; extensions that need those capabilities require separate narrow, permissioned brokers. Legacy packages that inject host DOM or call same-origin APIs therefore need a safe port rather than running unchanged.
Automated validation run
pnpm checkpassed on the exact PR head after the lateststagingmerge.pnpm regression:extensions-securitypassed, including the live macOS Seatbelt runtime proof.pnpm smoke:uicompleted with 94 passed, 53 viewport-specific skips, and one unrelated Tracker reload timing failure; the exact failed Tracker test passed immediately when rerun alone.git diff --checkpassed.Manual test plan
Coordination
No pre-existing issue-linked branch or pull request was found before implementation. Issue #4009 records the scope and ownership.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.