[PR #4513] [MERGED] Fix Professor Mari chat, Quick Replies, and extension UI #6405

Closed
opened 2026-10-23 04:10:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4513
Author: @SpicyMarinara
Created: 8/3/2026
Status: ✅ Merged
Merged: 8/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/professor-mari-ui-sweep


📝 Commits (4)

  • 8d95131 chore: start Professor Mari UI sweep
  • 895feb2 fix: improve Professor Mari and extension UI
  • e875480 fix: address Professor Mari review feedback
  • 503940e test: ensure Professor Mari fixtures are cleaned

📊 Changes

18 files changed (+565 additions, -152 deletions)

View changed files

📝 docs/development/personal-extensions.md (+5 -3)
📝 docs/extending/personal-extensions.md (+19 -2)
📝 e2e/core-flows.e2e.ts (+51 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+77 -15)
📝 packages/client/src/components/extensions/PersonalExtensionContributionIcon.tsx (+22 -37)
➕ packages/client/src/components/extensions/PersonalExtensionContributionSlot.tsx (+60 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+17 -3)
📝 packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx (+12 -38)
📝 packages/client/src/components/layout/RightPanel.tsx (+59 -13)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+10 -10)
📝 packages/client/src/lib/personal-extension-contributions.ts (+28 -5)
➕ packages/client/src/lib/professor-mari-transcript-scroll.ts (+9 -0)
📝 packages/client/vite.config.ts (+5 -1)
📝 packages/server/src/routes/personal-extensions.routes.ts (+29 -5)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+2 -2)
📝 packages/shared/src/types/personal-extension.ts (+22 -16)
📝 scripts/regressions/extension-security.regression.ts (+105 -2)
📝 scripts/regressions/open-issues.regression.ts (+33 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issues

Closes #4508
Closes #4509
Closes #4510
Closes #4511
Closes #4512

Why this change

  • Existing Professor Mari chats should open at the newest message and make user turns easy to distinguish.
  • Quick reply controls must remain visible and usable in narrow Chat Settings drawers.
  • Professor Mari extensions need flexible, safe placement across native side-panel surfaces without adding redundant top-bar chrome.

What changed

  • Align loaded Professor Mari history to the bottom after the selected chat renders, and add theme-aware separators around user messages.
  • Constrain preset and custom Quick Replies so labels, fields, Add, and delete controls shrink within narrow sidebars.
  • Extend the Personal Extension contribution contract with safe side-panel surfaces and header, before-content, and after-content positions.
  • Render extension buttons through one reusable native slot in Chats, Bots, Characters, Personas, Lorebooks, Presets, Connections, Agents, and Settings.
  • Accept bounded Lucide icon names with a safe fallback, while splitting the dynamic icon catalog into small production chunks.
  • Keep the generic Extensions top-bar launcher for menu/panel contributions only, so a top-bar-only action does not create redundant chrome.
  • Update Professor Mari's extension guidance, extension docs, and focused regressions.

Automated validation run

  • pnpm check
  • pnpm regression:extensions-security
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts
  • pnpm localization:check
  • pnpm impeccable:check
  • Focused Playwright right-panel scrollbar ownership check: passed
  • Full pnpm smoke:ui: 179 passed, 97 skipped, 8 failed. The changed-path right-panel scrollbar failure found during this run was fixed and its focused rerun passes. The remaining failures cover stale What's New copy, existing click/timing assertions, Noodle mention delivery, and unrelated mobile feature flows; the left-sidebar transition timing assertion reproduced twice and is not modified by this PR.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification requested

  • Open an existing long Professor Mari chat and verify it settles on the newest message.
  • Verify user-message separators in light and dark themes.
  • At approximately 317 px sidebar width, verify Quick Replies fields, Add, and delete remain inside the panel.
  • Register buttons in every supported side-panel surface and position; verify theme, tooltip, keyboard, and cleanup behavior.
  • Register a top-bar-only extension action and verify no generic Extensions launcher appears.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Personal Extension docs were updated. Translation follow-up: #4516.

UI evidence

  • Existing narrow-sidebar reproduction: #4509.

Summary by CodeRabbit

  • New Features

    • Extensions can place actions across chat, side panels, and other app surfaces.
    • Added configurable action positions and dynamic Lucide icons.
    • Extension menus now distinguish top-bar actions from menu and panel items.
  • Bug Fixes

    • Improved Professor Mari chat loading, auto-scrolling, and message presentation.
    • Prevented quick-reply controls from overflowing narrow settings panels.
    • Improved panel headers and extension controls.
  • Documentation

    • Updated extension guidance for supported surfaces, positions, icons, and interactions.
  • Tests

    • Expanded coverage for extension placement, validation, icons, scrolling, and responsive layouts.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4513 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/professor-mari-ui-sweep` --- ### 📝 Commits (4) - [`8d95131`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8d95131b9745e70862d20079680e35dcdc4242e6) chore: start Professor Mari UI sweep - [`895feb2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/895feb282f74ba47d9011854e254196460af412f) fix: improve Professor Mari and extension UI - [`e875480`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e875480478eb2ab3dbbcf7d521289b725a917dc1) fix: address Professor Mari review feedback - [`503940e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/503940e7f862dfd7adbee3750725c44318492b72) test: ensure Professor Mari fixtures are cleaned ### 📊 Changes **18 files changed** (+565 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/personal-extensions.md` (+5 -3) 📝 `docs/extending/personal-extensions.md` (+19 -2) 📝 `e2e/core-flows.e2e.ts` (+51 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+77 -15) 📝 `packages/client/src/components/extensions/PersonalExtensionContributionIcon.tsx` (+22 -37) ➕ `packages/client/src/components/extensions/PersonalExtensionContributionSlot.tsx` (+60 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+17 -3) 📝 `packages/client/src/components/layout/PersonalExtensionContributionsMenu.tsx` (+12 -38) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+59 -13) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+10 -10) 📝 `packages/client/src/lib/personal-extension-contributions.ts` (+28 -5) ➕ `packages/client/src/lib/professor-mari-transcript-scroll.ts` (+9 -0) 📝 `packages/client/vite.config.ts` (+5 -1) 📝 `packages/server/src/routes/personal-extensions.routes.ts` (+29 -5) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+2 -2) 📝 `packages/shared/src/types/personal-extension.ts` (+22 -16) 📝 `scripts/regressions/extension-security.regression.ts` (+105 -2) 📝 `scripts/regressions/open-issues.regression.ts` (+33 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issues Closes #4508 Closes #4509 Closes #4510 Closes #4511 Closes #4512 ## Why this change - Existing Professor Mari chats should open at the newest message and make user turns easy to distinguish. - Quick reply controls must remain visible and usable in narrow Chat Settings drawers. - Professor Mari extensions need flexible, safe placement across native side-panel surfaces without adding redundant top-bar chrome. ## What changed - Align loaded Professor Mari history to the bottom after the selected chat renders, and add theme-aware separators around user messages. - Constrain preset and custom Quick Replies so labels, fields, Add, and delete controls shrink within narrow sidebars. - Extend the Personal Extension contribution contract with safe side-panel surfaces and `header`, `before-content`, and `after-content` positions. - Render extension buttons through one reusable native slot in Chats, Bots, Characters, Personas, Lorebooks, Presets, Connections, Agents, and Settings. - Accept bounded Lucide icon names with a safe fallback, while splitting the dynamic icon catalog into small production chunks. - Keep the generic Extensions top-bar launcher for menu/panel contributions only, so a top-bar-only action does not create redundant chrome. - Update Professor Mari's extension guidance, extension docs, and focused regressions. ## Automated validation run - `pnpm check` - `pnpm regression:extensions-security` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` - `pnpm localization:check` - `pnpm impeccable:check` - Focused Playwright right-panel scrollbar ownership check: passed - Full `pnpm smoke:ui`: 179 passed, 97 skipped, 8 failed. The changed-path right-panel scrollbar failure found during this run was fixed and its focused rerun passes. The remaining failures cover stale What's New copy, existing click/timing assertions, Noodle mention delivery, and unrelated mobile feature flows; the left-sidebar transition timing assertion reproduced twice and is not modified by this PR. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification requested - [ ] Open an existing long Professor Mari chat and verify it settles on the newest message. - [ ] Verify user-message separators in light and dark themes. - [ ] At approximately 317 px sidebar width, verify Quick Replies fields, Add, and delete remain inside the panel. - [ ] Register buttons in every supported side-panel surface and position; verify theme, tooltip, keyboard, and cleanup behavior. - [ ] Register a top-bar-only extension action and verify no generic Extensions launcher appears. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) Personal Extension docs were updated. Translation follow-up: #4516. ## UI evidence - Existing narrow-sidebar reproduction: #4509. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Extensions can place actions across chat, side panels, and other app surfaces. - Added configurable action positions and dynamic Lucide icons. - Extension menus now distinguish top-bar actions from menu and panel items. - **Bug Fixes** - Improved Professor Mari chat loading, auto-scrolling, and message presentation. - Prevented quick-reply controls from overflowing narrow settings panels. - Improved panel headers and extension controls. - **Documentation** - Updated extension guidance for supported surfaces, positions, icons, and interactions. - **Tests** - Expanded coverage for extension placement, validation, icons, scrolling, and responsive layouts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6405
No description provided.