[PR #3504] [MERGED] fix(ui): correct copy that mismatches actual labels and behavior (fixes #3492) #5969

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3504
Author: @kolacheee
Created: 7/11/2026
Status: ✅ Merged
Merged: 7/11/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3492-copy-mismatches


📝 Commits (2)

  • ebf0e6a fix(ui): correct copy that mismatches actual labels and behavior (part of #3492)
  • db525ad fix(client): rename Browser panel to Bot Browser and align reputation tiers with server

📊 Changes

12 files changed (+43 additions, -30 deletions)

View changed files

📝 docs/TROUBLESHOOTING.md (+2 -2)
📝 docs/characters/bot-browser.md (+15 -15)
📝 docs/game/party-and-npcs.md (+3 -1)
📝 docs/home/tutorial.md (+1 -1)
📝 packages/client/src/components/agents/AgentEditor.tsx (+1 -1)
📝 packages/client/src/components/chat/HomeFaq.tsx (+1 -1)
📝 packages/client/src/components/game/GameJournal.tsx (+4 -1)
📝 packages/client/src/components/layout/RightPanel.tsx (+1 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+2 -2)
📝 packages/client/src/components/onboarding/OnboardingTutorial.tsx (+2 -2)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+10 -2)
📝 packages/client/src/stores/ui.store.ts (+1 -1)

📄 Description

Linked issue

Fixes #3492. The three objective mismatches shipped in the first commit; the two items previously flagged for a ruling have now been decided (use the feature's common name Bot Browser; render all seven server reputation tiers) and are included in the second commit, completing the issue.

Why this change

Copy that contradicts the actual UI breaks the find-what-you-read loop: helper text pointing at a switch that does not exist sends users hunting, a toast claiming imports need enabling misleads when they are already running, and FAQ option names that do not match the dropdown make the (label-exact) in-app doc search miss.

The panel label and reputation display were the same class of problem in the other direction: the code, docs, and tour anchor all call the feature the Bot Browser while the UI said "Browser", and the journal's 5-tier reputation mapping actively disagreed with the server's 7-tier scale — an NPC at reputation −30 rendered as "Hostile" while server-generated narration called it "unfriendly".

What changed

  • AgentEditor tool hint: told users to enable "Enable Function Calling" per chat; no switch has that label. Now names the real path: Chat Settings → Function Calling → "Enable Tool Use" (verified against FunctionCallingSection.tsx).
  • Extensions import toast: always said "Review before enabling", but the browser-runtime import normalizer preserves enabled: true from manifests, so imported extensions can already be running. The toast now counts enabled imports ("They are / N of them are already enabled — review in the Extension Library.") and only says "Review before enabling." when everything imported disabled. Server-runtime imports always arrive disabled (normalizer hardcodes it), so their copy is unchanged in practice.
  • Home FAQ calls answer: named the Whisper options without the "(Multilingual)" suffix the actual Local Speech Model dropdown uses (labels in shared/types/sidecar.ts:381,389). The FAQ now quotes the exact labels, matching the in-app documentation.
  • Bot Browser naming (second commit): the right-panel title, top-bar tooltip, and onboarding tour step now say Bot Browser, matching the feature's common name used by the code, the in-app guide, and the tour anchor (panel-bot-browser). The extension runtime badge in Settings ("Server"/"Browser") means the JS runtime, not this feature, and is deliberately untouched.
  • Reputation tiers (second commit): GameJournal's reputationLabel() now mirrors all seven server tiers from getReputationTier in reputation.service.ts — adds Devoted (≥ 80, emerald-300) and Unfriendly (≥ −50, amber-400), and corrects Hostile to ≥ −80. The old 5-tier mapping mislabeled reputations in [−50, −21] as "Hostile" and [−80, −51] as "Enemy", contradicting the server's milestone narration which already uses the 7-tier vocabulary (the journal and game-surface parsers already accept all seven names). A comment now pins the server function as the threshold source of truth.
  • In-app docs aligned (second commit): the bot-browser guide (title and the now-false "the app itself always labels it Browser" claim), the tutorial step list, the troubleshooting section heading, and the NPC reputation table (five rows → seven) all updated to match.

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

The checked boxes above cover the first commit. Two of those three changes are string-only (helper text, FAQ bullet) verified against the source labels they quote; the toast change adds one counter increment on the existing success path and a computed suffix, which cannot change import behavior.

The second commit (pnpm check re-run and passing) is string renames plus a threshold table verified line-by-line against getReputationTier; its manual browser checks are still outstanding:

  • Manually verify the top-bar tooltip and right-panel header read "Bot Browser"
  • Manually verify onboarding tour step 2 is titled "Bot Browser"
  • Manually verify an NPC in the Adventure Journal NPCs tab shows "Devoted" at reputation ≥ 80 and "Unfriendly" between −50 and −21

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

(In-app guides under docs/ were updated in the second commit to match the new labels: characters/bot-browser.md, home/tutorial.md, TROUBLESHOOTING.md, game/party-and-npcs.md. No README/CHANGELOG impact.)

UI evidence (if applicable)

Text-only changes; before/after strings are quoted in full above.


🔄 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/3504 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3492-copy-mismatches` --- ### 📝 Commits (2) - [`ebf0e6a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ebf0e6a6ddc2ebcec4fcfbb7a643fbadede21ba1) fix(ui): correct copy that mismatches actual labels and behavior (part of #3492) - [`db525ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db525ada4ede22449c2aad0822108615a6ecff1e) fix(client): rename Browser panel to Bot Browser and align reputation tiers with server ### 📊 Changes **12 files changed** (+43 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `docs/TROUBLESHOOTING.md` (+2 -2) 📝 `docs/characters/bot-browser.md` (+15 -15) 📝 `docs/game/party-and-npcs.md` (+3 -1) 📝 `docs/home/tutorial.md` (+1 -1) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+1 -1) 📝 `packages/client/src/components/chat/HomeFaq.tsx` (+1 -1) 📝 `packages/client/src/components/game/GameJournal.tsx` (+4 -1) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+1 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+2 -2) 📝 `packages/client/src/components/onboarding/OnboardingTutorial.tsx` (+2 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+10 -2) 📝 `packages/client/src/stores/ui.store.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Fixes #3492. The three objective mismatches shipped in the first commit; the two items previously flagged for a ruling have now been decided (use the feature's common name **Bot Browser**; render all seven server reputation tiers) and are included in the second commit, completing the issue. ## Why this change Copy that contradicts the actual UI breaks the find-what-you-read loop: helper text pointing at a switch that does not exist sends users hunting, a toast claiming imports need enabling misleads when they are already running, and FAQ option names that do not match the dropdown make the (label-exact) in-app doc search miss. The panel label and reputation display were the same class of problem in the other direction: the code, docs, and tour anchor all call the feature the Bot Browser while the UI said "Browser", and the journal's 5-tier reputation mapping actively disagreed with the server's 7-tier scale — an NPC at reputation −30 rendered as "Hostile" while server-generated narration called it "unfriendly". ## What changed - **AgentEditor tool hint**: told users to enable "Enable Function Calling" per chat; no switch has that label. Now names the real path: Chat Settings → Function Calling → **"Enable Tool Use"** (verified against `FunctionCallingSection.tsx`). - **Extensions import toast**: always said "Review before enabling", but the browser-runtime import normalizer preserves `enabled: true` from manifests, so imported extensions can already be running. The toast now counts enabled imports ("They are / N of them are already enabled — review in the Extension Library.") and only says "Review before enabling." when everything imported disabled. Server-runtime imports always arrive disabled (normalizer hardcodes it), so their copy is unchanged in practice. - **Home FAQ calls answer**: named the Whisper options without the "(Multilingual)" suffix the actual **Local Speech Model** dropdown uses (labels in `shared/types/sidecar.ts:381,389`). The FAQ now quotes the exact labels, matching the in-app documentation. - **Bot Browser naming** (second commit): the right-panel title, top-bar tooltip, and onboarding tour step now say **Bot Browser**, matching the feature's common name used by the code, the in-app guide, and the tour anchor (`panel-bot-browser`). The extension runtime badge in Settings ("Server"/"Browser") means the JS runtime, not this feature, and is deliberately untouched. - **Reputation tiers** (second commit): `GameJournal`'s `reputationLabel()` now mirrors all seven server tiers from `getReputationTier` in `reputation.service.ts` — adds **Devoted** (≥ 80, emerald-300) and **Unfriendly** (≥ −50, amber-400), and corrects **Hostile** to ≥ −80. The old 5-tier mapping mislabeled reputations in [−50, −21] as "Hostile" and [−80, −51] as "Enemy", contradicting the server's milestone narration which already uses the 7-tier vocabulary (the journal and game-surface parsers already accept all seven names). A comment now pins the server function as the threshold source of truth. - **In-app docs aligned** (second commit): the bot-browser guide (title and the now-false "the app itself always labels it Browser" claim), the tutorial step list, the troubleshooting section heading, and the NPC reputation table (five rows → seven) all updated to match. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes The checked boxes above cover the first commit. Two of those three changes are string-only (helper text, FAQ bullet) verified against the source labels they quote; the toast change adds one counter increment on the existing success path and a computed suffix, which cannot change import behavior. The second commit (`pnpm check` re-run and passing) is string renames plus a threshold table verified line-by-line against `getReputationTier`; its manual browser checks are still outstanding: - [ ] Manually verify the top-bar tooltip and right-panel header read "Bot Browser" - [ ] Manually verify onboarding tour step 2 is titled "Bot Browser" - [ ] Manually verify an NPC in the Adventure Journal NPCs tab shows "Devoted" at reputation ≥ 80 and "Unfriendly" between −50 and −21 ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) (In-app guides under `docs/` were updated in the second commit to match the new labels: `characters/bot-browser.md`, `home/tutorial.md`, `TROUBLESHOOTING.md`, `game/party-and-npcs.md`. No README/CHANGELOG impact.) ## UI evidence (if applicable) Text-only changes; before/after strings are quoted in full above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05: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#5969
No description provided.