[PR #2079] [MERGED] feat: redesign RecentChats as tappable cards for mobile #5421

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2079
Author: @Gunterlie
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/mobile-recent-chats-cards


📝 Commits (5)

  • d707562 feat: redesign RecentChats as tappable cards for mobile
  • 7b090a5 fix: remove unused cn import and correct thumbnailSize type
  • c1f0896 fix: restore Array.isArray guard on characterIds normalization
  • 7817f61 fix: apply consistent Array.isArray guard in card render path
  • 21ea2a2 fix: normalize characterIds once with Array.isArray guard in RecentChatCard

📊 Changes

1 file changed (+44 additions, -115 deletions)

View changed files

📝 src/features/modes/router/components/RecentChats.tsx (+44 -115)

📄 Description

Linked issue

Closes #2076

Why this change

  • The Recent Chats row rendered as tiny compact chips (~32 px tall, 20 px avatar) on mobile — avatars were illegible and touch targets were well under the 44 px minimum.
  • No mode label was shown, making it hard to tell at a glance what type of chat each entry was.

What changed

  • Replaced chip row with full-width tappable cards in RecentChats.tsx.
  • Avatar: 40×40 px (h-10 w-10), rounded-xl; thumbnail size bumped to 80.
  • Mode dot moved to bottom-right of avatar (was top-left), sized up to 16×16 px.
  • Mode label added as secondary text below the chat name.
  • min-w-0 on card button — all three cards share width equally regardless of text length.
  • Touch target: full card width, py-2.5 — well over 44 px.
  • Layout: stacked column on mobile, side-by-side row on sm+; inner row is w-full.
  • Container: w-full px-3 pt-3 — aligns side padding with QuickStart and DiscoverPanel; adds breathing room above section.
  • "Recent" label centered.

Refactor impact

Primary owner: chat mode / mode router

Impact areas reviewed:

  • Mode home surface recent chats display

Boundary notes:

  • None — isolated to RecentChats.tsx. No store, catalog, or shared API changes.

Pressure points touched:

  • ModeSurface / ModeHomeSurface — RecentChats is rendered inline; layout change only.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Verified at 390 px: three equal-width cards, avatars readable, touch targets comfortable.
  • Verified on desktop: cards render side by side, full width, long names truncate correctly.
  • Clicking a card navigates to the correct chat.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Visual polish / mobile usability fix — no new feature surface added.

Docs and release impact

  • No docs changes needed

UI evidence

before mobile:
chips before

mobile:
chips after mobile

desktop:
chips after desktop


🔄 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/2079 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/mobile-recent-chats-cards` --- ### 📝 Commits (5) - [`d707562`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d707562dfd7a6492c49866a8adc2877f95fe7d89) feat: redesign RecentChats as tappable cards for mobile - [`7b090a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7b090a56604f5a100eca017297787d879d08b777) fix: remove unused cn import and correct thumbnailSize type - [`c1f0896`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1f08961ad787fbc707d24e53e6c2049e058f04b) fix: restore Array.isArray guard on characterIds normalization - [`7817f61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7817f61b130f9b1cd9436759cc17147dc2714a68) fix: apply consistent Array.isArray guard in card render path - [`21ea2a2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21ea2a2a67e65d6f0e0621e2f35295e47205ac7b) fix: normalize characterIds once with Array.isArray guard in RecentChatCard ### 📊 Changes **1 file changed** (+44 additions, -115 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/router/components/RecentChats.tsx` (+44 -115) </details> ### 📄 Description ## Linked issue Closes #2076 ## Why this change - The Recent Chats row rendered as tiny compact chips (~32 px tall, 20 px avatar) on mobile — avatars were illegible and touch targets were well under the 44 px minimum. - No mode label was shown, making it hard to tell at a glance what type of chat each entry was. ## What changed - Replaced chip row with full-width tappable cards in `RecentChats.tsx`. - Avatar: 40×40 px (`h-10 w-10`), rounded-xl; thumbnail size bumped to 80. - Mode dot moved to bottom-right of avatar (was top-left), sized up to 16×16 px. - Mode label added as secondary text below the chat name. - `min-w-0` on card button — all three cards share width equally regardless of text length. - Touch target: full card width, `py-2.5` — well over 44 px. - Layout: stacked column on mobile, side-by-side row on `sm+`; inner row is `w-full`. - Container: `w-full px-3 pt-3` — aligns side padding with QuickStart and DiscoverPanel; adds breathing room above section. - "Recent" label centered. ## Refactor impact Primary owner: chat mode / mode router Impact areas reviewed: - Mode home surface recent chats display Boundary notes: - None — isolated to `RecentChats.tsx`. No store, catalog, or shared API changes. Pressure points touched: - `ModeSurface` / `ModeHomeSurface` — `RecentChats` is rendered inline; layout change only. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [x] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Verified at 390 px: three equal-width cards, avatars readable, touch targets comfortable. - Verified on desktop: cards render side by side, full width, long names truncate correctly. - Clicking a card navigates to the correct chat. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Visual polish / mobile usability fix — no new feature surface added. ## Docs and release impact - [x] No docs changes needed ## UI evidence before mobile: <img width="427" height="62" alt="chips before" src="https://github.com/user-attachments/assets/586e256e-85f2-4d35-8fdf-d758fb5adf34" /> mobile: <img width="422" height="360" alt="chips after mobile" src="https://github.com/user-attachments/assets/745f1bf6-58ac-499b-835c-b5bf657d6c0e" /> desktop: <img width="739" height="277" alt="chips after desktop" src="https://github.com/user-attachments/assets/84e2167a-a59a-41b0-9a60-898ee963b6ed" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:10 +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#5421
No description provided.