fix: add indicator for notifications#62
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds a ChangesRating Notice Indicator
Sequence Diagram(s)sequenceDiagram
participant Browser as Admin Browser
participant WPAdmin as WordPress Admin (PHP)
participant CimoStats as Cimo_Stats
participant CimoMeta as Cimo_Metadata
CimoMeta->>CimoStats: get_stats() after saving attachment metadata
WPAdmin->>CimoStats: should_show_rating_notice()
CimoStats->>CimoStats: get_cached_saved_bytes() from OPTION_KEY
CimoStats-->>WPAdmin: bool (threshold met & not dismissed)
WPAdmin->>WPAdmin: append .update-plugins badge to submenu title
WPAdmin->>Browser: cimoAdmin.showRatingNotice = '1' | '0'
Browser->>Browser: render rating notice if showRatingNotice === '1'
Browser->>WPAdmin: POST dismiss rating setting
Browser->>Browser: remove .update-plugins from menu item
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
🤖 Pull request artifacts
|
fixes #57
fixes #58
Summary by CodeRabbit
Release Notes
New Features
Improvements