. #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SheWhoReignsSupreme/revenge-plugins#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fshinz/main"
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?
Summary by CodeRabbit
📝 Walkthrough
Walkthrough
The patch improves notification-button resolution and detection. It supports Bell icon fallbacks, localized inbox labels, component metadata, and conditional rendering of the original notification button.
Changes
Notification button handling
plugins/you-bar-plus/src/patches/youBarButtons.tsxfindByTypeName, resolvesNotificationBellIconwhen needed, and matches the target component by resolved type,name, ordisplayName.plugins/you-bar-plus/src/patches/youBarButtons.tsxnotificationsandinboxlabels or the resolved Bell icon. The existing storage guard andopenInboxhandler remain active. The original button renders unlessshowInboxButtonisfalse.Estimated code review effort: 2 (Simple) | ~10 minutes
Mergeability Score: 🟡 Moderate · up to
53a91The button-matching change can redirect unrelated buttons to the inbox when the Bell icon is unavailable, creating incorrect user interactions. The PR should not merge until that guard is added; localized button coverage also needs owner confirmation.
Suggested reviewers:
everestmcarthur🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ 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.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
1133efa9-8bc7-4394-83e0-f30017666b6a📥 Commits
Reviewing files that changed from the base of the PR and between
80cbcda934and53a913f865.📒 Files selected for processing (1)
plugins/you-bar-plus/src/patches/youBarButtons.tsx@ -51,17 +48,34 @@ export default function patchYouBarButtons(): () => void {const cleanups: (() => void)[] = [];🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Guard the unresolved Bell icon before comparing it.
If both
getAssetIDByNamecalls returnundefined,BellIconisundefined. Thenprops?.icon === BellIconmatches every props object without an icon. The transform can replace unrelatedonPresshandlers withopenInbox. Require a resolved icon before the equality check.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.