[PR #8840] [MERGED] fix(connections): compact current-model row and align Quick Switcher icons #8837

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

📋 Pull Request Information

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

Base: staging ← Head: fix/compact-now-model-row


📝 Commits (2)

  • d4584d5 fix(connections): compact current-model row and align switcher icons
  • d92d6e8 fix(connections): align standalone switcher rows with the pane column

📊 Changes

2 files changed (+51 additions, -28 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionSwitcherBody.tsx (+48 -26)
📝 packages/client/src/components/connections/ServiceRow.tsx (+3 -2)

📄 Description

TL;DR: The current model at the top of the model picker is now one short row (about 40% shorter), and the phone Quick Switcher's icons and buttons line up in one column.

Linked issue

Closes #8839

Why this change

The "Now · this chat only" strip at the top of the chat model picker used a heading line plus a full model row (79–92px), so the catalog below got less room. On phones the Quick Switcher also looked uneven: Starred, account rows and Built-in model each used a different icon size and inset, and the settings / Use default / shuffle buttons had different sizes (32px and 44px) and uneven gaps (9px and 4px).

What changed

  • When a model is current, the strip shows one row: a small tile, the model name, and "Now · this chat only · account · via upstream" on line 2. The heading line stays only for Shuffle, following the Main model, and no model chosen.
  • The settings, Use default and shuffle buttons next to the current model are all 44×44px with even 4px gaps. Below the wide layout, Use default shows its icon only and keeps its label for screen readers.
  • Starred, account rows (ServiceRow small density), connections without an account and Built-in model put their icon in one shared 2rem column, so icon centres and text starts line up. The text start of ServiceRow small rows does not change, and the picture-button and trailing spacing do not change.

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

Agent-run evidence (Playwright on a local pnpm dev with a copy of real data):

  • Strip height, before → after: 1440px 91.9 → 55.3, 768px 91.9 → 55.3, 390px 79.2 → 55.3. With the context-usage bar shown it is 94.0px.
  • At 390px the text of the Now row, Starred, the account rows and Built-in model all starts at 75px, and the icon centres share one column. The three action buttons are equal width with 4px gaps.
  • Client tsc --noEmit, eslint (0 errors) and prettier --check pass on the changed files. Full pnpm check (impeccable, localization, format, lint, e2e types, token types, build) passed on head d4584d5500 (the follow-up d92d6e8d71 changes one line; client tsc, eslint and prettier pass on it), run by the agent. An independent agent review found no issues.

Please verify by hand:

  • Manually verify on a phone (Quick Switcher) that Starred, account and Built-in model icons line up and that settings / Use default / shuffle are easy to tap.
  • Manually verify in a desktop browser that "Model for this chat" shows the compact Now row and that Use default still switches the chat back to the Main model.
  • Manually verify the Now row with the context-usage bar on.
  • Manually verify Shuffle and "follows Main" states still show their heading.

Known limit: at 390px line 2 of the Now row truncates after "this chat only", so the account is cut there. The account still shows in the list below.

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)

UI evidence (if applicable)

Before/after screenshots at 390, 768 and 1440px (with context usage) were taken locally; they are not uploaded yet. Measured numbers are listed above.

Summary by CodeRabbit

  • Style
    • Compact connection rows now align model tiles more consistently.
    • The active choice appears within its model row, with tighter spacing in the Now strip.
    • Follow Main and Shuffle controls are larger and more uniform.

🔄 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/8840 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/4/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/compact-now-model-row` --- ### 📝 Commits (2) - [`d4584d5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d4584d5500cb88796cd68daf2d90d2426844d413) fix(connections): compact current-model row and align switcher icons - [`d92d6e8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d92d6e8d7194fa69640700925920b26ae3ade91e) fix(connections): align standalone switcher rows with the pane column ### 📊 Changes **2 files changed** (+51 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionSwitcherBody.tsx` (+48 -26) 📝 `packages/client/src/components/connections/ServiceRow.tsx` (+3 -2) </details> ### 📄 Description **TL;DR:** The current model at the top of the model picker is now one short row (about 40% shorter), and the phone Quick Switcher's icons and buttons line up in one column. ## Linked issue Closes #8839 ## Why this change The "Now · this chat only" strip at the top of the chat model picker used a heading line plus a full model row (79–92px), so the catalog below got less room. On phones the Quick Switcher also looked uneven: Starred, account rows and **Built-in model** each used a different icon size and inset, and the settings / **Use default** / shuffle buttons had different sizes (32px and 44px) and uneven gaps (9px and 4px). ## What changed - When a model is current, the strip shows one row: a small tile, the model name, and "Now · this chat only · account · via upstream" on line 2. The heading line stays only for Shuffle, following the Main model, and no model chosen. - The settings, **Use default** and shuffle buttons next to the current model are all 44×44px with even 4px gaps. Below the wide layout, **Use default** shows its icon only and keeps its label for screen readers. - Starred, account rows (`ServiceRow` small density), connections without an account and **Built-in model** put their icon in one shared 2rem column, so icon centres and text starts line up. The text start of `ServiceRow` small rows does not change, and the picture-button and trailing spacing do not change. ## 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 Agent-run evidence (Playwright on a local `pnpm dev` with a copy of real data): - Strip height, before → after: 1440px 91.9 → 55.3, 768px 91.9 → 55.3, 390px 79.2 → 55.3. With the context-usage bar shown it is 94.0px. - At 390px the text of the Now row, Starred, the account rows and Built-in model all starts at 75px, and the icon centres share one column. The three action buttons are equal width with 4px gaps. - Client `tsc --noEmit`, `eslint` (0 errors) and `prettier --check` pass on the changed files. Full `pnpm check` (impeccable, localization, format, lint, e2e types, token types, build) passed on head d4584d5500 (the follow-up d92d6e8d71 changes one line; client tsc, eslint and prettier pass on it), run by the agent. An independent agent review found no issues. Please verify by hand: - [ ] Manually verify on a phone (Quick Switcher) that Starred, account and Built-in model icons line up and that settings / Use default / shuffle are easy to tap. - [ ] Manually verify in a desktop browser that "Model for this chat" shows the compact Now row and that **Use default** still switches the chat back to the Main model. - [ ] Manually verify the Now row with the context-usage bar on. - [ ] Manually verify Shuffle and "follows Main" states still show their heading. Known limit: at 390px line 2 of the Now row truncates after "this chat only", so the account is cut there. The account still shows in the list below. ## 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) ## UI evidence (if applicable) Before/after screenshots at 390, 768 and 1440px (with context usage) were taken locally; they are not uploaded yet. Measured numbers are listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Style** * Compact connection rows now align model tiles more consistently. * The active choice appears within its model row, with tighter spacing in the Now strip. * Follow Main and Shuffle controls are larger and more uniform. <!-- 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-11-07 17:40:05 +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#8837
No description provided.