[PR #2004] [MERGED] Polish swipe jump controls #5384

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

📋 Pull Request Information

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

Base: refactor ← Head: ui/swipe-ui-polish


📝 Commits (4)

  • a3872a3 Polish swipe jump controls
  • 1a41d02 Address swipe review findings
  • 0efcf28 Refine swipe review sequencing
  • c788698 Guard swipe destructive preflight

📊 Changes

4 files changed (+132 additions, -35 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationMessage.tsx (+2 -0)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+1 -0)
📝 src/features/modes/shared/chat-ui/components/SwipeJumpControl.tsx (+53 -11)
📝 src/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts (+76 -24)

📄 Description

Linked issue

N/A

Why this change

  • Make the refactor swipe jump controls match the legacy editable jump behavior while avoiding a dropped-switch regression in tracker-enabled timelines.

What changed

  • Replaced the passive swipe counter with an editable jump input in shared chat UI.
  • Added per-surface input sizing for conversation and shared chat message layouts.
  • Flush tracker/world-state patches before switching swipes, then refresh visible world state after the switch.
  • Scope delayed swipe cancellation to the same message so unrelated timeline actions do not silently drop a pending switch.
  • Preserve accessible current-swipe announcements and avoid mouse-wheel value changes on the jump field.

Refactor impact

Primary owner:

Shared mode UI and shared chat timeline actions.

Impact areas reviewed:

  • Conversation, roleplay, and game paths that consume useChatTimelineActions.
  • Shared SwipeJumpControl render sites in conversation and shared chat message components.
  • Legacy counterpart in C:\MarinaraEngine for swipe jump UI and active swipe handling.

Boundary notes:

  • No engine, shared API, Rust command, or remote-runtime boundary changes.
  • Shared mode UI still receives mode-owned callbacks and does not import concrete mode orchestration.

Pressure points touched:

  • Shared mode UI.

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

  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • git diff --check passed.
  • pnpm check passed after rebasing onto current origin/refactor.
  • Native Tauri/manual UI verification not run; visual behavior and interaction feel still need a human pass.

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:

  • Existing swipe controls are polished/fixed; no new discoverable shell feature, setting, mode, panel, or workflow is added.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Not captured. This needs a native/manual UI pass before checking the human validation box.

Summary by CodeRabbit

  • New Features

    • Added input field to swipe jump control, allowing users to navigate directly to specific swipes by entering a number.
  • Improvements

    • Enhanced accessibility labels and descriptions for swipe navigation.
    • Improved request sequencing when switching between swipes for better reliability.

🔄 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/2004 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `ui/swipe-ui-polish` --- ### 📝 Commits (4) - [`a3872a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3872a322e92f62553e6e8b092dbe4f6a962058b) Polish swipe jump controls - [`1a41d02`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a41d028ba08051095d6a423c7d2d69d237a92f9) Address swipe review findings - [`0efcf28`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0efcf2831348ff968af9eb84ad6bcafc55fa9519) Refine swipe review sequencing - [`c788698`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c78869851245c1b169766fd018859d6ea18e5253) Guard swipe destructive preflight ### 📊 Changes **4 files changed** (+132 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationMessage.tsx` (+2 -0) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+1 -0) 📝 `src/features/modes/shared/chat-ui/components/SwipeJumpControl.tsx` (+53 -11) 📝 `src/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts` (+76 -24) </details> ### 📄 Description ## Linked issue N/A ## Why this change - Make the refactor swipe jump controls match the legacy editable jump behavior while avoiding a dropped-switch regression in tracker-enabled timelines. ## What changed - Replaced the passive swipe counter with an editable jump input in shared chat UI. - Added per-surface input sizing for conversation and shared chat message layouts. - Flush tracker/world-state patches before switching swipes, then refresh visible world state after the switch. - Scope delayed swipe cancellation to the same message so unrelated timeline actions do not silently drop a pending switch. - Preserve accessible current-swipe announcements and avoid mouse-wheel value changes on the jump field. ## Refactor impact Primary owner: Shared mode UI and shared chat timeline actions. Impact areas reviewed: - Conversation, roleplay, and game paths that consume `useChatTimelineActions`. - Shared `SwipeJumpControl` render sites in conversation and shared chat message components. - Legacy counterpart in `C:\MarinaraEngine` for swipe jump UI and active swipe handling. Boundary notes: - No engine, shared API, Rust command, or remote-runtime boundary changes. - Shared mode UI still receives mode-owned callbacks and does not import concrete mode orchestration. Pressure points touched: - Shared mode UI. ## 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 - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - `git diff --check` passed. - `pnpm check` passed after rebasing onto current `origin/refactor`. - Native Tauri/manual UI verification not run; visual behavior and interaction feel still need a human pass. ## 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: - Existing swipe controls are polished/fixed; no new discoverable shell feature, setting, mode, panel, or workflow is added. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Not captured. This needs a native/manual UI pass before checking the human validation box. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added input field to swipe jump control, allowing users to navigate directly to specific swipes by entering a number. * **Improvements** * Enhanced accessibility labels and descriptions for swipe navigation. * Improved request sequencing when switching between swipes for better reliability. <!-- 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:15:49 +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#5384
No description provided.