Repository navigation
🐛 fix(bots): keep missing saved timeline images and center time fields (#692) - #357
Merged
Merged
Conversation
pingdotgg#692) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Review (Lukas): approved, merging into
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of notFrost/sophie#692 (phase 4, stage B2c).
Fixes
1. A missing saved image no longer blocks Save (spec §3).
storeImagerejected any stored reference whose file was gone, so once a timeline image's file disappeared, every save of that Bot's rules failed until the user removed or replaced that tile.storeIconRulesnow takes the Bot's saved rules. A reference already in the saved timelines skips the file check and stays in the record as-is. A reference not in the saved rules is still rejected if its file is missing. The png/jpeg/webp type check still runs on every reference. The Default Icon path (storeIcon) andremoveAvatarsExcept/avatarPathare unchanged.2. Time fields are centered (spec §2.5).
BotIconTimeFieldnow centers its text by default, so the timeline start fields and the shapesafterfield both pick it up.Verification
New BotService test: saving rules that keep a saved reference whose file was deleted succeeds and keeps the reference, and an unknown reference with no file is still rejected. Before the fix this test failed with
This Bot has no stored avatar with that reference.vp run typecheck:vp test run apps/server/src/bots:No Windows worktree failures this run.
env -u NODE_ENV vp test run src/components/bots/BotIconRuleParts.browser.test.tsx(adds atext-align: centerassertion):Pre-commit hook: fmt, lint and knip all passed.
Out of scope
No changes to
BotAvatar.tsx,BotRuleShapesSection.tsx, contracts, the display or the evaluator.🤖 Generated with Claude Code