From a98ab8c27592672b486130b8af7122f083a022d5 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 2 Mar 2026 14:06:06 +0100 Subject: [PATCH] feat(comments): add comment/ticket system across all entity pages Add CommentSection component for inline comments on entity detail pages (machines, pieces, composants, products, categories, skeleton types). Add dedicated /comments page with filters, pagination and clickable links. Add unresolved count badge on avatar and in profile dropdown. Co-Authored-By: Claude Opus 4.6 --- app/components/CommentSection.vue | 212 +++++++++++++ app/components/layout/AppNavbar.vue | 47 ++- app/composables/useComments.ts | 184 ++++++++++++ app/pages/comments.vue | 331 +++++++++++++++++++++ app/pages/component-category/[id]/edit.vue | 10 + app/pages/component/[id]/edit.vue | 10 + app/pages/machine/[id].vue | 10 + app/pages/piece-category/[id]/edit.vue | 10 + app/pages/pieces/[id]/edit.vue | 10 + app/pages/product-category/[id]/edit.vue | 10 + app/pages/product/[id]/edit.vue | 10 + app/pages/type/[id].vue | 7 + 12 files changed, 848 insertions(+), 3 deletions(-) create mode 100644 app/components/CommentSection.vue create mode 100644 app/composables/useComments.ts create mode 100644 app/pages/comments.vue diff --git a/app/components/CommentSection.vue b/app/components/CommentSection.vue new file mode 100644 index 0000000..1a616bd --- /dev/null +++ b/app/components/CommentSection.vue @@ -0,0 +1,212 @@ +