mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #61] [MERGED] feat: bot browser improvements — PNG download, JanitorAI gating, persistent state #4430
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/61
Author: @LukaTheHero
Created: 4/5/2026
Status: ✅ Merged
Merged: 4/5/2026
Merged by: @LukaTheHero
Base:
main← Head:feature/bot-browser-improvements📝 Commits (1)
7c09fbefeat: download as PNG, JanitorAI import gating, session expiry detection, persistent browser state📊 Changes
2 files changed (+277 additions, -9 deletions)
View changed files
📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+255 -5)📝
packages/client/src/components/layout/AppShell.tsx(+22 -4)📄 Description
What's new
1. Download as PNG Character Card (all providers)
2. JanitorAI Import/Download Gating
3. JanitorAI Session Expiry Detection
4. Persistent Browser State
Files changed
packages/client/src/components/bot-browser/BotBrowserView.tsx— PNG builder, button gating, session checkpackages/client/src/components/layout/AppShell.tsx— persistent mount wrapper for bot browserTechnical Notes on Persistent Mount
The
BotBrowserPersistentwrapper uses a simple pattern:everOpenedflag). Before that, it rendersnull— zero cost.className="hidden"(Tailwind'sdisplay: none). This means:Will this cause lag?
No. A
display: noneelement is effectively invisible to the browser's rendering pipeline — it's skipped during layout, paint, and compositing. The only cost is the DOM nodes staying in memory, which for a search results page is negligible (a few hundred KB at most). This is the same pattern used by browser tab managers, VS Code panels, and Discord's own channel switching. The component does absolutely nothing while hidden — no network requests, no timers, no re-renders. The only moment it "wakes up" is when the user opens the bot browser again, at which point the browser simply flips it back todisplay: flexand the already-rendered content appears instantly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.