[PR #7947] [MERGED] fix: guide Professor Mari connection setup #8021

Closed
opened 2026-10-24 04:09:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7947
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/issue-7930-mari-connection-guidance


📝 Commits (3)

  • e896f40 chore: start Professor Mari connection guidance work
  • ab1a438 fix: guide Professor Mari connection setup
  • 8916da8 fix(mari): expose context tier keys to the localization audit

📊 Changes

5 files changed (+142 additions, -3 deletions)

View changed files

➕ e2e/mari-connection-guidance.e2e.ts (+105 -0)
📝 packages/client/src/components/chat/mari/MariComposer.tsx (+4 -0)
➕ packages/client/src/components/chat/mari/MariConnectionGuidance.tsx (+22 -0)
📝 packages/client/src/components/chat/mari/MariTranscript.tsx (+4 -3)
📝 packages/client/src/localization/locales/en.json (+7 -0)

📄 Description

Linked issue

Closes #7930

Why this change

Professor Mari's start screen only explains where to pick a connection. It does not explain what model or context size suits her longer character, lorebook and tool tasks, and her connection picker has no such guidance. The maintainer supplied the missing screenshot text directly.

What changed

  • Show the supplied connection instruction, strong-model recommendation, 32k practical minimum / 64k preference, and 16k–128k use cases when Mari has no effective connection.
  • Reuse the same context guidance in the existing chains-icon connection picker, including when a connection is selected. The click-the-icon instruction appears only in the start state. Existing connection selection and context budgets keep their behavior; these are recommendations, with no new enforced minimum or cap.
  • Add seven semantic English localization keys and one shared guidance component. Partial community locales continue falling back to English. Add a focused browser regression covering both locations and the selected-connection state.

Validation

Human checklist, intentionally unchecked:

  • 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
  • Read and followed CONTRIBUTING.md

Completed local evidence:

  • pnpm install, pnpm check and a final pnpm check:e2e-types: passed. The existing HomeProfessorMariChat.tsx hook dependency warning remains.
  • pnpm regression:ui e2e/mari-connection-guidance.e2e.ts --workers=1: 6/6 passed across desktop Chromium, mobile Chromium and mobile WebKit in dark/light themes. Each case checks the no-connection start text, all four context tiers, picker guidance, hiding the startup guidance after adding a usable connection, preserving the picker guidance, no horizontal overflow and no page errors. No live provider requests.
  • pnpm smoke:ui: 7/7 passed.
  • Local CodeRabbit completed a substantive review of all five changed files. Its one editorial suggestion to replace “clicking the chains icon” was considered and dismissed: this is the maintainer-supplied wording, the actual chains control retains its visible and accessible “Select connection” name, and both the visible guidance and control were verified in the browser. No functional findings remain. This is not a claim of zero findings.

Review follow-up

Final local revision: 8916da866655250274435d830edf8ec21bc7f7d0.

  • Replace the four computed tier lookups with four explicit literal t(...) calls and list items. All seven English catalog entries and their exact text are unchanged; the props type and visible order are unchanged.
  • Before the repair, temporarily removing tier64k incorrectly passed check-locales.mjs. After the repair, the same removal fails with the component path and missing key. The canonical catalog was restored byte-for-byte, all seven literal references are captured, and standalone pnpm localization:check passes.
  • Full pnpm check passed again. It already includes pnpm localization:check, so the pilot's separate localization-proof-gap warning was a false positive.
  • The existing six browser cases passed again across desktop Chromium, mobile Chromium and mobile WebKit in dark/light themes. Added exact assertions for all four tier strings in the transcript, initial picker and picker after connection selection; every prior assertion remains. No live provider requests. Desktop-light start and mobile-WebKit-dark picker screenshots were visually inspected.
  • Local CodeRabbit completed the two-file follow-up with one false finding: it claimed the four tier keys were absent. All four already exist in both committed ab1a4384 and the unchanged working catalog, and their values exactly match the browser expectations. That claim was rejected with code and passing audit/browser evidence; this is not a zero-findings claim. Independent read-only peer review found no substantive issue.
  • The localizeUi alias remains necessary for seven live calls in MariTranscript.tsx. The inline-props suggestion is cosmetic and was left unchanged. Guidance selectors are scoped to the transcript or picker, so the simultaneous instances do not create a strict-locator collision; the six-case replay confirms those scopes. The unused legacy selection-hint catalog entry is retained outside this narrow repair.

Manual verification notes

  • Manually verify the setup guidance and connection picker on a physical phone with the preferred accessibility settings.

Browser coverage uses emulated devices; no fresh physical-device or live-model calibration is claimed. Hosted CI and final-head Dottore Review remain merge gates. Hosted container checks supply container proof for this UI-only change.

Docs and release impact

  • No docs changes needed
  • Translated docs updated, or a follow-up issue opened if needed
  • Version/release files updated, if needed

No user-guide, changelog or release metadata changes. Community translations remain partial.

UI evidence

Before uses the unchanged client built from e0b96f9c51baab904df1bdab88c3f3c8d05fbe8f; after uses this PR's ab1a4384ebe58bdccff4dac0dbca14f0cf9e0131. Synthetic local setup; images are on a separate evidence branch, outside the application diff. The screenshots were visually inspected.

View Before After
Desktop, light, start Before After
Desktop, light, picker Before After
Mobile Chromium, dark, start Before After
Mobile Chromium, dark, picker Before After

🔄 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/7947 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-7930-mari-connection-guidance` --- ### 📝 Commits (3) - [`e896f40`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e896f402fed92e9a87dd720cddb39a91b8362173) chore: start Professor Mari connection guidance work - [`ab1a438`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab1a4384ebe58bdccff4dac0dbca14f0cf9e0131) fix: guide Professor Mari connection setup - [`8916da8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8916da866655250274435d830edf8ec21bc7f7d0) fix(mari): expose context tier keys to the localization audit ### 📊 Changes **5 files changed** (+142 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `e2e/mari-connection-guidance.e2e.ts` (+105 -0) 📝 `packages/client/src/components/chat/mari/MariComposer.tsx` (+4 -0) ➕ `packages/client/src/components/chat/mari/MariConnectionGuidance.tsx` (+22 -0) 📝 `packages/client/src/components/chat/mari/MariTranscript.tsx` (+4 -3) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) </details> ### 📄 Description ## Linked issue Closes #7930 ## Why this change Professor Mari's start screen only explains where to pick a connection. It does not explain what model or context size suits her longer character, lorebook and tool tasks, and her connection picker has no such guidance. The maintainer supplied the missing screenshot text directly. ## What changed - Show the supplied connection instruction, strong-model recommendation, 32k practical minimum / 64k preference, and 16k–128k use cases when Mari has no effective connection. - Reuse the same context guidance in the existing chains-icon connection picker, including when a connection is selected. The click-the-icon instruction appears only in the start state. Existing connection selection and context budgets keep their behavior; these are recommendations, with no new enforced minimum or cap. - Add seven semantic English localization keys and one shared guidance component. Partial community locales continue falling back to English. Add a focused browser regression covering both locations and the selected-connection state. ## Validation Human checklist, intentionally unchecked: - [ ] `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 - [ ] Read and followed `CONTRIBUTING.md` Completed local evidence: - `pnpm install`, `pnpm check` and a final `pnpm check:e2e-types`: passed. The existing `HomeProfessorMariChat.tsx` hook dependency warning remains. - `pnpm regression:ui e2e/mari-connection-guidance.e2e.ts --workers=1`: 6/6 passed across desktop Chromium, mobile Chromium and mobile WebKit in dark/light themes. Each case checks the no-connection start text, all four context tiers, picker guidance, hiding the startup guidance after adding a usable connection, preserving the picker guidance, no horizontal overflow and no page errors. No live provider requests. - `pnpm smoke:ui`: 7/7 passed. - Local CodeRabbit completed a substantive review of all five changed files. Its one editorial suggestion to replace “clicking the chains icon” was considered and dismissed: this is the maintainer-supplied wording, the actual chains control retains its visible and accessible “Select connection” name, and both the visible guidance and control were verified in the browser. No functional findings remain. This is not a claim of zero findings. ### Review follow-up Final local revision: `8916da866655250274435d830edf8ec21bc7f7d0`. - Replace the four computed tier lookups with four explicit literal `t(...)` calls and list items. All seven English catalog entries and their exact text are unchanged; the props type and visible order are unchanged. - Before the repair, temporarily removing `tier64k` incorrectly passed `check-locales.mjs`. After the repair, the same removal fails with the component path and missing key. The canonical catalog was restored byte-for-byte, all seven literal references are captured, and standalone `pnpm localization:check` passes. - Full `pnpm check` passed again. It already includes `pnpm localization:check`, so the pilot's separate localization-proof-gap warning was a false positive. - The existing six browser cases passed again across desktop Chromium, mobile Chromium and mobile WebKit in dark/light themes. Added exact assertions for all four tier strings in the transcript, initial picker and picker after connection selection; every prior assertion remains. No live provider requests. Desktop-light start and mobile-WebKit-dark picker screenshots were visually inspected. - Local CodeRabbit completed the two-file follow-up with one false finding: it claimed the four tier keys were absent. All four already exist in both committed `ab1a4384` and the unchanged working catalog, and their values exactly match the browser expectations. That claim was rejected with code and passing audit/browser evidence; this is not a zero-findings claim. Independent read-only peer review found no substantive issue. - The `localizeUi` alias remains necessary for seven live calls in `MariTranscript.tsx`. The inline-props suggestion is cosmetic and was left unchanged. Guidance selectors are scoped to the transcript or picker, so the simultaneous instances do not create a strict-locator collision; the six-case replay confirms those scopes. The unused legacy selection-hint catalog entry is retained outside this narrow repair. ### Manual verification notes - [ ] Manually verify the setup guidance and connection picker on a physical phone with the preferred accessibility settings. Browser coverage uses emulated devices; no fresh physical-device or live-model calibration is claimed. Hosted CI and final-head Dottore Review remain merge gates. Hosted container checks supply container proof for this UI-only change. ## Docs and release impact - [ ] No docs changes needed - [ ] Translated docs updated, or a follow-up issue opened if needed - [ ] Version/release files updated, if needed No user-guide, changelog or release metadata changes. Community translations remain partial. ## UI evidence Before uses the unchanged client built from `e0b96f9c51baab904df1bdab88c3f3c8d05fbe8f`; after uses this PR's `ab1a4384ebe58bdccff4dac0dbca14f0cf9e0131`. Synthetic local setup; images are on a separate evidence branch, outside the application diff. The screenshots were visually inspected. | View | Before | After | | --- | --- | --- | | Desktop, light, start | [Before](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/before-desktop-chromium-light-start.png) | [After](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/after-desktop-chromium-light-start.png) | | Desktop, light, picker | [Before](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/before-desktop-chromium-light-picker.png) | [After](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/after-desktop-chromium-light-picker.png) | | Mobile Chromium, dark, start | [Before](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/before-mobile-chromium-dark-start.png) | [After](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/after-mobile-chromium-dark-start.png) | | Mobile Chromium, dark, picker | [Before](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/before-mobile-chromium-dark-picker.png) | [After](https://raw.githubusercontent.com/Pasta-Devs/Marinara-Engine/0aac3738c733ab320cfd3709b5d888317db65ee9/after-mobile-chromium-dark-picker.png) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:43 +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#8021
No description provided.