mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #717] [MERGED] feat(game-setup): allow removing learned chips in Game Setup wizard #4742
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#4742
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/717
Author: @Romuromylus
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @Romuromylus
Base:
main← Head:fix/game-setup-forget-learned-options📝 Commits (1)
eb988fafeat(game-setup): allow removing learned chips📊 Changes
2 files changed (+46 additions, -6 deletions)
View changed files
📝
packages/client/src/components/game/GameSetupWizard.tsx(+32 -6)📝
packages/client/src/stores/ui.store.ts(+14 -0)📄 Description
Linked issue
Closes #716
Why this change
localStorage.What changed
packages/client/src/stores/ui.store.ts: newforgetGameSetupOption(group, value)action that filters the named learned array by normalized key and persists via the existing Zustandpersistmiddleware.packages/client/src/components/game/GameSetupWizard.tsx:LearnedOptionChipsnow renders each chip as a wrapper containing two buttons — the existing select-on-click body plus a small forget × on the right (lucideX,aria-label="Forget <value>"). The × isopacity-40by default andopacity-100on hover/focus, matching the visual weight of the chips around it without grabbing attention.onForgetis wired into all five callsites (genres / tones / settings / goals / preferences). Built-in suggestion chips (e.g. "A neon-lit city of hackers and megacorps") and the currently-selected custom-genre/tone chips at the top are unchanged — only the learned list gets the × forget button.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Skyrim, complete the wizard, reopen →Skyrimshows as a learned chip with a faint × on the right.+N morecollapses by one. Click the chip body itself (not the ×) and confirm it still applies the value to the Setting input.persistwrites tolocalStorage).Docs and release impact
UI evidence (if applicable)
Tested live on a self-hosted EasyPanel deployment of the fork. Before: every learned chip is select-only. After: each learned chip gets a faint × on the right that brightens on hover/focus; clicking it removes that single entry from the persisted list while leaving every other chip and the built-in suggestions untouched.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.