[PR #2056] [MERGED] feat: merge duplicate notifications #5439

Closed
opened 2026-04-16 13:38:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2056
Author: @kolaente
Created: 1/6/2026
Status: Merged
Merged: 1/6/2026
Merged by: @kolaente

Base: mainHead: feat-merge-duplicate-notificiations


📝 Commits (2)

  • acc1189 feat: merge duplicat notifications
  • 62887a7 fix: use string text for duplicate detection and add Playwright test

📊 Changes

3 files changed (+54 additions, -8 deletions)

View changed files

📝 frontend/src/components/misc/Notification.vue (+17 -5)
📝 frontend/src/message/index.ts (+7 -3)
frontend/tests/e2e/misc/notifications.spec.ts (+30 -0)

📄 Description

closes https://github.com/go-vikunja/vikunja/pull/971

Summary

Incorporates the changes from https://github.com/go-vikunja/vikunja/pull/971 with improvements:

  • Enables duplicate notification merging using the ignoreDuplicates prop from vue3-notification
  • Shows a count (×N) when notifications are merged
  • Fix: Uses string text instead of arrays so duplicate detection actually works (vue3-notification uses strict equality)
  • Fix: Moves actions under data in error notifications to match template's item.data?.actions
  • Fix: Updates template to handle both string and array text for backwards compatibility
  • Replaces Cypress test with Playwright e2e test

Test plan

  • Playwright test verifies duplicate notifications are merged and show correct count

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2056 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 1/6/2026 **Status:** ✅ Merged **Merged:** 1/6/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `feat-merge-duplicate-notificiations` --- ### 📝 Commits (2) - [`acc1189`](https://github.com/go-vikunja/vikunja/commit/acc11898d06c962e916f1c6c7ca0161de9b34d2e) feat: merge duplicat notifications - [`62887a7`](https://github.com/go-vikunja/vikunja/commit/62887a7bee7b6afc8ab8e7669e35f166037ad56c) fix: use string text for duplicate detection and add Playwright test ### 📊 Changes **3 files changed** (+54 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/misc/Notification.vue` (+17 -5) 📝 `frontend/src/message/index.ts` (+7 -3) ➕ `frontend/tests/e2e/misc/notifications.spec.ts` (+30 -0) </details> ### 📄 Description closes https://github.com/go-vikunja/vikunja/pull/971 ## Summary Incorporates the changes from https://github.com/go-vikunja/vikunja/pull/971 with improvements: - Enables duplicate notification merging using the `ignoreDuplicates` prop from vue3-notification - Shows a count (×N) when notifications are merged - **Fix**: Uses string text instead of arrays so duplicate detection actually works (vue3-notification uses strict equality) - **Fix**: Moves `actions` under `data` in error notifications to match template's `item.data?.actions` - **Fix**: Updates template to handle both string and array text for backwards compatibility - Replaces Cypress test with Playwright e2e test ## Test plan - [x] Playwright test verifies duplicate notifications are merged and show correct count --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:38:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5439