[PR #8845] [MERGED] fix(connections): one Download action on the built-in model row; keep row buttons unfilled #8840

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

📋 Pull Request Information

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

Base: staging ← Head: fix/builtin-model-row-actions


📝 Commits (1)

  • 9865fca fix(connections): one action per state on the built-in model row; pin quiet row buttons unfilled

📊 Changes

4 files changed (+49 additions, -45 deletions)

View changed files

📝 packages/client/src/components/connections/BuiltInModelCard.tsx (+16 -40)
📝 packages/client/src/localization/locales/en.json (+0 -2)
📝 packages/client/src/styles/globals.css (+6 -3)
➕ scripts/regressions/quiet-row-buttons.regression.ts (+27 -0)

📄 Description

Linked issue

No linked issue — reported on Discord by a tester (built-in model row screenshot). Planned polish, so straight to PR.

Why this change

On Connections → Defaults, the Built-in model row in the "Not downloaded" state offered Download three times:

  1. a download icon button,
  2. a ⋯ menu whose only item was Download,
  3. the row click itself (with a chevron that suggests "open details").

On top of that, the row buttons were drawn as filled bubbles at rest. The "quiet" row-button rule was meant to stop that, but it only won by specificity, so every new theme/accent-mode rule that styled .mari-chrome-control brought the fill back (most recently fixed for gradient accent in 4e41b10ae8). This is the third-or-so time the bubbles came back.

What changed

  • BuiltInModelCard.tsx: one action per state.
    • Not downloaded → only the Download button; the row is a plain heading (no chevron, no click).
    • Downloading / ready → the row opens the device page (setup progress or settings), with the chevron.
    • The ⋯ menu is removed — it always held exactly one item that repeated the row click.
  • globals.css: the quiet rest rule (.mari-chrome-control--quiet:not(:hover):not(:focus-visible):not([aria-expanded="true"])) now uses !important for background, border and box-shadow, so later theme/accent rules cannot refill it. Hover, focus-visible and open-menu states still fill as before.
  • en.json: dropped the two keys only the removed menu used (connections.builtin.card.actions, connections.builtin.card.settings).
  • New scripts/regressions/quiet-row-buttons.regression.ts pins the !important rest rule, ROW_BUTTON using the quiet variant, and the built-in row having no one-item menu.

Validation

Agent ran (not checkboxes — for the human to re-run):

  • node scripts/run-regressions.mjs --filter quiet-row-buttons → passed
  • tsc --noEmit -p packages/client → clean
  • eslint on BuiltInModelCard.tsx → clean; prettier --check on changed files → clean

Not run: full pnpm check, Docker build, browser check.

  • 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

  • Manually verify in browser: Connections → Defaults with the built-in model not downloaded shows one Download button, no ⋯, no chevron, and clicking the row does nothing.
  • Manually verify: Download button starts the setup flow; while downloading and after, clicking the row opens the device page.
  • Manually verify: row ⋯ buttons on account/model rows have no fill at rest in default, gradient, RGB and pulse accent modes, and still fill on hover, keyboard focus and while their menu is open.

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)

No screenshots yet — see manual verification notes.


🔄 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/8845 **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/builtin-model-row-actions` --- ### 📝 Commits (1) - [`9865fca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9865fca9f00225ac78e8cd80c30fe75eff438a2c) fix(connections): one action per state on the built-in model row; pin quiet row buttons unfilled ### 📊 Changes **4 files changed** (+49 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/BuiltInModelCard.tsx` (+16 -40) 📝 `packages/client/src/localization/locales/en.json` (+0 -2) 📝 `packages/client/src/styles/globals.css` (+6 -3) ➕ `scripts/regressions/quiet-row-buttons.regression.ts` (+27 -0) </details> ### 📄 Description ## Linked issue No linked issue — reported on Discord by a tester (built-in model row screenshot). Planned polish, so straight to PR. ## Why this change On Connections → Defaults, the **Built-in model** row in the "Not downloaded" state offered Download three times: 1. a download icon button, 2. a `⋯` menu whose only item was **Download**, 3. the row click itself (with a chevron that suggests "open details"). On top of that, the row buttons were drawn as filled bubbles at rest. The "quiet" row-button rule was meant to stop that, but it only won by specificity, so every new theme/accent-mode rule that styled `.mari-chrome-control` brought the fill back (most recently fixed for gradient accent in 4e41b10ae8). This is the third-or-so time the bubbles came back. ## What changed - `BuiltInModelCard.tsx`: one action per state. - Not downloaded → only the Download button; the row is a plain heading (no chevron, no click). - Downloading / ready → the row opens the device page (setup progress or settings), with the chevron. - The `⋯` menu is removed — it always held exactly one item that repeated the row click. - `globals.css`: the quiet rest rule (`.mari-chrome-control--quiet:not(:hover):not(:focus-visible):not([aria-expanded="true"])`) now uses `!important` for background, border and box-shadow, so later theme/accent rules cannot refill it. Hover, focus-visible and open-menu states still fill as before. - `en.json`: dropped the two keys only the removed menu used (`connections.builtin.card.actions`, `connections.builtin.card.settings`). - New `scripts/regressions/quiet-row-buttons.regression.ts` pins the `!important` rest rule, `ROW_BUTTON` using the quiet variant, and the built-in row having no one-item menu. ## Validation Agent ran (not checkboxes — for the human to re-run): - `node scripts/run-regressions.mjs --filter quiet-row-buttons` → passed - `tsc --noEmit -p packages/client` → clean - `eslint` on `BuiltInModelCard.tsx` → clean; `prettier --check` on changed files → clean Not run: full `pnpm check`, Docker build, browser check. - [ ] `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 - Manually verify in browser: Connections → Defaults with the built-in model **not downloaded** shows one Download button, no `⋯`, no chevron, and clicking the row does nothing. - Manually verify: Download button starts the setup flow; while downloading and after, clicking the row opens the device page. - Manually verify: row `⋯` buttons on account/model rows have no fill at rest in default, gradient, RGB and pulse accent modes, and still fill on hover, keyboard focus and while their menu is open. ## 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) No screenshots yet — see manual verification notes. --- <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:06 +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#8840
No description provided.