[PR #7024] [MERGED] feat(ui): explain each sidebar with a help tip next to its title #7435

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

📋 Pull Request Information

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

Base: staging ← Head: feat/sidebar-help-tooltips


📝 Commits (7)

  • b94bcf4 feat(ui): explain each sidebar with a help tip next to its title
  • 736a37d fix(ui): keep sidebar help taps off the Close button and closing on click
  • a691eb3 Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips
  • a844bf9 Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips
  • 3caa404 Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips
  • ba63e10 Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips
  • c998745 Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips

📊 Changes

7 files changed (+194 additions, -14 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+98 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+9 -0)
📝 packages/client/src/components/layout/RightPanel.tsx (+45 -6)
📝 packages/client/src/components/ui/HelpTooltip.tsx (+14 -8)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+16 -0)
📝 packages/client/src/localization/locales/en.json (+10 -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 issue

Closes #7002

Why this change

New users open a sidebar such as Chats or Characters and have to guess what it's for and what its buttons do. The maintainer asked for the existing ? help icon next to every sidebar title, with a plain explanation in her own style. She wrote the Chats and Characters texts. The text lives in the English catalog so translators can translate it.

What changed

  • Help icon: the existing HelpTooltip (same ? icon and styling, no new component) now sits right after the title of Chats, Characters, Personas, Lorebooks, Presets, Connections, Agents, Settings and the Tracker Panel.
    • Hover opens it, a tap opens it on touch screens, and it opens downward so it stays on screen at 390px.
    • Its button is named "Show help for ".
    • The title still truncates and the icon stays visible.
    • A personal extension panel, the Extensions stub, the "Panel" fallback and the unreachable bot-browser panel get no icon.
  • Copy: nine texts in en.json under navigation.sidebarHelp.*.
    • Chats and Characters are the maintainer's, with her approved wording fixes: the plus button only creates, Import and Select are separate buttons, characters are filtered by tags, and the mode is "Game—GM".
    • The other seven are in her style, and every claim was checked against the code after merging current staging.
  • HelpTooltip fix: a click toggled the tip by opening or closing it inside a setPinned updater. React StrictMode runs that twice, so a second click could reopen the tip. The click now toggles from the current state. This affects every help tip in the app, for the better.
  • Touch screens: the help button no longer overlaps the panel's Close button (-ml-3 instead of -mx-3).
  • Test: expectSidebarHelp in e2e/core-flows.e2e.ts checks every sidebar's icon, its text, open and close, and that it doesn't overhang its title group. It runs on desktop-chromium, mobile-chromium and mobile-webkit, and fails without the change.
  • CHANGELOG: one entry.

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 notes

Run by the agent:

  • pnpm check and pnpm localization:check pass.
  • The sidebar-help, Tracker Panel, custom generation parameters, Music Player and three background-picker tests pass: 19 passed and 2 mobile skips, across desktop-chromium, mobile-chromium and mobile-webkit. The sidebar test passed 12/12 after the toggle fix, against 4 failures in 10 before it.
  • A review found the Close-button overlap (fixed) and the see-through tooltip background. The background is left as is: it's the shared tooltip's existing --popover colour, and reusing it unchanged was the request.

Still to verify by hand:

  • Open each sidebar on desktop and hover its ?. Each text reads well and fits on screen.
  • On a phone, tap each ?, then tap again to close it. Check the Close button still works next to a long panel title.
  • Check light and dark themes.

Seen while testing, not caused by this PR: e2e/chat-sweep.e2e.ts "Roleplay agents can omit chat summaries…" looks for the old text "Approximate. Each call also carries chat context", which bb7c394ab renamed.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG updated. Nine new UI strings in en.json; community packs fall back to English until translated.

Summary by CodeRabbit

  • New Features
    • Added contextual help buttons to Chats, Characters, Personas, Lorebooks, Presets, Connections, Agents, Settings, and the Tracker Panel. Hover over a button or select it (tap on mobile) to view a localized overview of that sidebar.
  • Bug Fixes
    • Help buttons now have clear accessible names, and selecting them reliably opens or closes their help tips.

🔄 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/7024 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/sidebar-help-tooltips` --- ### 📝 Commits (7) - [`b94bcf4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b94bcf4b93994034acedefe95c572ed0416f4fbc) feat(ui): explain each sidebar with a help tip next to its title - [`736a37d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/736a37d7ba61c3b5296e3eb8c773387a0f76db6f) fix(ui): keep sidebar help taps off the Close button and closing on click - [`a691eb3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a691eb3330f36d354a3f62c831bd3e9bddd14239) Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips - [`a844bf9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a844bf91a80bc6c594d26babf0fe6289c703cc1d) Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips - [`3caa404`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3caa4046554a82a205cdb8e4857f9e84775bda58) Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips - [`ba63e10`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ba63e102c9348b4793b337e7747daac5717321a4) Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips - [`c998745`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c998745c595538a6767a400f664d70379224df7b) Merge remote-tracking branch 'origin/staging' into feat/sidebar-help-tooltips ### 📊 Changes **7 files changed** (+194 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+98 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+9 -0) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+45 -6) 📝 `packages/client/src/components/ui/HelpTooltip.tsx` (+14 -8) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+16 -0) 📝 `packages/client/src/localization/locales/en.json` (+10 -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 issue Closes #7002 ## Why this change New users open a sidebar such as **Chats** or **Characters** and have to guess what it's for and what its buttons do. The maintainer asked for the existing **?** help icon next to every sidebar title, with a plain explanation in her own style. She wrote the Chats and Characters texts. The text lives in the English catalog so translators can translate it. ## What changed - **Help icon:** the existing `HelpTooltip` (same **?** icon and styling, no new component) now sits right after the title of **Chats**, **Characters**, **Personas**, **Lorebooks**, **Presets**, **Connections**, **Agents**, **Settings** and the **Tracker Panel**. - Hover opens it, a tap opens it on touch screens, and it opens downward so it stays on screen at 390px. - Its button is named "Show help for <sidebar>". - The title still truncates and the icon stays visible. - A personal extension panel, the Extensions stub, the "Panel" fallback and the unreachable bot-browser panel get no icon. - **Copy:** nine texts in `en.json` under `navigation.sidebarHelp.*`. - Chats and Characters are the maintainer's, with her approved wording fixes: the plus button only creates, Import and Select are separate buttons, characters are filtered by tags, and the mode is "Game—GM". - The other seven are in her style, and every claim was checked against the code after merging current staging. - **HelpTooltip fix:** a click toggled the tip by opening or closing it inside a `setPinned` updater. React StrictMode runs that twice, so a second click could reopen the tip. The click now toggles from the current state. This affects every help tip in the app, for the better. - **Touch screens:** the help button no longer overlaps the panel's Close button (`-ml-3` instead of `-mx-3`). - **Test:** `expectSidebarHelp` in `e2e/core-flows.e2e.ts` checks every sidebar's icon, its text, open and close, and that it doesn't overhang its title group. It runs on desktop-chromium, mobile-chromium and mobile-webkit, and fails without the change. - **CHANGELOG:** one entry. ## 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 notes Run by the agent: - `pnpm check` and `pnpm localization:check` pass. - The sidebar-help, Tracker Panel, custom generation parameters, Music Player and three background-picker tests pass: 19 passed and 2 mobile skips, across desktop-chromium, mobile-chromium and mobile-webkit. The sidebar test passed 12/12 after the toggle fix, against 4 failures in 10 before it. - A review found the Close-button overlap (fixed) and the see-through tooltip background. The background is left as is: it's the shared tooltip's existing `--popover` colour, and reusing it unchanged was the request. Still to verify by hand: - Open each sidebar on desktop and hover its **?**. Each text reads well and fits on screen. - On a phone, tap each **?**, then tap again to close it. Check the Close button still works next to a long panel title. - Check light and dark themes. Seen while testing, not caused by this PR: `e2e/chat-sweep.e2e.ts` "Roleplay agents can omit chat summaries…" looks for the old text "Approximate. Each call also carries chat context", which `bb7c394ab` renamed. ## 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]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG updated. Nine new UI strings in `en.json`; community packs fall back to English until translated. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added contextual help buttons to Chats, Characters, Personas, Lorebooks, Presets, Connections, Agents, Settings, and the Tracker Panel. Hover over a button or select it (tap on mobile) to view a localized overview of that sidebar. * **Bug Fixes** * Help buttons now have clear accessible names, and selecting them reliably opens or closes their help tips. <!-- 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:19:45 +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#7435
No description provided.