[PR #7530] [MERGED] fix(card-browser): align source names and keep "Unavailable" under the name on phones #7778

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7530
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/card-browser-source-menu-mobile


📝 Commits (4)

  • ca1e76b fix(card-browser): align source names and keep "Unavailable" under the name on phones
  • dae2695 test(card-browser): keep the Unavailable label inside the menu's bottom edge too
  • 14629bb test(card-browser): format the alignment check
  • 310d1c0 Merge branch 'staging' into fix/card-browser-source-menu-mobile

📊 Changes

2 files changed (+38 additions, -9 deletions)

View changed files

📝 e2e/bot-browser-download.e2e.ts (+25 -1)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+13 -8)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7525

Why this change

On a phone, the Card Browser's source menu had two layout problems. ChubAI's icon is the text glyph ✦, narrower than the other sources' emoji, so its name sat out of line with the rest. And the Unavailable label beside CharacterTavern was cut off at the menu's edge.

What changed

  • Source icons sit in a fixed-width column, so every name lines up whatever glyph a source uses. ChubAI keeps its ✦.
  • CharacterTavern's Unavailable label sits under its name, on every screen size.
  • Icons are marked decorative (aria-hidden), so screen readers read only the source name and the label.
  • The existing e2e check ("CharacterTavern explains it is unavailable…") now also measures, with the menu open, that every source name starts at the same x position and that the label sits below the name, inside the menu.

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

  • Ran:
    • pnpm check (exit 0).
    • e2e/bot-browser-download.e2e.ts -g "CharacterTavern explains" on mobile-webkit, mobile-chromium and desktop-chromium: 3 passed.
    • The same test against the old menu code fails: the source names start at 2 different x positions.
  • Manually verify on a phone: open Download Cards, tap the source button, and check that all names line up and that "Unavailable" shows in full under CharacterTavern.

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)

Summary by CodeRabbit

  • Style
    • Improved provider menu alignment with a consistent icon column and selection indicator at the end of each row.
    • Grouped provider names with their availability labels, with “Unavailable” displayed beneath “CharacterTavern” and fitting within the menu.
    • Verified that the source menu layout remains clear when a provider is unavailable.

🔄 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/7530 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/card-browser-source-menu-mobile` --- ### 📝 Commits (4) - [`ca1e76b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca1e76b30c54caea5068344343be8a518c5b227f) fix(card-browser): align source names and keep "Unavailable" under the name on phones - [`dae2695`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dae269581fa49a28dba7ed6ab208df309941c7df) test(card-browser): keep the Unavailable label inside the menu's bottom edge too - [`14629bb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14629bb12b6f64eff612b328f672a582f6f05882) test(card-browser): format the alignment check - [`310d1c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/310d1c085631ab3e4ef85e0a60835134838c7d68) Merge branch 'staging' into fix/card-browser-source-menu-mobile ### 📊 Changes **2 files changed** (+38 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `e2e/bot-browser-download.e2e.ts` (+25 -1) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+13 -8) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7525 ## Why this change On a phone, the Card Browser's source menu had two layout problems. **ChubAI**'s icon is the text glyph ✦, narrower than the other sources' emoji, so its name sat out of line with the rest. And the **Unavailable** label beside CharacterTavern was cut off at the menu's edge. ## What changed - Source icons sit in a fixed-width column, so every name lines up whatever glyph a source uses. ChubAI keeps its ✦. - CharacterTavern's **Unavailable** label sits under its name, on every screen size. - Icons are marked decorative (`aria-hidden`), so screen readers read only the source name and the label. - The existing e2e check ("CharacterTavern explains it is unavailable…") now also measures, with the menu open, that every source name starts at the same x position and that the label sits below the name, inside the menu. ## 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 - Ran: - `pnpm check` (exit 0). - `e2e/bot-browser-download.e2e.ts -g "CharacterTavern explains"` on mobile-webkit, mobile-chromium and desktop-chromium: 3 passed. - The same test against the old menu code fails: the source names start at 2 different x positions. - Manually verify on a phone: open **Download Cards**, tap the source button, and check that all names line up and that "Unavailable" shows in full under CharacterTavern. ## 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Improved provider menu alignment with a consistent icon column and selection indicator at the end of each row. * Grouped provider names with their availability labels, with “Unavailable” displayed beneath “CharacterTavern” and fitting within the menu. * Verified that the source menu layout remains clear when a provider is unavailable. <!-- 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-10-24 04:07:25 +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#7778
No description provided.