[PR #8677] [MERGED] feat(client): two-pane model picker — Starred and accounts left, models right #8743

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

📋 Pull Request Information

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

Base: staging ← Head: feat/model-picker-two-panes


📝 Commits (5)

  • e3f08dd feat(client): bring back two panes in the model picker
  • 60fc141 test(e2e): follow the two-pane model picker
  • b050515 fix(client): keep the picker's Add key button inside the phone pane
  • a2c4ab1 fix(client): stop the picker refetching a failed model list forever
  • e6edd2a fix(client): keep the Shuffle dice reachable on the phone Quick Switcher

📊 Changes

11 files changed (+691 additions, -639 deletions)

View changed files

📝 e2e/add-connection.e2e.ts (+17 -7)
📝 e2e/connection-model-switcher.e2e.ts (+79 -163)
📝 e2e/connections-inline-settings.e2e.ts (+11 -2)
📝 e2e/connections-layout.e2e.ts (+20 -13)
📝 packages/client/src/components/chat/QuickConnectionSwitcher.tsx (+27 -9)
📝 packages/client/src/components/chat/QuickSwitcherMobile.tsx (+0 -2)
📝 packages/client/src/components/chat/mari/MariComposer.tsx (+0 -1)
📝 packages/client/src/components/connections/ConnectionSwitcherBody.tsx (+523 -437)
📝 packages/client/src/components/connections/ModelPicker.tsx (+1 -2)
📝 packages/client/src/features/chat-settings/sections/ConnectionSection.tsx (+1 -3)
📝 packages/client/src/localization/locales/en.json (+12 -0)

📄 Description

Important

Contributions target staging.

Linked issue

No GitHub issue. Tester feedback on Discord (#pasta-testers, #me-bugs-features-feedback) after #8456: "that new model selector in chat is way less readable and usable than the one before … Before it was super clear - providers (connections) on the left, models on the right."

Why this change

The #8456 picker is one long column: Now, Follow Main, Recent, Starred, then the accounts. The same account shows in two or three places, Starred mixes whole Connections with models, and some accounts open an "All models" list while others list flat. Testers could not find their way around it.

This brings back the old two-pane layout on top of the new account + ★ model. Mockup approved by the maintainer before implementation.

What changed

ConnectionSwitcherBody is shared, so every model picker gets the new layout: the chat chip, the phone Quick Switcher, Chat Settings, Professor Mari's composer, and ModelPicker (every job field via ConnectionSelect: Main, Agents, Decision, Embeddings, Images, Voice, …).

  • Now strip at the top: current model, "this chat only" or follows Main, "Use default".
  • One search box. With Starred selected it searches every account; with an account selected it searches that account, with a line to widen to all accounts.
  • Left pane: ★ Starred first, then each account once (shared ServiceRow), then Add account. Folders, the built-in model and fix buttons for accounts that need a key or are off live here.
  • Right pane: the selection's models. An account shows its starred models first, then All models, with a refresh button and a load-failed message.
  • Opens on Starred. In job pickers, if Starred has nothing for the job, it opens on the current pick's account. The left pane hides accounts with nothing the job can use.
  • Phone: one pane, opens in Starred; Back shows the account list; tap to drill in.
  • Shuffle dice stays in the chat header.
  • Removed: the Recent section, the Follow Main row (now "Use default"), the maker filter and model metadata inside the picker (the connection editor keeps them).
  • 12 new connections.switcher.* English keys.
  • Not changed: the model list in the connection editor and the Add-account Models step.

Validation

  • Client tsc --noEmit passes; pnpm localization:check passes; Prettier clean.

  • e2e updated: connection-model-switcher, connections-inline-settings, connections-layout, add-connection.

  • connection-model-switcher.e2e.ts desktop-chromium: 6/6 pass (fixed a refetch loop on a failed model list).

  • Not run locally: mobile projects, add-connection e2e (6 failed locally earlier in the Add model dialog this branch does not change; not compared with staging). CI covers both.

  • Full pnpm check and full e2e left to CI.

  • 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

Manual verification notes

  • Manually verify in the browser at 1440 px: chat chip opens on Starred; picking an account shows its starred models, then All models; search is scoped and "search all accounts" widens it.
  • Manually verify at 390 px: Quick Switcher opens in Starred, Back shows accounts, an account with no key shows "Add key" inside the pane.
  • Manually verify job pickers: Main, an image job and Embeddings list only accounts that can serve them.
  • Manually verify Professor Mari's composer picker and Chat Settings → Connection.
  • Manually verify light mode and a custom theme.

Docs and release impact

  • No docs changes needed

UI evidence

Mockup: two panes, Starred and accounts on the left, models on the right. Screenshots to be attached by the reviewer.


🔄 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/8677 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/model-picker-two-panes` --- ### 📝 Commits (5) - [`e3f08dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3f08dde250d574490edb640f630c19a344694e8) feat(client): bring back two panes in the model picker - [`60fc141`](https://github.com/Pasta-Devs/Marinara-Engine/commit/60fc141d1a70c2390ebcec287d76df7c7386ff61) test(e2e): follow the two-pane model picker - [`b050515`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b050515eab4d4fbacd1571a50d20e7942c19478a) fix(client): keep the picker's Add key button inside the phone pane - [`a2c4ab1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a2c4ab16421d79132728fe4a7b9391c83f15fb88) fix(client): stop the picker refetching a failed model list forever - [`e6edd2a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e6edd2a58d3b9b5ad8f438097bee133a8031a576) fix(client): keep the Shuffle dice reachable on the phone Quick Switcher ### 📊 Changes **11 files changed** (+691 additions, -639 deletions) <details> <summary>View changed files</summary> 📝 `e2e/add-connection.e2e.ts` (+17 -7) 📝 `e2e/connection-model-switcher.e2e.ts` (+79 -163) 📝 `e2e/connections-inline-settings.e2e.ts` (+11 -2) 📝 `e2e/connections-layout.e2e.ts` (+20 -13) 📝 `packages/client/src/components/chat/QuickConnectionSwitcher.tsx` (+27 -9) 📝 `packages/client/src/components/chat/QuickSwitcherMobile.tsx` (+0 -2) 📝 `packages/client/src/components/chat/mari/MariComposer.tsx` (+0 -1) 📝 `packages/client/src/components/connections/ConnectionSwitcherBody.tsx` (+523 -437) 📝 `packages/client/src/components/connections/ModelPicker.tsx` (+1 -2) 📝 `packages/client/src/features/chat-settings/sections/ConnectionSection.tsx` (+1 -3) 📝 `packages/client/src/localization/locales/en.json` (+12 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. ## Linked issue No GitHub issue. Tester feedback on Discord (#pasta-testers, #me-bugs-features-feedback) after #8456: "that new model selector in chat is way less readable and usable than the one before … Before it was super clear - providers (connections) on the left, models on the right." ## Why this change The #8456 picker is one long column: Now, Follow Main, Recent, Starred, then the accounts. The same account shows in two or three places, Starred mixes whole Connections with models, and some accounts open an "All models" list while others list flat. Testers could not find their way around it. This brings back the old two-pane layout on top of the new account + ★ model. Mockup approved by the maintainer before implementation. ## What changed `ConnectionSwitcherBody` is shared, so every model picker gets the new layout: the chat chip, the phone Quick Switcher, Chat Settings, Professor Mari's composer, and `ModelPicker` (every job field via `ConnectionSelect`: Main, Agents, Decision, Embeddings, Images, Voice, …). - **Now strip** at the top: current model, "this chat only" or follows Main, "Use default". - **One search box.** With Starred selected it searches every account; with an account selected it searches that account, with a line to widen to all accounts. - **Left pane:** ★ Starred first, then each account once (shared `ServiceRow`), then Add account. Folders, the built-in model and fix buttons for accounts that need a key or are off live here. - **Right pane:** the selection's models. An account shows its starred models first, then All models, with a refresh button and a load-failed message. - **Opens on Starred.** In job pickers, if Starred has nothing for the job, it opens on the current pick's account. The left pane hides accounts with nothing the job can use. - **Phone:** one pane, opens in Starred; Back shows the account list; tap to drill in. - **Shuffle** dice stays in the chat header. - **Removed:** the Recent section, the Follow Main row (now "Use default"), the maker filter and model metadata inside the picker (the connection editor keeps them). - 12 new `connections.switcher.*` English keys. - Not changed: the model list in the connection editor and the Add-account Models step. ## Validation - Client `tsc --noEmit` passes; `pnpm localization:check` passes; Prettier clean. - e2e updated: `connection-model-switcher`, `connections-inline-settings`, `connections-layout`, `add-connection`. - `connection-model-switcher.e2e.ts` desktop-chromium: 6/6 pass (fixed a refetch loop on a failed model list). - Not run locally: mobile projects, `add-connection` e2e (6 failed locally earlier in the Add model dialog this branch does not change; not compared with staging). CI covers both. - Full `pnpm check` and full e2e left to CI. - [ ] `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` ### Manual verification notes - Manually verify in the browser at 1440 px: chat chip opens on Starred; picking an account shows its starred models, then All models; search is scoped and "search all accounts" widens it. - Manually verify at 390 px: Quick Switcher opens in Starred, Back shows accounts, an account with no key shows "Add key" inside the pane. - Manually verify job pickers: Main, an image job and Embeddings list only accounts that can serve them. - Manually verify Professor Mari's composer picker and Chat Settings → Connection. - Manually verify light mode and a custom theme. ## Docs and release impact - [ ] No docs changes needed ## UI evidence Mockup: two panes, Starred and accounts on the left, models on the right. Screenshots to be attached by the reviewer. --- <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:23 +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#8743
No description provided.