fix/avatar crop scaling#1169
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA new ChangesAvatar Component Consolidation
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly Related PRs
Suggested Labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: lockfile failed supply-chain policy check. Run Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Migrated from Pasta-Devs/Marinara-Engine-Refactor#55: Pasta-Devs/Marinara-Engine-Refactor#55
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: True
Port note: source updates/tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance.
Linked issue
Fixes #1158
Original migrated source issue: Pasta-Devs/Marinara-Engine-Refactor#35.
Why this change
Character library avatars should follow one explicit crop display contract. The old library and panel paths could pass a persisted JSON-string
avatarCropdirectly into the crop style helper, which produced invalid crop sizing and could render squished full-image avatars instead of the stored crop.What changed
CharacterAvatarImagehelper in the React character feature.object-coverfallback for missing or invalid crop data.Validation
pnpm checkpnpm buildcargo check --manifest-path src-tauri/Cargo.tomlpnpm check:docswhen docs, skills, or repo guidance changedpnpm tauri devand tested the app path manuallyCodex verification notes
object-fit: fill, then verified the shared helper renders the same persisted string crop as 320x160 absolute crop geometry.object-cover.pnpm checkpassed locally: architecture, frontend typecheck, Rust cargo check, and docs check.pnpm buildpassed locally. Vite reported existing chunk-size/dynamic-import warnings.scratch/bugfix-verification.json.Manual verification notes
No manual verification needed for the core claim. The local proof uses a Vite-served React harness importing the production
CharacterAvatarImagehelper because the browser-only dev app cannot list local Tauri storage rows without the Tauri runtime.Docs impact
docs/developer/*or repo guidance as neededUI evidence
Summary by CodeRabbit