feat: add backend avatar provider for move-elevator.de users#17
Conversation
|
Warning Review limit reached
More reviews will be available in 8 minutes and 31 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR introduces a backend avatar provider that assigns a configured SVG logo as a fallback avatar for TYPO3 backend users with Move Elevator email addresses, provided the user has no existing avatar. The feature is wired into the TYPO3 backend avatar system and documented. ChangesBackend Avatar Provider
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Classes/Backend/Avatar/MoveElevatorAvatarProvider.php`:
- Around line 30-34: Replace the deprecated
PathUtility::getPublicResourceWebPath call in MoveElevatorAvatarProvider (where
Image is constructed) with the modern PathUtility::getSystemResourceUri API:
locate the Image(...) instantiation that currently calls
PathUtility::getPublicResourceWebPath(self::LOGO_PATH) and change it to call
PathUtility::getSystemResourceUri(self::LOGO_PATH) so the Image receives the
correct system resource URI; keep the same $size parameters and class constants
(Image, self::LOGO_PATH) unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: cc8fb26e-dccf-423b-992b-0b27f113e9fb
⛔ Files ignored due to path filters (2)
Resources/Public/Icons/me.pngis excluded by!**/*.pngResources/Public/Icons/me.svgis excluded by!**/*.svg
📒 Files selected for processing (3)
Classes/Backend/Avatar/MoveElevatorAvatarProvider.phpREADME.mdext_localconf.php
|
@konradmichalik der cgl job scheint noch Fehler zu werfen |
|
Jetzt läuft die Pipeline durch. |
Summary
@move-elevator.deChanges
Classes/Backend/Avatar/MoveElevatorAvatarProvider.php— newAvatarProviderInterfaceimplementation that matches on the email domain and returns the bundled logo when no custom avatar is configuredext_localconf.php— registers the provider viaSC_OPTIONS['t3lib/class.t3lib_befunc.php']['getBackendUserAvatar']Resources/Public/Icons/me.svg/me.png— move elevator logo assets used as the avatar imageREADME.md— feature bullet and documentation section "Backend Avatar"Summary by CodeRabbit
Release Notes
New Features
Documentation