mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1600] [MERGED] Fix five catalog/agent editor UX bugs #5135
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#5135
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/1600
Author: @Romuromylus
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Romuromylus
Base:
refactor← Head:fix/catalog-editor-ux📝 Commits (10+)
04c9141Normalize character data on editor load so malformed cards don't crash2ca4c77Read regex script enabled and promptOnly as booleans in the agents UI11c4700Dock the agent debug overlay clear of the editor bodye3a5fabLet the agent editor header name input shrink on narrow viewports7b41980Restore the catalog panel when closing the agent editor on mobile7a04d91Apply enabled regex scripts on the live transform path9684041Fill extension defaults on the character editor parse-failure fallbackfb31583Merge branch 'refactor' into fix/catalog-editor-ux8e57665Treat the legacy "1" string as enabled in the regex readersb2d5150Merge branch 'refactor' into fix/catalog-editor-ux📊 Changes
15 files changed (+729 additions, -12 deletions)
View changed files
➕
src/features/catalog/agents/components/AgentDebugPanel.test.tsx(+91 -0)📝
src/features/catalog/agents/components/AgentDebugPanel.tsx(+4 -1)➕
src/features/catalog/agents/components/AgentEditor.test.tsx(+146 -0)📝
src/features/catalog/agents/components/AgentEditor.tsx(+1 -1)➕
src/features/catalog/agents/components/AgentsPanel.test.tsx(+142 -0)📝
src/features/catalog/agents/components/AgentsPanel.tsx(+2 -1)📝
src/features/catalog/agents/components/RegexScriptEditor.tsx(+3 -2)📝
src/features/catalog/agents/hooks/use-regex-scripts.ts(+4 -2)➕
src/features/catalog/agents/regex-application.test.tsx(+73 -0)📝
src/features/catalog/agents/regex-application.ts(+4 -2)➕
src/features/catalog/characters/components/CharacterEditor.test.tsx(+148 -0)📝
src/features/catalog/characters/components/CharacterEditor.tsx(+24 -1)➕
src/shared/stores/ui.store.test.ts(+71 -0)📝
src/shared/stores/ui.store.ts(+5 -1)📝
src/shared/stores/ui/model.ts(+11 -1)📄 Description
Why this change
Five UX/correctness bugs in the catalog editors (characters + agents), reported against the refactor. Grouped because they share the catalog-editor surface and are each small, isolated fixes.
What changed
CharacterEditorset form state straight from raw storage data, so a card whosedatahad noextensionsobject threw aTypeErroron the firstformData.extensions.*read and the editor never mounted. Loaded data now goes through the enginecharacterDataSchema, soextensionsand its defaults always exist. The parse-failure fallback (e.g. a card with no name) also normalizesextensionsthroughcharacterExtensionsSchema, so nested defaults exist and sliders don't renderNaN%.parseScript->useApplyRegex, used on send and on display) all comparedenabled/promptOnlyagainst the string"true", but storage round-trips a real boolean. So enabled scripts both rendered as disabled in the list AND never transformed text. All readers now use a boolean-tolerant check, and the row type matches the stored shape.min-w-0to the header name input so it can shrink instead of pushing Save/Delete offscreen on narrow viewports.Verification
pnpm check:architecture(dependency-cruiser boundary guard) andpnpm check:frontend(tsc -b) pass on this branch.ai_output/user_inputtext (#1555).invokefor behaviour.Follow-ups (deferred, not blocking)
openDetailRouteState. Scoped this PR to the Agents flow as reported;mobilePanelReopenPatch()is exported and ready to extend.Linked issues
Closes #1559
Closes #1555
Closes #1553
Closes #1556
Closes #1554
Summary by CodeRabbit
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.