-
Notifications
You must be signed in to change notification settings - Fork 135
Update notification UI #563
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
Conversation
90a91b0 to
d62781e
Compare
728e000 to
90efe3e
Compare
6adc331 to
161ef48
Compare
af263ca to
a2730fe
Compare
88cf046 to
0cf07d6
Compare
0cf07d6 to
ac16904
Compare
|
Closing this PR as stale due to significant codebase changes since it was opened in December 2019. Why this can't be easily rebasedThis PR was built on top of #519, which was closed with the comment "continued in #563" rather than being merged. This means #563 contains commits that were never merged to develop, making a clean rebase impossible without significant rework. Changes since this PR was opened
The underlying issueIssue #508 (Unsubscribing author from Notifications is impossible) remains open. The core functionality this PR aimed to provide will be reimplemented fresh on current develop:
Thank you @cojennin and @mikeyarce for the original work on this feature. |
Add visual indicators to the notifications metabox showing the post author and their auto-subscription status. When auto-subscribe is enabled, the post author's checkbox is disabled to prevent the confusing scenario where unticking appears to work but doesn't actually unsubscribe them. Changes: - Display "Post Author" badge next to the post author in subscriber list - Display "Auto-subscribed" badge when post author is auto-subscribed - Disable checkbox for auto-subscribed post author with tooltip - Add badge styling (neutral grey for informational, red for warnings) Testing: - Add PHP integration tests (15 tests, 34 assertions) - Add E2E tests for badge UI behaviour - Add Playwright globalSetup to bootstrap test environment This is a fresh reimplementation addressing issue #508. The original PR #563 was closed as stale after 5+ years. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add visual indicators to the notifications metabox showing the post author and their auto-subscription status. When auto-subscribe is enabled, the post author's checkbox is disabled to prevent the confusing scenario where unticking appears to work but doesn't actually unsubscribe them. Changes: - Display "Post Author" badge next to the post author in subscriber list - Display "Auto-subscribed" badge when post author is auto-subscribed - Disable checkbox for auto-subscribed post author with tooltip - Add badge styling (neutral grey for informational, red for warnings) Testing: - Add PHP integration tests (15 tests, 34 assertions) - Add E2E tests for badge UI behaviour - Add Playwright globalSetup to bootstrap test environment This is a fresh reimplementation addressing issue #508. The original PR #563 was closed as stale after 5+ years. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This is some additional work on top of #519 to improve the notifications UI to make it apparent when a user is being auto-subscribed to a post, when they're the post author, when they will be notified but won't have access to a post and when they don't have an email (and thus won't be notified).
I made some adjustments to the UI to adjust for the additional badges that are being applied, see the screenshot below.
I also modified the webpack config to start compiling the module code (starting with notifications, will migrate the rest over on a case by case basis)
It'd be great if we could merge #560 and then #562 so I can write a few E2E tests for this functionality, seems like a strong candidate for it.