[PR #7964] [MERGED] soup/Unify searchable language pickers #8030

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

📋 Pull Request Information

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

Base: staging ← Head: soup/language-picker


📝 Commits (2)

  • 2f4a832 soup/Unify searchable language pickers
  • b13aab3 soup/Polish picker search, keyboard and chrome

📊 Changes

8 files changed (+564 additions, -52 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+15 -13)
➕ e2e/language-picker.e2e.ts (+206 -0)
📝 e2e/ui-language-fixtures.ts (+5 -0)
📝 packages/client/src/components/onboarding/OnboardingTutorial.tsx (+7 -11)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+13 -18)
📝 packages/client/src/components/panels/settings/UILanguageSetting.tsx (+6 -10)
➕ packages/client/src/components/ui/LanguagePicker.tsx (+307 -0)
📝 packages/client/src/localization/locales/en.json (+5 -0)

📄 Description

Part of S.O.U.P. 🥣
Simplify · Organize · Unify · Polish

An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.

TL;DR: Give interface and documentation language controls one searchable globe picker with native language names and clear selection feedback.

Linked issue

Closes #7963

Why this change

People should be able to recognize their language and find it quickly, including when its name uses a different script. The maintainer approved this design after trying an HTML mockup and seeing it in Engine. A globe and native names avoid associating languages spoken across multiple countries with a single flag.

What changed

  • Use the same globe picker for interface language in Settings and documentation language in Settings and onboarding.
  • Show native names, secondary English names, search by either name or locale code, a selected-language checkmark, and an empty-search message that stays readable in constrained popups.
  • Support arrow keys, Enter, forward/backward Tab, Escape, outside dismissal, hardware Back, and popovers that fit the viewport. Escape closes the onboarding picker without finishing the tutorial.
  • Keep interface pack downloads, refreshes, offline fallback, and explicit documentation download/switch actions with their existing callers.
  • Localize the new picker copy and add focused browser coverage, updating existing language persistence and Android-setting tests for the new control.

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

Automated results:

  • Final commit b13aab3da: pnpm check:e2e-types and the complete pnpm check passed, including localization, formatting, lint/types and production build.
  • Final commit b13aab3da: focused picker tests on desktop and mobile Chromium: 7 passed, 1 intentionally skipped (the visual matrix runs on desktop). Coverage includes visible empty searches, scrolling a constrained popup, Shift+Tab in Settings and onboarding, hardware Back, and matching chrome colors.
  • The visual matrix covers 390, 768 and 1440 px, default/SillyTavern themes, and light/dark modes, including a custom chrome text color.
  • Initial implementation 2f4a83293: 7 browser smoke tests passed, plus the focused 6-test desktop run covering language-pack downloads/persistence and the translated Android setting. The later changes are covered by the final picker suite above.
  • Most recent successful local CodeRabbit repair review: zero findings on the runtime changes. An additional repeated committed-diff review was rate-limited. Earlier substantive feedback was repaired and verified.

Mobile WebKit was attempted but could not launch because this host lacks its required GTK/GStreamer and related system libraries. Docker was not run locally; the hosted container build is a required merge gate. One existing HomeProfessorMariChat.tsx exhaustive-deps warning is present in the baseline and final lint output.

Manual verification notes

The maintainer reviewed the interactive mockup and in-Engine desktop/phone screenshots. Browser automation also exercised the real Engine UI with isolated data.

  • Manually verify selecting and refreshing an interface pack on a real device.
  • Manually verify documentation selection downloads or switches only after the existing action button is used.
  • Manually verify keyboard and touch interaction on iOS, plus custom user themes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

No user-facing documentation, storage format, or release metadata changes. The canonical English UI catalog contains the new strings; community locales retain English fallback.

UI evidence (if applicable)

Before: plain native selects. After: the shared searchable globe picker in the actual Engine Settings panel, captured at desktop and phone sizes. Screenshots were shown to the maintainer in this task; downloadable desktop and phone capture artifact (download the self-contained HTML file to view the embedded screenshots).


🔄 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/7964 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `soup/language-picker` --- ### 📝 Commits (2) - [`2f4a832`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2f4a83293c226da7fe5bfda08be71fdb84ec9f0b) soup/Unify searchable language pickers - [`b13aab3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b13aab3da96a6c0d8fa7304f152dad81a6f1a1b8) soup/Polish picker search, keyboard and chrome ### 📊 Changes **8 files changed** (+564 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+15 -13) ➕ `e2e/language-picker.e2e.ts` (+206 -0) 📝 `e2e/ui-language-fixtures.ts` (+5 -0) 📝 `packages/client/src/components/onboarding/OnboardingTutorial.tsx` (+7 -11) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+13 -18) 📝 `packages/client/src/components/panels/settings/UILanguageSetting.tsx` (+6 -10) ➕ `packages/client/src/components/ui/LanguagePicker.tsx` (+307 -0) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) </details> ### 📄 Description > **Part of S.O.U.P. 🥣** > **S**implify · **O**rganize · **U**nify · **P**olish > > *An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.* TL;DR: Give interface and documentation language controls one searchable globe picker with native language names and clear selection feedback. ## Linked issue Closes #7963 ## Why this change People should be able to recognize their language and find it quickly, including when its name uses a different script. The maintainer approved this design after trying an HTML mockup and seeing it in Engine. A globe and native names avoid associating languages spoken across multiple countries with a single flag. ## What changed - Use the same globe picker for interface language in Settings and documentation language in Settings and onboarding. - Show native names, secondary English names, search by either name or locale code, a selected-language checkmark, and an empty-search message that stays readable in constrained popups. - Support arrow keys, Enter, forward/backward Tab, Escape, outside dismissal, hardware Back, and popovers that fit the viewport. Escape closes the onboarding picker without finishing the tutorial. - Keep interface pack downloads, refreshes, offline fallback, and explicit documentation download/switch actions with their existing callers. - Localize the new picker copy and add focused browser coverage, updating existing language persistence and Android-setting tests for the new control. ## 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` Automated results: - Final commit `b13aab3da`: `pnpm check:e2e-types` and the complete `pnpm check` passed, including localization, formatting, lint/types and production build. - Final commit `b13aab3da`: focused picker tests on desktop and mobile Chromium: 7 passed, 1 intentionally skipped (the visual matrix runs on desktop). Coverage includes visible empty searches, scrolling a constrained popup, Shift+Tab in Settings and onboarding, hardware Back, and matching chrome colors. - The visual matrix covers 390, 768 and 1440 px, default/SillyTavern themes, and light/dark modes, including a custom chrome text color. - Initial implementation `2f4a83293`: 7 browser smoke tests passed, plus the focused 6-test desktop run covering language-pack downloads/persistence and the translated Android setting. The later changes are covered by the final picker suite above. - Most recent successful local CodeRabbit repair review: zero findings on the runtime changes. An additional repeated committed-diff review was rate-limited. Earlier substantive feedback was repaired and verified. Mobile WebKit was attempted but could not launch because this host lacks its required GTK/GStreamer and related system libraries. Docker was not run locally; the hosted container build is a required merge gate. One existing `HomeProfessorMariChat.tsx` exhaustive-deps warning is present in the baseline and final lint output. ### Manual verification notes The maintainer reviewed the interactive mockup and in-Engine desktop/phone screenshots. Browser automation also exercised the real Engine UI with isolated data. - Manually verify selecting and refreshing an interface pack on a real device. - Manually verify documentation selection downloads or switches only after the existing action button is used. - Manually verify keyboard and touch interaction on iOS, plus custom user themes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) No user-facing documentation, storage format, or release metadata changes. The canonical English UI catalog contains the new strings; community locales retain English fallback. ## UI evidence (if applicable) Before: plain native selects. After: the shared searchable globe picker in the actual Engine Settings panel, captured at desktop and phone sizes. Screenshots were shown to the maintainer in this task; [downloadable desktop and phone capture artifact](https://gist.github.com/Gunterlie/b970b47c3750c7c773a34fc31c95f83f) (download the self-contained HTML file to view the embedded screenshots). --- <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:47 +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#8030
No description provided.