[PR #8754] [MERGED] fix: correct in-app hints and localize hard-coded labels found in the docs audit #8783

Closed
opened 2026-11-07 17:39:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8754
Author: @Gunterlie
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/docs-audit-code-followups


📝 Commits (7)

  • 81e5dfe fix(client): correct Whisper path in Calls FAQ entry
  • 12cd60e fix(client): give a reset-login hint that works on every install
  • bf3dc60 fix(env): match BASIC_AUTH_REALM example to the code default
  • 86e52b4 fix(client): Background Blur tooltip also covers Conversation mode
  • f0a06d8 fix(client): localize hard-coded labels in import, emoji tag, sprite, widget and regex UIs
  • e17b4a7 fix(server): sign-in page reset hint works on Termux too
  • 48e02bf docs: reset-login command that works on every install

📊 Changes

14 files changed (+190 additions, -87 deletions)

View changed files

📝 .env.example (+1 -1)
📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/REMOTE_ACCESS.md (+1 -1)
📝 docs/TROUBLESHOOTING.md (+1 -1)
📝 docs/installation/ios-pwa.md (+1 -1)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+16 -14)
📝 packages/client/src/components/chat/ExpressionSpriteSettings.tsx (+2 -2)
📝 packages/client/src/components/chat/HomeFaq.tsx (+1 -1)
📝 packages/client/src/components/game/GameWidgetPanel.tsx (+22 -26)
📝 packages/client/src/components/modals/ImportCharacterModal.tsx (+49 -21)
📝 packages/client/src/components/ui/CustomEmojiTagButton.tsx (+31 -14)
📝 packages/client/src/localization/locales/en.json (+62 -2)
📝 packages/server/src/middleware/basic-auth.ts (+1 -1)
📝 scripts/regressions/remote-login.regression.ts (+1 -1)

📄 Description

Linked issue

Closes #8751. Found during the docs rewrite (#8721). cc @SpicyMarinara

Why this change

The docs rewrite compared every guide with the code. It found places where the app itself gives instructions the code does not support. For example, the forgot-password hint tells Termux users to run a pnpm command that may not exist in their shell, and the Calls FAQ points to the wrong panel for the Whisper download. Several labels were also hard-coded in English, so translators could not reach them.

What changed

  1. Calls FAQ (HomeFaq.tsx:524): the Whisper download is under Connections → Speech to text (On this device), not Built-in model. Evidence: LocalWhisper renders only for item === "stt" (DeviceDetail.tsx:772).
  2. Forgot-password hints: pnpm reset-login needs pnpm on PATH, which a Termux shell may lack. The hints now say node scripts/reset-login.mjs in the Marinara folder, the form docs/installation/android-termux.md and android/README.md already use. The package.json script just runs this file. Changed in:
    • the in-app hint (en.json settings.accessStatus.login.forgot);
    • the server sign-in page (basic-auth.ts:982) and its regression assertion;
    • REMOTE_ACCESS, TROUBLESHOOTING, CONFIGURATION and ios-pwa docs.
  3. .env.example: BASIC_AUTH_REALM="Marinara Engine" now matches the code default (runtime-config.ts:419).
  4. Background Blur tooltip: it also applies in Conversation mode (ConversationView.tsx:1282).
  5. Hard-coded English → localization keys: 60 keys added to en.json only, and no community locale was touched. Files:
    • ImportCharacterModal
    • CustomEmojiTagButton
    • ExpressionSpriteSettings
    • GameWidgetPanel (removeConfirm now interpolates {{label}})
    • RegexScriptEditor (placement and apply-mode labels and descriptions)

Not changed (needs a decision)

Music & Sound Effects accounts have no setup tile in the create-connection modal (CreateConnectionModalContent.tsx:717: "Rows with no setup tile (music, for example)…"). Yet GameSetupWizard.tsx:3385 tells users to "Add a Music & Sound Effects account in Connections first". The provider is supported in ConnectionEditor. Someone needs to decide whether to add a tile or reword the wizard message. I left this unchanged.

Validation

  • pnpm check passed, with 0 errors and 12 lint warnings, all in files this PR does not touch. It ran before the last two commits, which only change strings in basic-auth.ts, the regression and the docs.
  • pnpm localization:check passed.
  • Regressions passed locally on this branch:
    • remote-login (with the updated assertion);
    • launcher env;
    • docker-proxy-auth;
    • launcher update and format-guard;
    • open-issues.
  • check-docs.mjs passed on the 4 changed docs.
  • Local CodeRabbit: the CLI is not available in this sandbox.
  • Read and followed CONTRIBUTING.md

Manual verification

  • Settings → Advanced → Access: the forgot-password hint shows the node scripts/reset-login.mjs text (and the Docker variant in a container).
  • Sign-in page after a wrong password shows the new reset hint.
  • Home FAQ → Calls entry names Connections → Speech to text, and the Whisper download is there.
  • Hover Background Blur in Appearance settings: the tooltip mentions Conversation.
  • Open the character import modal, a custom emoji tag menu, Expression sprite settings, the Game widget panel and the regex script editor, and check that every label still reads correctly in English.

Translation follow-up

Four user docs changed one sentence each: REMOTE_ACCESS, TROUBLESHOOTING, CONFIGURATION and installation/ios-pwa. The existing [docs-i18n] issues for those areas are #8738 and #8724, so they cover these.


Generated by Claude Code


🔄 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/8754 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/docs-audit-code-followups` --- ### 📝 Commits (7) - [`81e5dfe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/81e5dfebc3b64d011b599f1509c82875509b4dde) fix(client): correct Whisper path in Calls FAQ entry - [`12cd60e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/12cd60e300f331e40384f64afe3b3d6ac0e038ca) fix(client): give a reset-login hint that works on every install - [`bf3dc60`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bf3dc601854ea479252c0c7e138a0176582941e2) fix(env): match BASIC_AUTH_REALM example to the code default - [`86e52b4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/86e52b44d0ad2ffc5969316a89fb811d46b78c76) fix(client): Background Blur tooltip also covers Conversation mode - [`f0a06d8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0a06d8749b64c58eff27b0780955f4ed0286fa4) fix(client): localize hard-coded labels in import, emoji tag, sprite, widget and regex UIs - [`e17b4a7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e17b4a797c0f7f8dff50cb8bbe9027aff81135cf) fix(server): sign-in page reset hint works on Termux too - [`48e02bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/48e02bf0b94f53b26592601fe05bab2e6117c2f2) docs: reset-login command that works on every install ### 📊 Changes **14 files changed** (+190 additions, -87 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+1 -1) 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/REMOTE_ACCESS.md` (+1 -1) 📝 `docs/TROUBLESHOOTING.md` (+1 -1) 📝 `docs/installation/ios-pwa.md` (+1 -1) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+16 -14) 📝 `packages/client/src/components/chat/ExpressionSpriteSettings.tsx` (+2 -2) 📝 `packages/client/src/components/chat/HomeFaq.tsx` (+1 -1) 📝 `packages/client/src/components/game/GameWidgetPanel.tsx` (+22 -26) 📝 `packages/client/src/components/modals/ImportCharacterModal.tsx` (+49 -21) 📝 `packages/client/src/components/ui/CustomEmojiTagButton.tsx` (+31 -14) 📝 `packages/client/src/localization/locales/en.json` (+62 -2) 📝 `packages/server/src/middleware/basic-auth.ts` (+1 -1) 📝 `scripts/regressions/remote-login.regression.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #8751. Found during the docs rewrite (#8721). cc @SpicyMarinara ## Why this change The docs rewrite compared every guide with the code. It found places where the app itself gives instructions the code does not support. For example, the forgot-password hint tells Termux users to run a `pnpm` command that may not exist in their shell, and the Calls FAQ points to the wrong panel for the Whisper download. Several labels were also hard-coded in English, so translators could not reach them. ## What changed 1. **Calls FAQ** (`HomeFaq.tsx:524`): the Whisper download is under **Connections → Speech to text** (On this device), not **Built-in model**. Evidence: `LocalWhisper` renders only for `item === "stt"` (`DeviceDetail.tsx:772`). 2. **Forgot-password hints**: `pnpm reset-login` needs pnpm on PATH, which a Termux shell may lack. The hints now say `node scripts/reset-login.mjs` in the Marinara folder, the form `docs/installation/android-termux.md` and `android/README.md` already use. The `package.json` script just runs this file. Changed in: - the in-app hint (`en.json` `settings.accessStatus.login.forgot`); - the server sign-in page (`basic-auth.ts:982`) and its regression assertion; - REMOTE_ACCESS, TROUBLESHOOTING, CONFIGURATION and ios-pwa docs. 3. **`.env.example`**: `BASIC_AUTH_REALM="Marinara Engine"` now matches the code default (`runtime-config.ts:419`). 4. **Background Blur tooltip**: it also applies in Conversation mode (`ConversationView.tsx:1282`). 5. **Hard-coded English → localization keys**: 60 keys added to `en.json` only, and no community locale was touched. Files: - `ImportCharacterModal` - `CustomEmojiTagButton` - `ExpressionSpriteSettings` - `GameWidgetPanel` (`removeConfirm` now interpolates `{{label}}`) - `RegexScriptEditor` (placement and apply-mode labels and descriptions) ## Not changed (needs a decision) **Music & Sound Effects accounts** have no setup tile in the create-connection modal (`CreateConnectionModalContent.tsx:717`: "Rows with no setup tile (music, for example)…"). Yet `GameSetupWizard.tsx:3385` tells users to "Add a Music & Sound Effects account in Connections first". The provider is supported in `ConnectionEditor`. Someone needs to decide whether to add a tile or reword the wizard message. I left this unchanged. ## Validation - `pnpm check` passed, with 0 errors and 12 lint warnings, all in files this PR does not touch. It ran before the last two commits, which only change strings in `basic-auth.ts`, the regression and the docs. - `pnpm localization:check` passed. - Regressions passed locally on this branch: - remote-login (with the updated assertion); - launcher env; - docker-proxy-auth; - launcher update and format-guard; - open-issues. - `check-docs.mjs` passed on the 4 changed docs. - Local CodeRabbit: the CLI is not available in this sandbox. - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification - [ ] **Settings → Advanced → Access**: the forgot-password hint shows the `node scripts/reset-login.mjs` text (and the Docker variant in a container). - [ ] Sign-in page after a wrong password shows the new reset hint. - [ ] Home FAQ → Calls entry names **Connections → Speech to text**, and the Whisper download is there. - [ ] Hover **Background Blur** in Appearance settings: the tooltip mentions Conversation. - [ ] Open the character import modal, a custom emoji tag menu, Expression sprite settings, the Game widget panel and the regex script editor, and check that every label still reads correctly in English. ## Translation follow-up Four user docs changed one sentence each: REMOTE_ACCESS, TROUBLESHOOTING, CONFIGURATION and installation/ios-pwa. The existing `[docs-i18n]` issues for those areas are #8738 and #8724, so they cover these. --- _Generated by [Claude Code](https://claude.ai/code/session_01R5jnWUseUoEJVRiDfKqrbm)_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:40 +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#8783
No description provided.