-
Notifications
You must be signed in to change notification settings - Fork 11
Refine notification filter controls #1718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine notification filter controls #1718
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughReplaced the Select-based notification filter in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Sidebar as Notifications Sidebar
participant State as Local State (`importance`)
participant Parent as Parent Component
User->>Sidebar: Click filter button (pill)
Sidebar->>State: set importance = selectedOption (or undefined for "All Types")
Note right of Sidebar #DFF2E1: UI control changed from Select to pill button group\nSettings tooltip/actions now live beside filters
Sidebar-->>Parent: Emit update:importance (API unchanged)
Parent->>Parent: Apply filter to notifications
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Comment |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1718 +/- ##
==========================================
+ Coverage 52.58% 53.29% +0.71%
==========================================
Files 858 859 +1
Lines 48092 48246 +154
Branches 4792 4912 +120
==========================================
+ Hits 25288 25714 +426
+ Misses 22735 22463 -272
Partials 69 69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
web/src/components/Notifications/Sidebar.vue (2)
48-53: Make the “All Types” option explicit to avoid relying on missing property semantics.Define
value: undefinedfor clarity and to prevent accidental regressions if this object is refactored.-const filterOptions: Array<{ label: string; value?: Importance }> = [ - { label: 'All Types' }, +const filterOptions: Array<{ label: string; value?: Importance }> = [ + { label: 'All Types', value: undefined }, { label: 'Alert', value: Importance.ALERT }, { label: 'Info', value: Importance.INFO }, { label: 'Warning', value: Importance.WARNING }, ];Optional: consider making this immutable for safer typing:
as const satisfies ReadonlyArray<{ label: string; value: Importance | undefined }>(if TS version supportssatisfies).
205-220: ARIA: Label should reference “importance,” not “type”.These pills filter by importance (Alert/Info/Warning). Update the accessible name for screen readers.
- aria-label="Filter notifications by type" + aria-label="Filter notifications by importance"Optional: since this is single‑select, a
radiogroup/radiopattern can further improve keyboard navigation (arrow-key cycling) over discrete toggle buttons.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
web/src/components/Notifications/Sidebar.vue(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/components/**/*.vue
📄 CodeRabbit inference engine (.cursor/rules/web-testing-rules.mdc)
Some Vue files may require explicit imports like ref or computed due to Nuxt auto-imports not applying in tests
Files:
web/src/components/Notifications/Sidebar.vue
26f8730 to
e53557e
Compare
e53557e to
e3aa43b
Compare
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
🤖 I have created a release *beep* *boop* --- ## [4.25.0](v4.24.1...v4.25.0) (2025-09-26) ### Features * add Tailwind scoping plugin and integrate into Vite config ([#1722](#1722)) ([b7afaf4](b7afaf4)) * notification filter controls pill buttons ([#1718](#1718)) ([661865f](661865f)) ### Bug Fixes * enable auth guard for nested fields - thanks [@ingel81](https://github.com/ingel81) ([7bdeca8](7bdeca8)) * enhance user context validation in auth module ([#1726](#1726)) ([cd5eff1](cd5eff1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68d184ad60348323b60c9b8e19146025
Summary by CodeRabbit
New Features
Chores