[PR #1843] [MERGED] fix: update mention format to use custom HTML element with usernames #9571

Closed
opened 2026-04-23 09:04:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1843
Author: @maggch97
Created: 11/19/2025
Status: Merged
Merged: 11/21/2025
Merged by: @kolaente

Base: mainHead: user/weijiezhao/mentionfix


📝 Commits (2)

  • d9241c0 fix: update mention format to use custom HTML element with usernames
  • 0b9841c fix lint

📊 Changes

4 files changed (+25 additions, -40 deletions)

View changed files

📝 frontend/src/components/tasks/partials/Comments.vue (+1 -8)
📝 pkg/models/mentions.go (+15 -23)
📝 pkg/models/mentions_test.go (+8 -8)
📝 pkg/models/task_comments_test.go (+1 -1)

📄 Description

fix: https://github.com/go-vikunja/vikunja/issues/1840
Changes mention parsing from span elements with numeric IDs to custom mention-user elements with usernames:

Backend changes:

  • Parse <mention-user data-id="username"> instead of <span class="mention" data-id="123">
  • Fetch users by username instead of numeric IDs
  • Update all test fixtures to match new format

Frontend changes:

  • Remove unnecessary editor re-mount hack in Comments.vue
  • Based on my local test, after removing the hack, the comment editor can still be correctly cleared.

🔄 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/1843 **Author:** [@maggch97](https://github.com/maggch97) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `user/weijiezhao/mentionfix` --- ### 📝 Commits (2) - [`d9241c0`](https://github.com/go-vikunja/vikunja/commit/d9241c02d2d1de0cbe830a1199476f55953c7017) fix: update mention format to use custom HTML element with usernames - [`0b9841c`](https://github.com/go-vikunja/vikunja/commit/0b9841cf7c7483d431cfa74fba375ac6b8a6bf65) fix lint ### 📊 Changes **4 files changed** (+25 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/tasks/partials/Comments.vue` (+1 -8) 📝 `pkg/models/mentions.go` (+15 -23) 📝 `pkg/models/mentions_test.go` (+8 -8) 📝 `pkg/models/task_comments_test.go` (+1 -1) </details> ### 📄 Description fix: https://github.com/go-vikunja/vikunja/issues/1840 Changes mention parsing from span elements with numeric IDs to custom mention-user elements with usernames: Backend changes: - Parse `<mention-user data-id="username">` instead of `<span class="mention" data-id="123">` - Fetch users by username instead of numeric IDs - Update all test fixtures to match new format Frontend changes: - Remove unnecessary editor re-mount hack in Comments.vue - Based on my local test, after removing the hack, the comment editor can still be correctly cleared. --- <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-23 09:04:53 -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#9571