[PR #810] [MERGED] Add direct swipe number jumping #4782

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/810
Author: @cha1latte
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @cha1latte

Base: main ← Head: feat/issue-754-greeting-swipe-jump


📝 Commits (2)

  • 96892c2 Add swipe jump control
  • bb8b290 Add swipe jump visual evidence

📊 Changes

5 files changed (+143 additions, -124 deletions)

View changed files

➕ docs/pr-evidence/issue-754/swipe-1-before.png (+0 -0)
➕ docs/pr-evidence/issue-754/swipe-4-after.png (+0 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+20 -60)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+19 -64)
➕ packages/client/src/components/chat/SwipeJumpControl.tsx (+104 -0)

📄 Description

Linked issue

Closes #754

Why this change

  • Users with many alternate greetings or message swipes need a direct way to jump to a specific swipe number instead of clicking through one at a time.

What changed

  • Added a shared SwipeJumpControl for message swipe navigation.
  • Replaced duplicated previous/next swipe controls in roleplay and conversation message surfaces with the shared control.
  • Added a numeric swipe input that switches the active swipe immediately when a valid number is entered.

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

  • Codex ran pnpm check; it passed.
  • Codex created a local proof roleplay chat with five greeting swipes.
  • In the running app, Codex opened the proof chat and verified the message initially showed Greeting 1 proof with the jump input at 1 / 5.
  • Codex typed 4 into the jump input and verified the message switched to Greeting 4 proof, the input showed 4 / 5, and the server message state reported activeSwipeIndex: 3.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release metadata, schema, or version files changed.

UI evidence (if applicable)

Before jumping, swipe 1 is active:

Swipe 1 before jump

After typing 4 in the jump input, swipe 4 is active:

Swipe 4 after jump

These screenshots were captured from the running Marinara app against a five-swipe proof roleplay chat.

Summary by CodeRabbit

  • New Features

    • Added numeric input option to jump directly to specific message versions, complementing navigation buttons.
  • Improvements

    • Unified message swipe navigation across all chat modes for a consistent user experience with enhanced accessibility controls.

Review Change Stack


🔄 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/810 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/13/2026 **Status:** ✅ Merged **Merged:** 5/13/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `feat/issue-754-greeting-swipe-jump` --- ### 📝 Commits (2) - [`96892c2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/96892c2d0f050de81685bd971ad02602ef42c2ba) Add swipe jump control - [`bb8b290`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bb8b290a300ec8910caf630b99fbad9865d68be2) Add swipe jump visual evidence ### 📊 Changes **5 files changed** (+143 additions, -124 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-754/swipe-1-before.png` (+0 -0) ➕ `docs/pr-evidence/issue-754/swipe-4-after.png` (+0 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+20 -60) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+19 -64) ➕ `packages/client/src/components/chat/SwipeJumpControl.tsx` (+104 -0) </details> ### 📄 Description ## Linked issue Closes #754 ## Why this change - Users with many alternate greetings or message swipes need a direct way to jump to a specific swipe number instead of clicking through one at a time. ## What changed - Added a shared `SwipeJumpControl` for message swipe navigation. - Replaced duplicated previous/next swipe controls in roleplay and conversation message surfaces with the shared control. - Added a numeric swipe input that switches the active swipe immediately when a valid number is entered. ## 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 - Codex ran `pnpm check`; it passed. - Codex created a local proof roleplay chat with five greeting swipes. - In the running app, Codex opened the proof chat and verified the message initially showed `Greeting 1 proof` with the jump input at `1 / 5`. - Codex typed `4` into the jump input and verified the message switched to `Greeting 4 proof`, the input showed `4 / 5`, and the server message state reported `activeSwipeIndex: 3`. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, release metadata, schema, or version files changed. ## UI evidence (if applicable) Before jumping, swipe 1 is active: ![Swipe 1 before jump](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bb8b290a300ec8910caf630b99fbad9865d68be2/docs/pr-evidence/issue-754/swipe-1-before.png) After typing `4` in the jump input, swipe 4 is active: ![Swipe 4 after jump](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bb8b290a300ec8910caf630b99fbad9865d68be2/docs/pr-evidence/issue-754/swipe-4-after.png) These screenshots were captured from the running Marinara app against a five-swipe proof roleplay chat. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added numeric input option to jump directly to specific message versions, complementing navigation buttons. * **Improvements** * Unified message swipe navigation across all chat modes for a consistent user experience with enhanced accessibility controls. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/810) <!-- review_stack_entry_end --> <!-- 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-22 04:10:37 +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#4782
No description provided.