feat(ui): snooze notifications for 1 hour, 4 hours, or until tomorrow#2961
Draft
karlitschek wants to merge 1 commit intomasterfrom
Draft
feat(ui): snooze notifications for 1 hour, 4 hours, or until tomorrow#2961karlitschek wants to merge 1 commit intomasterfrom
karlitschek wants to merge 1 commit intomasterfrom
Conversation
Each notification now exposes a clock-icon NcActions menu with 1 hour / 4 hours / Tomorrow snooze options. Snoozed items are hidden from the panel until their wake time, with the snooze map persisted in localStorage so reloads (and other tabs after a fetch) honor it. * NotificationItem.vue: snooze NcActions menu in the heading, emits 'snooze' with the chosen minutes * NotificationsApp.vue: snoozed map, visibleNotifications computed filters them out, expired entries are pruned at the start of every _fetch * onRemove(index) becomes onRemove(notification) so the v-for over visibleNotifications doesn't have to thread an index back into the full notifications array * styles.scss: spacing for the snooze action button Note: this is the client-side version. Snooze state is per-browser; moving it to the server requires API support, which is tracked as follow-up. Signed-off-by: Frank Karlitschek <frank@nextcloud.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each notification now exposes a clock-icon NcActions menu with 1 hour / 4 hours / Tomorrow snooze options. Snoozed items are hidden from the panel until their wake time, with the snooze map persisted in localStorage so reloads (and other tabs after a fetch) honor it.
Note: this is the client-side version. Snooze state is per-browser; moving it to the server requires API support, which is tracked as follow-up.