[PR #1733] [MERGED] Fix mobile onboarding sidebar target #5244

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/issue-1697-mobile-onboarding-target


📝 Commits (2)

  • 06bb857 Fix mobile onboarding sidebar target
  • 8fa7833 Clean up unused exports for CI

📊 Changes

27 files changed (+27 additions, -636 deletions)

View changed files

📝 knip.json (+1 -0)
📝 src/app/shell/TopBar.tsx (+1 -0)
📝 src/engine/contracts/constants/agent-activation.ts (+1 -1)
📝 src/engine/generation-core/llm/inline-thinking.ts (+0 -56)
📝 src/engine/generation/generate-route-utils.ts (+1 -1)
📝 src/engine/generation/tools-runtime.ts (+1 -1)
📝 src/engine/mari/mari-history.ts (+1 -1)
📝 src/engine/modes/game/assets/npc-avatar-utils.ts (+1 -1)
➖ src/engine/modes/game/state/segment-edits.ts (+0 -426)
📝 src/engine/shared/game-state/player-stats.ts (+1 -1)
📝 src/engine/shared/scoring/skill-check-format.ts (+0 -14)
📝 src/features/catalog/agents/components/AgentEditor.test.tsx (+1 -0)
📝 src/features/catalog/characters/lib/character-import-file-classifier.ts (+1 -1)
📝 src/features/catalog/characters/lib/character-search.ts (+0 -59)
📝 src/features/catalog/characters/lib/characters-panel-model.ts (+1 -1)
📝 src/features/catalog/chat-presets/hooks/use-chat-presets.ts (+1 -1)
📝 src/features/catalog/gallery/hooks/use-gallery.ts (+4 -4)
📝 src/features/catalog/personas/lib/personas-panel-model.ts (+1 -1)
📝 src/features/modes/game/lib/game-audio.ts (+1 -1)
📝 src/features/modes/game/lib/game-metadata-persistence.ts (+0 -23)

...and 7 more files

📄 Description

Linked issue

Closes #1697

Why this change

  • On mobile, the onboarding tutorial's "Chats Sidebar" step targeted the hidden desktop titlebar sidebar toggle, so the highlight anchored to a 0x0 element instead of the visible mobile menu control.

What changed

  • Added the existing sidebar-toggle tour marker to the mobile topbar "Open chats" button so the onboarding target resolver can choose the visible mobile control.
  • Fixed the frontend CI blocker by updating the AgentEditor test mock for the current use-agents hook contract.
  • Cleaned up stale unused exports/files so pnpm check:unused and the frontend CI lane pass again.

Refactor impact

Primary owner:

  • App shell

Impact areas reviewed:

  • Mobile TopBar chat/menu control
  • Onboarding tutorial data-tour target selection
  • Desktop titlebar sidebar toggle behavior
  • Frontend CI/test-only agent editor mock
  • Unused export cleanup reported by Knip

Boundary notes:

  • App shell behavior change plus mechanical unused-code cleanup. No shared API routing, Rust command, storage schema, dependency, auth, remote runtime, or prompt-pipeline boundary changes.

Pressure points touched:

  • Mobile app shell top bar.
  • Knip unused-export surface.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • 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
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex proof: node scratch\issue-1697-onboarding-target.mjs --expect-broken reproduced the mobile bug before the fix at 390x844: one sidebar-toggle target, zero visible targets, and a 0x0 desktop titlebar rect.
  • Codex proof: node scratch\issue-1697-onboarding-target.mjs --expect-fixed passed after the fix at 390x844: two sidebar-toggle targets, one visible target in TopBar, rect 44x44.
  • Codex proof: node scratch\issue-1697-onboarding-target.mjs --desktop --expect-fixed passed after the fix at 1280x900: the visible desktop titlebar toggle remains the chosen target while the mobile topbar is hidden.
  • pnpm check passed.
  • pnpm lint passed with existing warnings only.
  • pnpm test passed: 23 files, 93 tests.
  • pnpm build passed.
  • pnpm perf:size passed.
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json passed.

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:

Before: mobile onboarding targets hidden desktop sidebar toggle

After:

After: mobile onboarding targets visible topbar menu button


🔄 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/1733 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1697-mobile-onboarding-target` --- ### 📝 Commits (2) - [`06bb857`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06bb857239e3ac9132659d69d3266fcbe0eb7d66) Fix mobile onboarding sidebar target - [`8fa7833`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8fa783394d05f7904ad68f9182be8c7feb4f835c) Clean up unused exports for CI ### 📊 Changes **27 files changed** (+27 additions, -636 deletions) <details> <summary>View changed files</summary> 📝 `knip.json` (+1 -0) 📝 `src/app/shell/TopBar.tsx` (+1 -0) 📝 `src/engine/contracts/constants/agent-activation.ts` (+1 -1) 📝 `src/engine/generation-core/llm/inline-thinking.ts` (+0 -56) 📝 `src/engine/generation/generate-route-utils.ts` (+1 -1) 📝 `src/engine/generation/tools-runtime.ts` (+1 -1) 📝 `src/engine/mari/mari-history.ts` (+1 -1) 📝 `src/engine/modes/game/assets/npc-avatar-utils.ts` (+1 -1) ➖ `src/engine/modes/game/state/segment-edits.ts` (+0 -426) 📝 `src/engine/shared/game-state/player-stats.ts` (+1 -1) 📝 `src/engine/shared/scoring/skill-check-format.ts` (+0 -14) 📝 `src/features/catalog/agents/components/AgentEditor.test.tsx` (+1 -0) 📝 `src/features/catalog/characters/lib/character-import-file-classifier.ts` (+1 -1) 📝 `src/features/catalog/characters/lib/character-search.ts` (+0 -59) 📝 `src/features/catalog/characters/lib/characters-panel-model.ts` (+1 -1) 📝 `src/features/catalog/chat-presets/hooks/use-chat-presets.ts` (+1 -1) 📝 `src/features/catalog/gallery/hooks/use-gallery.ts` (+4 -4) 📝 `src/features/catalog/personas/lib/personas-panel-model.ts` (+1 -1) 📝 `src/features/modes/game/lib/game-audio.ts` (+1 -1) 📝 `src/features/modes/game/lib/game-metadata-persistence.ts` (+0 -23) _...and 7 more files_ </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 #1697 ## Why this change - On mobile, the onboarding tutorial's "Chats Sidebar" step targeted the hidden desktop titlebar sidebar toggle, so the highlight anchored to a 0x0 element instead of the visible mobile menu control. ## What changed - Added the existing `sidebar-toggle` tour marker to the mobile topbar "Open chats" button so the onboarding target resolver can choose the visible mobile control. - Fixed the frontend CI blocker by updating the AgentEditor test mock for the current `use-agents` hook contract. - Cleaned up stale unused exports/files so `pnpm check:unused` and the frontend CI lane pass again. ## Refactor impact Primary owner: - App shell Impact areas reviewed: - Mobile `TopBar` chat/menu control - Onboarding tutorial `data-tour` target selection - Desktop titlebar sidebar toggle behavior - Frontend CI/test-only agent editor mock - Unused export cleanup reported by Knip Boundary notes: - App shell behavior change plus mechanical unused-code cleanup. No shared API routing, Rust command, storage schema, dependency, auth, remote runtime, or prompt-pipeline boundary changes. Pressure points touched: - Mobile app shell top bar. - Knip unused-export surface. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `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 - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex proof: `node scratch\issue-1697-onboarding-target.mjs --expect-broken` reproduced the mobile bug before the fix at 390x844: one `sidebar-toggle` target, zero visible targets, and a 0x0 desktop titlebar rect. - Codex proof: `node scratch\issue-1697-onboarding-target.mjs --expect-fixed` passed after the fix at 390x844: two `sidebar-toggle` targets, one visible target in `TopBar`, rect 44x44. - Codex proof: `node scratch\issue-1697-onboarding-target.mjs --desktop --expect-fixed` passed after the fix at 1280x900: the visible desktop titlebar toggle remains the chosen target while the mobile topbar is hidden. - `pnpm check` passed. - `pnpm lint` passed with existing warnings only. - `pnpm test` passed: 23 files, 93 tests. - `pnpm build` passed. - `pnpm perf:size` passed. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` passed. ## 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: ![Before: mobile onboarding targets hidden desktop sidebar toggle](https://gist.githubusercontent.com/cha1latte/4c7a13312abe2cd28a5a9fab544aa52a/raw/78c85bf62d39054cc51a5aca8cd0753908217f92/issue-1697-mobile-broken.svg) After: ![After: mobile onboarding targets visible topbar menu button](https://gist.githubusercontent.com/cha1latte/4c7a13312abe2cd28a5a9fab544aa52a/raw/86cf16b7e5351d0d75a732844f9c0444a6e8d10c/issue-1697-mobile-fixed.svg) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:33 +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#5244
No description provided.