mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2624] feat(regex): scoped-regex management polish — global-only Presets, character-card manager, group-name fix #1294
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#1294
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?
Originally created by @kolacheee on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2624
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Follow-up polish to the character-scoped regex feature (#2603, merged). Three coupled improvements so character-scoped scripts are managed where they belong instead of cluttering the global Presets list:
Presets → Regexes shows global scripts only. Today, character-scoped scripts (non-empty
targetCharacterIds) — including ST cards imported as "Character only" — still appear in the global Presets → Regexes list. They should be filtered out, leaving Presets as the global pool.Character-card scoped-regex manager. Hiding scoped scripts from Presets removes their only create/edit/delete surface (Chat Settings only toggles them), so add a "Regex Scripts" section to the Character editor's Advanced tab to list / create / edit / delete / import / export that character's scoped scripts. (1) and (2) are coupled — shipping (1) without (2) would strand scoped scripts.
Fix the Scoped Regex Scripts group labels. In Chat Settings → Scoped Regex Scripts, each per-character group is labeled the literal "Character" instead of the character's name (it reads the wrong field). Resolve the name via the standard display helper (
parseCharacterDisplayData).Why
#2603 shipped the scoped-regex feature, but scoped scripts still pollute the global Presets list, have no dedicated management home, and the per-character list mislabels its groups. This makes scoped regex behave as intended: scoped scripts live with the character; global scripts live in Presets.
Notes
RegexScriptEditorfor create/edit (a newopenRegexDetailoption pre-scopes new scripts to the character).pnpm check; manual verification in the browser (light/dark, empty states).