[PR #1220] [MERGED] Add roleplay setup back navigation #4990

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

📋 Pull Request Information

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

Base: refactor ← Head: feat/refactor-issue-1219-setup-back


📝 Commits (1)

  • 3d87a08 Add roleplay setup back navigation

📊 Changes

3 files changed (+25 additions, -6 deletions)

View changed files

➕ docs/pr-evidence/issue-1219/after-back.png (+0 -0)
➕ docs/pr-evidence/issue-1219/before-back.png (+0 -0)
📝 src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx (+25 -6)

📄 Description

Linked issue

Closes #1219

Why this change

  • Roleplay setup was a one-way wizard once users advanced past a step, so changing earlier persona/setup choices required skipping or restarting the popup.

What changed

  • Added a Back icon button to the normal roleplay setup wizard after the first step.
  • Back navigation moves to the previous setup step and clears transient character/lorebook search text so stale filters do not carry between steps.
  • Added scoped PR evidence screenshots for the verified Persona -> Preset back-navigation path.

Refactor impact

Primary owner:

  • Shared mode UI / roleplay setup wizard.

Impact areas reviewed:

  • Roleplay setup wizard footer controls.
  • Shortcut setup view, which already had its own Back affordance and remains unchanged.
  • Remote runtime/Tauri/storage boundaries; no storage or backend behavior changed.

Boundary notes:

  • Client UI only. No engine, shared API, Rust, storage, prompt assembly, schema, dependency, or release metadata changes.

Pressure points touched:

  • ChatSetupWizard.tsx in shared mode UI.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran node scratch\issue-1219-back-navigation.mjs against the real Vite app with a mock remote runtime. The proof clicked Roleplay, confirmed no Back button on the first setup step, advanced to Select Your Persona, clicked Back, and confirmed the wizard returned to Pick a Preset.
  • Codex ran pnpm check, which completed check:architecture, check:frontend, check:rust, and check:docs successfully.
  • Manual human follow-up, if desired: visually spot-check the footer on a narrow mobile viewport.

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

Before clicking Back from the Persona step:

Roleplay setup Persona step before Back

After clicking Back, returned to the Preset step:

Roleplay setup Preset step after Back


🔄 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/1220 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/26/2026 **Status:** ✅ Merged **Merged:** 5/26/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `feat/refactor-issue-1219-setup-back` --- ### 📝 Commits (1) - [`3d87a08`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d87a08f9cc54f598dc6e78655d645d9030c933c) Add roleplay setup back navigation ### 📊 Changes **3 files changed** (+25 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1219/after-back.png` (+0 -0) ➕ `docs/pr-evidence/issue-1219/before-back.png` (+0 -0) 📝 `src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx` (+25 -6) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1219 ## Why this change - Roleplay setup was a one-way wizard once users advanced past a step, so changing earlier persona/setup choices required skipping or restarting the popup. ## What changed - Added a Back icon button to the normal roleplay setup wizard after the first step. - Back navigation moves to the previous setup step and clears transient character/lorebook search text so stale filters do not carry between steps. - Added scoped PR evidence screenshots for the verified Persona -> Preset back-navigation path. ## Refactor impact Primary owner: - Shared mode UI / roleplay setup wizard. Impact areas reviewed: - Roleplay setup wizard footer controls. - Shortcut setup view, which already had its own Back affordance and remains unchanged. - Remote runtime/Tauri/storage boundaries; no storage or backend behavior changed. Boundary notes: - Client UI only. No engine, shared API, Rust, storage, prompt assembly, schema, dependency, or release metadata changes. Pressure points touched: - `ChatSetupWizard.tsx` in shared mode UI. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `node scratch\issue-1219-back-navigation.mjs` against the real Vite app with a mock remote runtime. The proof clicked Roleplay, confirmed no Back button on the first setup step, advanced to `Select Your Persona`, clicked Back, and confirmed the wizard returned to `Pick a Preset`. - Codex ran `pnpm check`, which completed `check:architecture`, `check:frontend`, `check:rust`, and `check:docs` successfully. - Manual human follow-up, if desired: visually spot-check the footer on a narrow mobile viewport. ## 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 Before clicking Back from the Persona step: ![Roleplay setup Persona step before Back](https://github.com/cha1latte/Marinara-Engine/blob/feat/refactor-issue-1219-setup-back/docs/pr-evidence/issue-1219/before-back.png?raw=1) After clicking Back, returned to the Preset step: ![Roleplay setup Preset step after Back](https://github.com/cha1latte/Marinara-Engine/blob/feat/refactor-issue-1219-setup-back/docs/pr-evidence/issue-1219/after-back.png?raw=1) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:16 +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#4990
No description provided.