[PR #8345] [MERGED] fix(bot-browser): preserve tag picker scroll when reopening #8309

Closed
opened 2026-10-27 06:07:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8345
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/bot-browser-tag-scroll-8335


📝 Commits (3)

  • fc430b2 chore: start tag picker scroll preservation
  • 311631e fix(bot-browser): keep tag panel scroll when reopened
  • 51dbbf8 fix(bot-browser): reset tag scroll when provider changes

📊 Changes

2 files changed (+222 additions, -123 deletions)

View changed files

➕ e2e/bot-browser-tag-scroll.e2e.ts (+96 -0)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+126 -123)

📄 Description

Linked issue

Closes #8335. Implementation owner: @SpicyMarinara via Codex.

Why this change

Closing the tag panel in Browse character cards online removed its scrolling element. Reopening kept the selected filter but returned the list to the top, forcing users to find their previous position again.

What changed

Keep the existing tag sidebar mounted while closed and hide it with display: none. Reopening preserves its native scroll position and the existing selected tags. The closed panel stays outside layout, keyboard navigation and the accessibility tree. Changing the source provider remounts the sidebar so its unrelated tag list starts at the top. No persistent setting or scroll-restoration framework is added.

Add focused browser coverage for both close controls, the selected filter, exact scroll preservation and subsequent tag searching.

Validation

Completed at 51dbbf846:

  • pnpm install --frozen-lockfile and full pnpm check pass, including localization, formatting, TypeScript and the production build. One existing HomeProfessorMariChat hook warning remains; no new warning is introduced.
  • The unchanged implementation reproduced the reset in all six desktop/mobile, dark/light cases: saved offsets 1477/1520/1613 became 0. The repair passes all six cases across desktop Chromium, mobile Chromium and mobile WebKit, with both close controls, subsequent searching and a provider switch checked. Dottore’s confirmed LOW was reproduced on 311631ebc: the new provider retained offset 1493 instead of 0. The provider-specific React key repairs that case; all six extended rows pass.
  • Existing card-browser download/import/login coverage at prior head 311631ebc initially recorded 16 passes and two infrastructure failures. Both failures are explicit ENOSPC errors while writing screenshots/traces; their assertions and timeouts were not changed. The two affected cases pass on separate unchanged replays after bounded disk recovery.
  • pnpm smoke:ui: 7/7 passed. Compiled-production startup: 3/3 passed, across desktop Chromium, mobile Chromium and mobile WebKit. All fixture servers were stopped; the monitored replay stayed above the 150 MiB free-space stop boundary.
  • The original full local CodeRabbit review covered both changed files and reported one MAJOR about palette utilities. It is dismissed as pre-existing code: all 26 palette utility occurrences are identical to staging, in the same order; only the wrapper removal reindents that subtree. Independent source review supported that disposition. Dottore subsequently found the provider-switch LOW, which is repaired with the regression above. The focused local review of the 23-line follow-up against 311631ebc completed with 0 findings across both files.
  • The local full Docker build was attempted after the daemon became available. Disk exhaustion interrupted dependency installation with a BuildKit EOF; no complete image or container was produced. No global cache or user data was pruned. The prior-head 311631ebc hosted container-build-test now passes on Linux amd64. This is hosted image-build proof; a local container runtime result is not claimed. The final head must pass its own required checks and receive a viable Dottore Review before merging.

Human verification remains unchecked:

  • 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

  • Manually verify tag selection, closing and reopening on a physical Android device.

Automated mobile browser emulation does not establish physical-device proof. External card results are synthetic; no real provider or user save was used.

Docs and release impact

No user-facing wording, setting, storage format, documentation or release metadata changes.

UI evidence

Before/after desktop and mobile dark/light captures. Includes the additional provider-switch reproduction and repair. Each HTML file embeds the original PNG bytes; download/open it to view the comparison. Local failure logs and traces are retained separately.


🔄 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/8345 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/bot-browser-tag-scroll-8335` --- ### 📝 Commits (3) - [`fc430b2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc430b2f4cd3012a0ef225b9c445f0fdd01dce61) chore: start tag picker scroll preservation - [`311631e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/311631ebc40ee894671a78cb0a3d24b79c5b10f7) fix(bot-browser): keep tag panel scroll when reopened - [`51dbbf8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/51dbbf846b88b46594ef973115ae725ad2717435) fix(bot-browser): reset tag scroll when provider changes ### 📊 Changes **2 files changed** (+222 additions, -123 deletions) <details> <summary>View changed files</summary> ➕ `e2e/bot-browser-tag-scroll.e2e.ts` (+96 -0) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+126 -123) </details> ### 📄 Description ## Linked issue Closes #8335. Implementation owner: @SpicyMarinara via Codex. ## Why this change Closing the tag panel in Browse character cards online removed its scrolling element. Reopening kept the selected filter but returned the list to the top, forcing users to find their previous position again. ## What changed Keep the existing tag sidebar mounted while closed and hide it with `display: none`. Reopening preserves its native scroll position and the existing selected tags. The closed panel stays outside layout, keyboard navigation and the accessibility tree. Changing the source provider remounts the sidebar so its unrelated tag list starts at the top. No persistent setting or scroll-restoration framework is added. Add focused browser coverage for both close controls, the selected filter, exact scroll preservation and subsequent tag searching. ## Validation Completed at `51dbbf846`: - `pnpm install --frozen-lockfile` and full `pnpm check` pass, including localization, formatting, TypeScript and the production build. One existing `HomeProfessorMariChat` hook warning remains; no new warning is introduced. - The unchanged implementation reproduced the reset in all six desktop/mobile, dark/light cases: saved offsets 1477/1520/1613 became 0. The repair passes all six cases across desktop Chromium, mobile Chromium and mobile WebKit, with both close controls, subsequent searching and a provider switch checked. Dottore’s confirmed LOW was reproduced on `311631ebc`: the new provider retained offset 1493 instead of 0. The provider-specific React key repairs that case; all six extended rows pass. - Existing card-browser download/import/login coverage at prior head `311631ebc` initially recorded 16 passes and two infrastructure failures. Both failures are explicit ENOSPC errors while writing screenshots/traces; their assertions and timeouts were not changed. The two affected cases pass on separate unchanged replays after bounded disk recovery. - `pnpm smoke:ui`: **7/7 passed**. Compiled-production startup: **3/3 passed**, across desktop Chromium, mobile Chromium and mobile WebKit. All fixture servers were stopped; the monitored replay stayed above the 150 MiB free-space stop boundary. - The original full local CodeRabbit review covered both changed files and reported one MAJOR about palette utilities. It is dismissed as pre-existing code: all 26 palette utility occurrences are identical to staging, in the same order; only the wrapper removal reindents that subtree. Independent source review supported that disposition. Dottore subsequently found the provider-switch LOW, which is repaired with the regression above. The focused local review of the 23-line follow-up against `311631ebc` completed with **0 findings** across both files. - The local full Docker build was attempted after the daemon became available. Disk exhaustion interrupted dependency installation with a BuildKit EOF; no complete image or container was produced. No global cache or user data was pruned. The prior-head `311631ebc` [hosted `container-build-test`](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/40258947271/job/121366865178) now passes on Linux amd64. This is hosted image-build proof; a local container runtime result is not claimed. The final head must pass its own required checks and receive a viable Dottore Review before merging. Human verification remains unchecked: - [ ] `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 - [ ] Manually verify tag selection, closing and reopening on a physical Android device. Automated mobile browser emulation does not establish physical-device proof. External card results are synthetic; no real provider or user save was used. ## Docs and release impact No user-facing wording, setting, storage format, documentation or release metadata changes. ## UI evidence [Before/after desktop and mobile dark/light captures](https://gist.github.com/SpicyMarinara/00686a5793f87430abec27c3105d7585). Includes the additional provider-switch reproduction and repair. Each HTML file embeds the original PNG bytes; download/open it to view the comparison. Local failure logs and traces are retained separately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:35 +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#8309
No description provided.